Jump to content

Method to automatically kill games using too many resources?


bithead

Recommended Posts

Is there a method to trigger a kill, or even an auto-restart for game processes that use too many resources? We often get minecraft servers that max the CPU and memory of the server. I need a way to automatically kill those troublesome processes.

Link to comment
Share on other sites

Not a problem. I started working on a bash script to sift through the java processes and dump out the process id, the rss memory value and the command line. I figure I can use this as a starting point and from there try to incorporate it into something nicer for managing MC servers. Here is the link to the script: javaps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 18 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use