Ever since I rebuilt Apache last month (it wasn't recognizing newly parked domains), I've been having a problem. Every few hours, Apache will just "hang", for anywhere from 1 to 15 minutes. I can SSH in, and I can log in to WHM, but the website itself is unresponsive.
When I log in to SSH and command "top -c", it will show that pretty much nothing is running, even though it's during peak hours. My Munin report shows a "dead" area in Apache Processes for that period, too.
After quite a bit of going back and forth with my server provider (it's a semi-managed server, not shared), they thought that the problem was that logrotate was taking too long, causing Apache to hang up.
At the time, I had it set to 50MB under Tweak Settings, but moved it up to 300MB in the hopes of minimizing the number of times it would rotate. That helped for a few days, then it started hanging again, so I moved it down to 10MB in the hopes that a smaller log would make it finish faster. But still, it's hanging on me several times a day.
It's currently still set to 10MB.
Being rather amateur when it comes to networking, I'm not entirely sure what files are supposed to be rotated. But when I go to /usr/local/apache/logs, my access log is 140MB. Under /usr/local/apache/domlogs/, the main log for my account is 537MB, and a second log for a subdomain is 62MB. Then, under /usr/local/apache/logs/archive/ (where I thought that logs were supposed to rotate), I have nothing but README.archive.
Does this means that logrotate isn't actually moving anything?
If it matters, I'm using CSF for the firewall. I've tried forcing an update of cPanel (the regular setting is RELEASE Builds (Automatic)), and rebuilding Apache, with no impact. Also, I'm running WHM 11.28.86, on a Redhat Enterprise 4 i686 server.
TIA,
Jason
When I log in to SSH and command "top -c", it will show that pretty much nothing is running, even though it's during peak hours. My Munin report shows a "dead" area in Apache Processes for that period, too.
After quite a bit of going back and forth with my server provider (it's a semi-managed server, not shared), they thought that the problem was that logrotate was taking too long, causing Apache to hang up.
At the time, I had it set to 50MB under Tweak Settings, but moved it up to 300MB in the hopes of minimizing the number of times it would rotate. That helped for a few days, then it started hanging again, so I moved it down to 10MB in the hopes that a smaller log would make it finish faster. But still, it's hanging on me several times a day.
It's currently still set to 10MB.
Being rather amateur when it comes to networking, I'm not entirely sure what files are supposed to be rotated. But when I go to /usr/local/apache/logs, my access log is 140MB. Under /usr/local/apache/domlogs/, the main log for my account is 537MB, and a second log for a subdomain is 62MB. Then, under /usr/local/apache/logs/archive/ (where I thought that logs were supposed to rotate), I have nothing but README.archive.
Does this means that logrotate isn't actually moving anything?
If it matters, I'm using CSF for the firewall. I've tried forcing an update of cPanel (the regular setting is RELEASE Builds (Automatic)), and rebuilding Apache, with no impact. Also, I'm running WHM 11.28.86, on a Redhat Enterprise 4 i686 server.
TIA,
Jason