AamAadmiParty / mass-emailer-sendy

A customized installation of http://sendy.co/ that shall be used by AAP to send out emails to a larger audience of subscribed supporters.
15 stars 7 forks source link

CPU usage at 100% on the server hosting sendy #11

Closed sumeetpareek closed 11 years ago

sumeetpareek commented 11 years ago

@ankurshrivastav reported that the CPU usage is at 100% on the server hosting sendy (the mass emailer being used by AAP)

sumeetpareek commented 11 years ago

Logged in to the server did a basic top sorted by CPU usage .. and this revealed 2 PHP processes eating up a lot of resources.

screenshot_2013_11_19_003

sumeetpareek commented 11 years ago

to figure out what was particularly being done by this php process.. did a basic ps ax | grep php this showed that the php script that was sending out the mails on scheduled cron that was stuck and taking up all the CPU as shown below

screenshot_2013_11_19_005

I logged in and looked around inside sendy.. in the database.. but could not locate where the script was stuck or why.. since the script runs every 5 mins over cron.. it was safe to kill it.. which is exactly what solved the issue..

screenshot_2013_11_19_005 copy