permaculture playing cards
The moose likes Performance and the fly likes JProfiler Help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "JProfiler Help Needed" Watch "JProfiler Help Needed" New topic

JProfiler Help Needed

William Mandrake

Joined: Sep 08, 2008
Posts: 2

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

Joined: May 26, 2003
Posts: 33113

"blazing wolf",
Please check your private messages about an important administrative matter.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
William Mandrake

Joined: Sep 08, 2008
Posts: 2
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

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

Joined: Jan 14, 2003
Posts: 66
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.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

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:

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: JProfiler Help Needed
It's not a secret anymore!