Debugging remote server

From OpenKM Documentation
Revision as of 18:51, 18 April 2013 by Pavila (talk | contribs)

Jump to: navigation, search

If you got problems on production environment this configuration is specially useful.

OpenKM 6.x - Tomcat

Add the following options when the JVM is started:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

If you are using shell scripts to start Tomcat, start it with the following command:

$ $TOMCAT_HOME/bin/catalina.sh jpda start

It will start Tomcat so that a remote debugger can be connected to port 8000.

For more info read:

OpenKM 5.1 - JBoss

Add this line at the top of $JBOSS_HOME/bin/run.sh script:

JAVA_OPTS="-Xmx2000m -Djava.awt.headless=true -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"

Configure Eclipse

Select the project and the host. Include in source your OpenKM java project. You can debug normally, setting breakpoints etc...


Okm user guide 073.jpeg


Okm user guide 074.jpeg


See also Como hacer debug remoto en Tomcat desde Eclipse.