Using DPJ to profile Tomcat from Eclipse

0 Likes

Problem:

Can I use DPJ to profile Tomcat from Eclipse?

Resolution:

DPJ IDE integration tool does not implement a toolbar entry for launching and profiling Tomcat under Eclipse. There may be a(unsupported, and untested excepted as noted below) workaround that might work.

Download a Tomcat plugin for Eclipse 3.0.

One possibility is the Sysdeo Eclipse Tomcat Launcher downloaded from http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=1

Unzip and copy the extracted directory into your eclipse plugins directory. Under Window/Perferences/Tomcat/JVMSettings, add the follow string in the 'Append to JVM Parameters':

-XrundpjCore:NM_ANALYSIS_TYPE= memory:NM_CONFIG_NAME=default:NM_DISABLE_DA=1

Notes: NM_ANALYSIS_TYPE= memory/performance/coverage

NM_CONFIG_NAME =default or any specific configuration file you will use.

The only testing done with this method was to start Tomcat 5.0 under Eclipse 3.0.1 and run a quick performance profile. Note that stopping tomcat from the Eclipse menu may bring up a second instance of DPJ. Also, if Tomcat has been configured as an Application Server under DPJ, the server will not show up as started under 'Application Server Testing'. Other than that there has been no testing of this procedure.

Old KB# 11097
Comment List
Anonymous
Related Discussions
Recommended