Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JTune fails when run as root due to bug in jstat #18

Closed
kilink opened this issue Nov 11, 2015 · 1 comment
Closed

JTune fails when run as root due to bug in jstat #18

kilink opened this issue Nov 11, 2015 · 1 comment

Comments

@kilink
Copy link

kilink commented Nov 11, 2015

At some point, jstat/jps were broken in that they could not discover processes owned by other users when run as root. See JDK-8075773, where it looks like the issue has been fixed.

However, it was somewhat difficult figuring out the cause when running JTune, since the failure would occur when accessing a nonexistent key in the jstat_data map.

I think it would be preferable to throw an exception when the return code from the subprocess call is non-zero. This might also warrant a mention in the documentation, since the FAQ says you can run JTune as root.

@ericbullen
Copy link
Contributor

Makes sense, but I don't have the resources to make the change. If you want to do a pull request w/ the suggested changes, I can merge them in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants