Glassfish asadmin commands

asadmin start-domain
asadmin stop-domain
asadmin deploy path/to/hello1.war
asadmin list-applications
asadmin undeploy hello1
asadmin list-log-levels server
asadmin generate-jvm-report
asadmin list-jvm-options
asadmin get

See also: Subcommands for the asadmin Utility - Oracle GlassFish Server 3.1 Administration Guide -

To kill Glassfish

jps | grep ASMain | awk '{print $1}' | xargs kill -9

Increasing the Glassfish logging level

murphy:~ pdurbin$ cd /Applications/NetBeans/glassfish-
murphy:glassfish pdurbin$ cp -a domains/domain1/config/ domains/domain1/config/ 
murphy:glassfish pdurbin$ 
murphy:glassfish pdurbin$ vim domains/domain1/config/
murphy:glassfish pdurbin$ diff domains/domain1/config/ domains/domain1/config/
< com.sun.enterprise.server.logging.GFFileHandler.level=INFO
> com.sun.enterprise.server.logging.GFFileHandler.level=FINE
murphy:glassfish pdurbin$ 

Will affect (for example):

private static final Logger logger = Logger.getLogger(MyClass.class);
logger.fine("Did something");

See also:

Java EE 6 Standards Support

The GlassFish release notes tell you which version of Java Server Facets, Expression Language (EL), etc. you have:

Home | About | Sitemap | Recent changes | © Philip Durbin | @philipdurbin |