Tomcat overloads + high CPU usage
Greetings!
If tomcat / java using too much resources on your box then USE this tweak.
#!/bin/bash
mask=7f
# Sleep for 5 minutes; worst-case scenario for process to start up the process
sleep 10
process_id=`ps -ef | grep $instance | grep java | grep Bootstrap | awk ‘{print $2}’`
taskset -p $mask $process_id
Need to add it to startup.sh for relevant tomcat instances in startup.sh:
…
…
“Setting Tomcat CPU core affinity ….”
nohup /appl/share/newsreader/scripts/set_affinity.sh &
exec “$PRGDIR”/”$EXECUTABLE” start “$@”
on May 25th, 2008 at 1:22 am
Top of the morning to you! Wow what a fantastic article about Plesk! Your keen insight into Plesk is informative and creative. I look forward to reading other articles you have. Thanks.