Friday, August 26, 2011

Run Web Application Server with Debug mode

Example for Jboss gatein:

EXO_CONFIG_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.exoplatform.container.configuration.debug"

JPDA_TRANSPORT=dt_socket
JPDA_ADDRESS=8000

REMOTE_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
JMX_AGENT="-Dcom.sun.management.jmxremote"
JAVA_OPTS="$JAVA_OPTS$EXO_CONFIG_OPTS $REMOTE_DEBUG"
export JAVA_OPTS

No comments:

Post a Comment