how can java visual VM get connection to eclipse java task

你说的曾经没有我的故事 提交于 2019-12-31 03:54:04

问题


I want to use java VisualVM to monitor the performance of my JAVA APP, but Java VisualVM can not get the detail data of the java task of eclipse. what should I do for this? is any one know?


回答1:


Make sure you have -Dcom.sun.management.jmxremote in the vmargs of Eclipse.

You can find out whether you have looking in this dialog: Help -> About -> Installation Details -> Configuration.

eclipse.vmargs=... shows all the arguments which were passed for the Java VM.

If this option is missing, then open eclipse.ini and search for the line -vmargs. If it's not there, add it at the end:

  -vmargs
  -Dcom.sun.management.jmxremote

Note that each of these options should go on a different line.

Make sure that -vmargs is the last Eclipse option in the file; everything below will be assembled into an array of arguments to the VM and ignored by Eclipse.



来源:https://stackoverflow.com/questions/19924817/how-can-java-visual-vm-get-connection-to-eclipse-java-task

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!