- This topic has 5 replies, 4 voices, and was last updated 13 years ago by support-swapna.
-
AuthorPosts
-
Jeremy SteinMemberI 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:
-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:
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?
Jeremy SteinMemberOh, 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.
Loyal WaterMemberHi 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.
[email protected]MemberStep 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-x86Step 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
[email protected]MemberStep 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-x86Step 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
support-swapnaModeratormcheepati,
Thank you for posting the steps. It will surely help other users.
Do let us know if you have any issues. -
AuthorPosts