| Author |
Message |
|
|
Post subject: Error running JProfiler on Tomcat 5
Posted: Jun 08, 2007 - 09:56 PM
|
|
Veteran Member


Joined: May 18, 2006
Posts: 23
|
|
I can run JProfiler 5 against Tomcat 5 stand-alone, but now I'm trying to get it to talk to Tomcat when it's running under MyEclipse. I added this optional VM argument:
| Code: | | -agentlib:jprofilerti=port=8849 |
and I added the path to agent.jar to be appended to the classpath.
When I try to start Tomcat, it fails with this error in the log:
| Code: | org.eclipse.core.runtime.CoreException: JProfiler> Protocol version 24
JProfiler> Using JVMTI
JProfiler> 32-bit library
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
at org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMRunner.java:47)
at org.eclipse.jdt.internal.launching.StandardVMDebugger.checkErrorMessage(StandardVMDebugger.java:328)
at org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:242)
at com.genuitec.eclipse.core.JavaVMUtility.execute(JavaVMUtility.java:212)
at com.genuitec.eclipse.easie.tomcat.TomcatManager.startTomcat(TomcatManager.java:56)
at com.genuitec.eclipse.easie.tomcat.TomcatManager.start(TomcatManager.java:36)
at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:49)
at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:42)
at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.ă(Unknown Source)
at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.basicRun(Unknown Source)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
at com.genuitec.eclipse.easie.core.ui.action.ServerRestartAction$1.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) |
It looks like JProfiler's startup message is being interpreted as an error?
When I similarly configure YourKit, it works fine and outputs some lines to the console. (They show up in red -- stderr?)
Has anyone had luck with getting JProfiler to talk to Tomcat 5 under MyEclipse? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Error running JProfiler on Tomcat 5
Posted: Jun 08, 2007 - 09:57 PM
|
|
Veteran Member


Joined: May 18, 2006
Posts: 23
|
|
Oh, I should have mentioned this is MyEclipse 5.5.1, using the all-in-one installer on Windows XP Pro. Sun JDK 1.5.0. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Error running JProfiler on Tomcat 5
Posted: Jun 11, 2007 - 04:40 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
Hi JeremyStein,
Unfortunately I have no experience with JProfile or I cant figure out why its giving you this error when you are trying to get it to work with MyEclipe. I hope some user who is more well versed with this can help with out. Sorry about that. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Jprofiler and Tomcat Configuration
Posted: Dec 07, 2011 - 03:09 PM
|
|
Joined: Dec 07, 2011
Posts: 3
|
|
Step 1: In Linux machine open .bash_profile file from /root directory
Enter jprofiller location (using below command export) in .bash_profile file
export LD_LIBRARY_PATH=/dsvol/jprofiler6/bin/linux-x86
Step 2: Go Tomcat installation directory. Open catalena.sh file from bin folder
Enter the below details in catelana.sh file (only red color information and black color you can find by default in catalena.sh file)
export JPROFILER_HOME
JAVA_OPTS="-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -agentpath:/opt/Performance/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849 $CATALINA_OPTS"
Step 3: Start the server from bin folder by executing the starup.sh command |
|
|
| |
|
|
|
 |
|
|
Post subject: Jprofiler and Tomcat Configuration
Posted: Dec 07, 2011 - 03:09 PM
|
|
Joined: Dec 07, 2011
Posts: 3
|
|
Step 1: In Linux machine open .bash_profile file from /root directory
Enter jprofiller location (using below command export) in .bash_profile file
export LD_LIBRARY_PATH=/dsvol/jprofiler6/bin/linux-x86
Step 2: Go Tomcat installation directory. Open catalena.sh file from bin folder
Enter the below details in catelana.sh file (only red color information and black color you can find by default in catalena.sh file)
export JPROFILER_HOME
JAVA_OPTS="-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -agentpath:/opt/Performance/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849 $CATALINA_OPTS"
Step 3: Start the server from bin folder by executing the starup.sh command |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 08, 2011 - 05:16 AM
|
|

Joined: Nov 11, 2010
Posts: 2149
|
|
mcheepati,
Thank you for posting the steps. It will surely help other users.
Do let us know if you have any issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|