Install GlassFish v2. I found a file called glassfish-installer-v2-b58g.jar on the download site, and installed it on Linux.

Start GlassFish and login to the admin console (default port: 4848).

Under Application Server > JVM Settings > JVM Options, adjust at least the heap and permanent generation sizes, and use the server option. The following list shows changes for evaluation:

Change -XX:MaxPermSize=192m to -XX:MaxPermSize=256m.

Change -client to -server.

Change -Xmx512m to -Xmx1024m.

Restart GlassFish for your changes to take effect.

Deploying OpenAM

OpenAM needs an FQDN at configuration time.
To get started quickly, fake an FQDN on your laptop or desktop by giving the system an alias such as laptop.example.com or desktop.example.com. If you have never done so before, it’s not too hard. See the Wikipedia entry on the hosts file.