FAQ.How to keep my web app from using 100% CPU time?Answer:
On Linux and Mac OS X you can use renice command in the terminal. On Windows use the task manager to reduce priority.Notes:
If you launch your app with nohup on Linux or Mac OS X like this from the terminal or a script:

nohup /webapps/MyApp/MyApp &

you can simply have a second line saying this:

renice 20 $!

which tells the system to lower priority to lowest value for the latest background process.