This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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
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