Help -- 100% CPU utilization running Koha
Dear all, We are currently running Koha 3.16.01 and lately noticed sluggish with the software response, including waiting say 10 to 15 seconds for screen to change at times. Last night, I noticed the CPU utilization is running at 100% on Koha instance (Amazon AWS is hosting our Koha) for last few days. Whereas days prior, it would be at under 20%, with spike at rare occasions. No other application being hosted with Koha! Looking back, our use of Koha hasn't change, except adding a few OPAC User JavaScripts (opacuserjs) to customise the look and feel of our OPAC. Is the high CPU utilization is caused by adding a few JavaScripts? Or something else altogether?? Hoping someone can help solve this issue. Kind regards, Iming Chan Melbourne, Australia ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Help-100-CPU-utilization-running-Koha-tp58... Sent from the Koha-general mailing list archive at Nabble.com.
Iming, Your OPAC doesn't seem to have a robots.txt file. In that case, webcraler can do multiple requests per seconds, which can be hard on your site performance. Here the robots.txt we are using : User-agent: * Disallow:/cgi-bin/koha/opac-search.pl Disallow:/cgi-bin/koha/opac-export.pl Disallow:/cgi-bin/koha/opac-showmarc.pl Disallow:/cgi-bin/koha/opac-ISBDdetail.pl Disallow:/cgi-bin/koha/opac-MARCdetail.pl place this file in your koha-tmpl folder. Eric On 2014-08-21 21:24, Iming Chan wrote:
Dear all,
We are currently running Koha 3.16.01 and lately noticed sluggish with the software response, including waiting say 10 to 15 seconds for screen to change at times. Last night, I noticed the CPU utilization is running at 100% on Koha instance (Amazon AWS is hosting our Koha) for last few days. Whereas days prior, it would be at under 20%, with spike at rare occasions. No other application being hosted with Koha!
Looking back, our use of Koha hasn't change, except adding a few OPAC User JavaScripts (opacuserjs) to customise the look and feel of our OPAC.
Is the high CPU utilization is caused by adding a few JavaScripts? Or something else altogether??
Hoping someone can help solve this issue.
Kind regards,
Iming Chan Melbourne, Australia
----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com
Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Help-100-CPU-utilization-running-Koha-tp58... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Dear all, Thank you to those who replied to my posting. After applied Eric's suggested solution, I'm pleased to advise that the CPU utilization has returned to normal range (around 20%). Yes, Googlebot has been trolling our catalogue in recent days. Kind regards, Iming ----- Iming Chan Translib Information Service Melbourne, Australia http://opac.translib.com Phone: +61 3 9801 5097 Fax: +61 3 9801 4024 E-mail: iming@translib.com -- View this message in context: http://koha.1045719.n5.nabble.com/Help-100-CPU-utilization-running-Koha-tp58... Sent from the Koha-general mailing list archive at Nabble.com.
Iming Chan schreef op do 21-08-2014 om 18:24 [-0700]:
Is the high CPU utilization is caused by adding a few JavaScripts? Or something else altogether??
You would need to see what it actually is that's causing your high CPU. Just adding some JS wouldn't do it. Tools like 'sar' and 'top' and 'htop' help get some basic introspection into this, also looking at your apache access logs to see where a particularly large amount of requests might be coming from. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (3)
-
Eric Bégin -
Iming Chan -
Robin Sheat