JConsole can't find process

前端 未结 8 1506
北恋
北恋 2021-02-18 20:50

I tried to run JConsole to analyze the memory used by a running process, but JConsole doesn\'t show me processes even though I am absolutely sure that one is running (in additio

相关标签:
8条回答
  • 2021-02-18 21:39

    8 years later... I had the same problem. I could only see certain processes but couldn't see and monitor any java processes running in a docker container in Linux.

    Inspired by the Windows solution by RoyalBigMack:

    • Solution 1. Run terminal as super user (su command) and run jconsole
    • Solution 2. Run solution 1 as one command, sudo jconsole

    Only the first solution worked for me, and once the jconsole UI popped up- all the hidden processes were now visible.

    0 讨论(0)
  • 2021-02-18 21:41

    Just ran into this issue

    If you are using multiple jdk's by any chance (ex. SDKMAN), then make sure that jconsole is run using the same jdk as the application

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