• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JProfiler Help Needed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I just downloaded and install the JProfiler. I am using it to monitor a Java app on a remote Linux server. JProfiler allows me to integrate the Windows and Linux JProfiler so that information capture from the Linux will be returned to the Windows.

But I am facing a problem. As long as I start Tomcat and the application runs inside it then I will be able to monitor its performance. However, once the application is placed outside of Tomcat, I won't be able to monitor it anymore.

I will usually used this command on the cmd line:
java -agentlib:jprofilerti=8849 -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar


It will then come out the statement: Waiting for JProfiler Gui.....
But once I connected error will come out.

Does this means that I can't monitor the entire Linux? Can't I used JProfiler to monitor an application of Java without going through Tomcat?

Can anyone please help? I have been struggling with this problem for 2 weeks.
Any help will be deeply appreciated
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"blazing wolf",
Please check your private messages about an important administrative matter.
 
William Mandrake
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please, can anyone help me with this problem. I really don't know what to do anymore. This is the error I keep getting

java -agentlib:jprofilerti=port=8849
-Xbootclasspath/a:/opt/jprofiler5/bin/agent.jar

JProfiler> Protocol version 23
JProfiler> Using JVMTI
JProfiler> 32-bit library
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling disabled
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-d32 use a 32-bit data model if available

-d64 use a 64-bit data model if available

Can anyone help me?
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JProfiler should have an option of integrating with Tomcat. Can you try using that wizard?.

That wizard might ask for the startup script of tomcat and might create a new startup script for JProfiler-tomcat. You can run that newly generated one.

Then start the JProfiler remotely and connect to this tomcat.

~Rajesh.B
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure where you are using this command:

but the Java command usually requires a class name to execute. That's why it's giving you this usage message:
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic