1 (edited by reetikavyas28 2014-09-10 17:32:28)

Topic: Apache CPU Usage 96%

==== Required information ====
- iRedMail version: iredmail 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: CentOS release 6.5 (Final)
- Related log if you're reporting an issue:

Hi ,

We are using iredmail server for last 6 months but as of now our webmail is very slow and http cpu usage is above 95 % . Can you please suggest how to troubleshoot or how to optimize my mail server.We are using horde webmail.

RAM:
free -m
             total       used       free     shared    buffers     cached
Mem:          3830       3337        493          0        268       1254
-/+ buffers/cache:       1814       2016
Swap:         4095         48       4047

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Apache CPU Usage 96%

*) Do you have other web applications running on this server?
*) Is it possible to know which web application causes high CPU usage? Especially which operation in this web application?

3

Re: Apache CPU Usage 96%

Its apache that showing 90 above in top command, no other application is installed on this this system. Do you want to know any other log information cause I cant see any errors in log files.

4

Re: Apache CPU Usage 96%

Is it possible to let me login to your server to inspect this issue?

By the way, some addition questions for you:

*) How many mail users do you host?
*) Does most mail users use webmail to access their mailboxes?

5 (edited by reetikavyas28 2014-09-11 17:59:42)

Re: Apache CPU Usage 96%

Hi
Thanks for replying soon. I need take to permission from my senior. We have 25 domains and near about 200 users.

Yes most of them use webmail, cause they want to customize webmail from company logo.

Please let me know what Can I do to check further

6

Re: Apache CPU Usage 96%

We have 25 domains and near about 200 users.

Yes most of them use webmail, cause they want to customize webmail from company logo.

Please let me know what Can I do to check further???

7

Re: Apache CPU Usage 96%

reetikavyas28 wrote:

http cpu usage is above 95 %

Is it possible to confirm which web application causes the high CPU load?

8

Re: Apache CPU Usage 96%

ZhangHuangbin wrote:
reetikavyas28 wrote:

http cpu usage is above 95 %

Is it possible to confirm which web application causes the high CPU load?

Please check this output of top command:

top - 07:01:24 up 239 days, 20:46,  1 user,  load average: 0.17, 0.13, 0.10
Tasks: 296 total,   2 running, 294 sleeping,   0 stopped,   0 zombie
Cpu(s): 20.9%us,  4.6%sy,  0.0%ni, 74.3%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:   3922480k total,  3769048k used,   153432k free,   287228k buffers
Swap:  4194296k total,    42096k used,  4152200k free,  1332488k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                           
11823 apache    20   0  599m  49m 8196 R 90.6  1.3   4:08.74 httpd                                                                             
6546 mysql     20   0 2245m 108m 3832 S 17.9  2.8  11949:04 mysqld                                                                           
14065 dovenull  20   0 42276 2724 2132 S  2.3  0.1   0:05.43 imap-login

9

Re: Apache CPU Usage 96%

I see (and you already told me) httpd takes 90% CPU, my question is, Is it possible to confirm which WEB application causes the high CPU load?

10

Re: Apache CPU Usage 96%

Hi,

Only iredmail is installed and using strace i have seen horde  logs there. Web Application ? Please let me know how to check this?