Results 1 to 2 of 2
  1. #1
    webappster is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Talking JProfiler 5 startup question

    HI Guys,

    I've what I hope is a very simple question regarding JProfiler5. I normally profile my webapp via online mode.

    Now however I'm trying to implement continuous profiling and I'm having difficulty figuring out how to start my application with JProfiler running in offline mode, I dont want my application to wait for a JProfiler GUI to connect before starting up.

    I've read the doc regarding doing this but I cant figure out how to implement it, could any point me some examples please?

    For online mode I'd create my startup.sh file to be something like the below:
    Java Code:
    export JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:+AggressiveHeap -Dcomponent.identifier=01 -Dcomponent.hostname=vsp-155.perf -agentpath:$jprofilerti=port=8849 -Xbootclasspath/a:/usr/local/jprofiler5/bin/agent.jar"
    Thanks in advance

  2. #2
    webappster is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default [solved]

    Ok after some trial and error I got this working. Please see the below code snippets

    Version 1:
    Java Code:
    export JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:+AggressiveHeap -Dcomponent.identifier=01 -Dcomponent.hostname=vsp-155.perf -agentlib:jprofilerti=offline,id=147,config=/opt/newbay/home/nbadmin/.jprofiler5config.xml -Xbootclasspath/a:/usr/local/jprofiler5/bin/agent.jar"
    Version 2
    Java Code:
    export JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:+AggressiveHeap -Dcomponent.identifier=01 -Dcomponent.hostname=vsp-155.perf -agentlib:jprofilerti=offline,id=147,config=/opt/newbay/home/nbadmin/.jprofiler5config.xml -Xbootclasspath/a:/usr/local/jprofiler5/bin/agent.jar"
    Hope this helps someone else

Similar Threads

  1. JProfiler 6
    By Natraj Aggas in forum Java Software
    Replies: 1
    Last Post: 12-17-2010, 07:34 AM
  2. Jprofiler with Weblogic Issue
    By cdhar in forum Advanced Java
    Replies: 0
    Last Post: 11-05-2010, 07:24 PM
  3. JProfiler 5.1
    By JavaBean in forum Java Software
    Replies: 5
    Last Post: 10-25-2010, 01:53 PM
  4. Main startup class
    By j0h@nb in forum New To Java
    Replies: 13
    Last Post: 11-30-2007, 06:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •