Author Topic: High CPU via HTTPD  (Read 3315 times)

Offline widomaker

  • Newbie
  • *
  • Posts: 6
High CPU via HTTPD
« on: March 21, 2011, 11:23:24 AM »
So notice that I have httpd taking up 90-100% WCPU. Any ideas on this. All info I can find is outdated.

12186 www         1 118    0   170M 33488K RUN     30:10 100.00% httpd

Running FreeBSD 8.2 64Bit
Roundcube 0.5.1
IMAP - UW-IMAP
PHP 5.3.5
APache 2.2.17

Offline widomaker

  • Newbie
  • *
  • Posts: 6
Work around
« Reply #1 on: March 22, 2011, 10:48:48 AM »
So for now, as it seems that I am the only one with this problem or I am missing something, I just wrote a script to kill any HTTPD that is 30min or older. Should not have to do this, but can't seem to find where the problem is coming from.

Info on work around script. The script runs a grep for httpd and also looks for 30+ min. Then writes a kill file. Then it runs a kill command based on the kill file for PID(s). Then the file is removed.

ps -ax | grep httpd | grep "[3-9]:[0-9]" | awk '{print $1}' >> /tmp/killlist
cat killlist | xargs -L1 kill -9
rm /tmp/killlist

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
High CPU via HTTPD
« Reply #2 on: March 22, 2011, 11:04:06 AM »
Out of curiosity I have a couple of questions,
1. How many users are using RoundCube?
2. Are you using a fresh install of RoundCube or an upgrade?
3. Have you tried the SVN and does it have the same problem?
4. What do you have max_execution_time set to?

Offline widomaker

  • Newbie
  • *
  • Posts: 6
High CPU via HTTPD
« Reply #3 on: March 22, 2011, 03:49:30 PM »
1.Number of Users: less then 500 total (So maybe 5-10 at a time)
2.New install moving away from Horde
3.Never tried SVN
4.max_execution_time=30

Thanks for your help.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
High CPU via HTTPD
« Reply #4 on: March 22, 2011, 04:24:09 PM »
It might be worth trying out the SVN version to see if its better. What is your mail server setup?