facebook

Error running JProfiler on Tomcat 5

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #271329 Reply

    Jeremy Stein
    Member

    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:

    -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?

    #271330 Reply

    Jeremy Stein
    Member

    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.

    #271361 Reply

    Loyal Water
    Member

    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.

    #321617 Reply

    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

    #321618 Reply

    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

    #321640 Reply

    support-swapna
    Moderator

    mcheepati,

    Thank you for posting the steps. It will surely help other users.
    Do let us know if you have any issues.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Error running JProfiler on Tomcat 5

You must be logged in to post in the forum log in