JConsole can't find process

前端 未结 8 1517
北恋
北恋 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.

提交回复
热议问题