Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JProfiler Help Needed

 
William Mandrake
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic