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

Kill process subtrees, not individual processes, after timeouts #12

Open
AlexLandau opened this issue Mar 17, 2016 · 0 comments
Open

Kill process subtrees, not individual processes, after timeouts #12

AlexLandau opened this issue Mar 17, 2016 · 0 comments

Comments

@AlexLandau
Copy link
Owner

After my last run of cadiaplayer, I had a leftover process that was consuming most of the memory on the box, causing significant swapping. I didn't see which it was, so it pretty much invalidated the collected statistics.

This suggests that kill -kill -1234 (for script PID 1234) might work for POSIX-reliant scripts like cadiaplayer's, if we can somehow figure out the script PID from Java: http://askubuntu.com/questions/520107/how-to-kill-a-script-running-in-terminal-without-closing-terminal-ctrl-c-doe

EDIT: From further research and testing, it seems like the issue is not the reliability of killing processes, but just the ability to kill process subtrees instead of an individual process. That will be available in Java 9, which sounds like a good long-term solution.

@AlexLandau AlexLandau changed the title More aggressive options for killing bad processes Kill process subtrees, not individual processes Mar 21, 2016
@AlexLandau AlexLandau changed the title Kill process subtrees, not individual processes Kill process subtrees, not individual processes, after timeouts Mar 21, 2016
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

1 participant