Jconsole 和 JPS 不显示任何进程.如何监控我的流程? [英] Jconsole and JPS don't show any processes. How can I monitor my process?

查看:65
本文介绍了Jconsole 和 JPS 不显示任何进程.如何监控我的流程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Jconsole (JDK1.8.0_31) 监视 JVM 中正在运行的进程.但是,由于窗口损坏,我在 Jconsole 的启动窗口中看不到任何进程.本地进程列表似乎没有设置高度参数.至少它看起来是这样:

I'm trying to monitor a running process in a JVM using Jconsole (JDK1.8.0_31). However, I can't see any processes in the start window of Jconsole since the window is broken. The list for local process seems to have no height parameter set. At least that's what it looks like:

我在网上查过类似的问题.我发现 %TMP% 的奇怪权限设置导致 Jconsole 出现问题的情况.我检查过了,我拥有所需的所有权限(读/写等).

I checked for similar problems on the web. I found cases where strange permission settings for %TMP% caused problems for Jconsole. I checked, and I have all permissions I need (read/write and some more).

好吧,既然我不轻易放弃,我也发现Jconsole是以Java进程的PID为参数的.在尝试查找 PID 时,我注意到 JPS 没有显示任何进程或 JVM,即使它们显然正在运行(我安装了多个 JDK.尽管这无关紧要,但我还检查了我是否使用了 JPS来自同一个 $JVM\bin 文件夹).

Alright, since I don't give up easily, I also found out that Jconsole takes the PID of the Java process as an argument. While trying to find the PID I noticed that JPS doesn't show any processes or JVMs even though they are clearly running (I have more than one JDK installed. Even though that shouldn't matter, I also checked if I was using the JPS from the same $JVM\bin folder).

所以,这是我的问题:

还有什么可能导致此问题?我还能检查什么?

我非常感谢您的帮助,否则我将无法检查是哪个应用程序导致了我系统上出现这种奇怪的内存溢出.

I'd really appreciate the help because otherwise I won't be able to check which of my apps is causing this weird memory overflow on my system.

推荐答案

我误解了其他有关 %TMP% 权限的解决方案.我检查了 TMP 本身的权限,但罪魁祸首是 hsperfdata_$USER($USER 是您的用户名).问题是启动 jvm 的用户需要对 hsperfdata 目录的读写权限.就我而言,用户一开始就没有设置.

I misunderstood other solutions concerning %TMP% permissions. I checked the permissions for TMP itself but the culprit was hsperfdata_$USER (with $USER being your username). What was wrong was that user starting the jvm needs read and write permissions for the hsperfdata directory. In my case the user wasn't set in the first place.

右键单击hsperfdata_$USER>properties>security>edit>add>advanced,然后在starts with字段中输入我的用户名并确认.回到安全选项卡,我为我的用户设置了所有权限,就是这样.

I did right click hsperfdata_$USER>properties>security>edit>add>advanced and in the field starts with I put in my user name and confirmed. Back at the security tab I set all permissions for my user and that's it.

这篇关于Jconsole 和 JPS 不显示任何进程.如何监控我的流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆