how can java visual VM get connection to eclipse java task

前端 未结 1 1935
滥情空心
滥情空心 2021-01-25 03:46

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 a

相关标签:
1条回答
  • 2021-01-25 04:31

    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.

    0 讨论(0)
提交回复
热议问题