I developed a Java application with the project name DMS. Now I want to judge the performance of the application by using jConsole. When i open the jConsole.exe frm jdk_installation/bin package i am unable to see my application name in the local process list excepting showing only one process sun.tools.jconsole.JConsole . Please provide any sugession to resolve this.
Asked
Active
Viewed 2,426 times
1 Answers
1
You will need to pass on the following system arguments when starting JVM:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=10200

SMA
- 36,381
- 8
- 49
- 73
-
I already did this from the reading - http://stackoverflow.com/questions/22280229/how-to-monitor-a-java-program-using-jconsole. I add this inside VM arguments, under arguments tab. – user3916928 Dec 24 '14 at 09:17
-
Then what's the issue? Is your application runnning when you open jconsole? or if you dont see in jconsole, try manuall selecting remote process radio button, in textbox type localhost:10200 and click on connect – SMA Dec 24 '14 at 09:19
-
In remote process it also asking for Username & password – user3916928 Dec 24 '14 at 09:21
-
No keep it blank. See that we said no authentication with parameter `-Dcom.sun.management.jmxremote.authenticate=false` – SMA Dec 24 '14 at 09:30
-
I filles localhost:8080 for the process (running locally on my machine), but giving the message - Connection failed: error during JRMP connection; nested exception is : java.io.EOFException – user3916928 Dec 24 '14 at 09:44
-
how are you running it? Are you running a standalone program or something else? – SMA Dec 24 '14 at 09:46
-
I running my application via tomcat (eclipse, Open jsp -> run -> run on server) & up the application in browser (link - http://localhost:8080/DMS/ietmLoginDialog.jsp) – user3916928 Dec 24 '14 at 09:51
-
8080 is a web port in your case and not JMX port. I would suggest you read it online and close this question. – SMA Dec 24 '14 at 09:56
-
1Great @user3916928. Glad it worked for you. Can you please close this question along with solution so it would help someone in future please? – SMA Dec 24 '14 at 11:35