Server high loading when send email with smtp (and php mail)

thunn

Verified User
Joined
Mar 13, 2012
Messages
166
Hi All,
I'm new to DirectAdmin.

I currently using DirectAdmin for a VPS.
I often send email to website's member of a vBulletin forum (limit in mail setting of server is 500 mails per day). Each time I send mail, then server increase Loading average, Task and CPU Usage. So I have to reboot server, but I have not received much improvement:

top - 00:23:40 up 18 min, 2 users, load average: 152.96, 158.71, 94.15
Tasks: 497 total, 4 running, 493 sleeping, 0 stopped, 0 zombie
Cpu(s): 24.5%us, 6.2%sy, 0.0%ni, 18.8%id, 50.1%wa, 0.2%hi, 0.3%si, 0.0%st

Mem: 2075024k total, 1449388k used, 625636k free, 76052k buffers
Swap: 6144852k total, 0k used, 6144852k free, 742316k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11835 mysql 18 0 510m 132m 3736 R 13.9 6.5 0:00.44 mysqld
20768 apache 16 0 74168 28m 7476 S 10.3 1.4 0:00.31 httpd
10053 apache 16 0 74300 30m 8940 S 9.6 1.5 0:01.19 httpd
11817 apache 16 0 74056 30m 9268 D 4.3 1.5 0:14.73 httpd
11901 apache 15 0 72760 31m 12m S 4.3 1.6 0:01.21 httpd
11851 apache 16 0 72224 33m 13m S 1.7 1.7 0:01.26 httpd
3187 root 15 0 2944 1572 788 R 0.7 0.1 0:05.39 top
3211 mysql 16 0 510m 132m 3736 S 0.7 6.5 0:01.01 mysqld
3917 mysql 16 0 510m 132m 3736 S 0.7 6.5 0:00.36 mysqld
2931 root 15 0 10080 2948 2388 R 0.3 0.1 0:00.32 sshd
7134 root 18 0 9548 3048 2456 D 0.3 0.1 0:03.44 dataskq
18144 mail 15 0 10280 1088 664 S 0.3 0.1 0:00.10 exim
1 root 15 0 2160 636 548 S 0.0 0.0 0:02.11 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.02 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.02 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1
8 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
13 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kblockd/0
14 root 10 -5 0 0 0 S 0.0 0.0 0:00.05 kblockd/1
15 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
174 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
175 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1
178 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
180 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
249 root 21 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
250 root 18 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
251 root 15 0 0 0 0 S 0.0 0.0 0:00.07 pdflush
252 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kswapd0

Has anyone faced the issue like me? And how did you resoved it?

Thank you very much.
 
You won't know anything until you do some forensics. You don't tell us enough about your VPS to make more than an educated guess.

Check your queue.

As a start, post the output of:
Code:
# exim -bpc
and of
Code:
# df -h
and of
Code:
# cat /proc/meminfo

Some help here (bradthemad.org). If none of these help you (or I and others on these forums, who can help you figure this out as a commercial service) then the problem may very well be that the node holding your VPS doesn't have enough resources, but first you need to do your forensic work.

Note that your server load is high, as shown by the first line of your top output, and that the problem may be with MySQL, which can be resource intensive. Does your VPS really have 2GB of memory.

Jeff
 
Hi nobaloney,
thanks for your answer, here are some info based on command you provided:

As a start, post the output of:
Code:
[root@ns ~]# exim -bpc
0
and of
Code:
[root@ns ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             150G  107G   36G  76% /
/dev/sda1              99M   17M   77M  18% /boot
tmpfs                1014M     0 1014M   0% /dev/shm
/var/tmpMnt           2.0G   36M  1.8G   2% /tmp
and of
Code:
[root@ns ~]# cat /proc/meminfo
MemTotal:      2075024 kB
MemFree:        199636 kB
Buffers:         75560 kB
Cached:        1234984 kB
SwapCached:        452 kB
Active:        1077252 kB
Inactive:       686532 kB
HighTotal:     1179584 kB
HighFree:         7020 kB
LowTotal:       895440 kB
LowFree:        192616 kB
SwapTotal:     6144852 kB
SwapFree:      5913196 kB
Dirty:             220 kB
Writeback:           0 kB
AnonPages:      452812 kB
Mapped:          43656 kB
Slab:            94136 kB
PageTables:       4644 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   7182364 kB
Committed_AS:  1758508 kB
VmallocTotal:   114680 kB
VmallocUsed:      7316 kB
VmallocChunk:   107204 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     4096 kB

Some help here (bradthemad.org). If none of these help you (or I and others on these forums, who can help you figure this out as a commercial service) then the problem may very well be that the node holding your VPS doesn't have enough resources, but first you need to do your forensic work.

Note that your server load is high, as shown by the first line of your top output, and that the problem may be with MySQL, which can be resource intensive. Does your VPS really have 2GB of memory.
=> Yes please.
Jeff
 
You didn't manage your quoting properly but I've been able to figure out your answers. I'd suggest you need to have someone do some forensics on your server, and the place to start is your VPS vendor, because if it is a VPS problem you can spend a lot of money with me or someone else only to find out that it's your VPS's problem.

Jeff
 
You didn't manage your quoting properly but I've been able to figure out your answers. I'd suggest you need to have someone do some forensics on your server, and the place to start is your VPS vendor, because if it is a VPS problem you can spend a lot of money with me or someone else only to find out that it's your VPS's problem.

Jeff

Hi Jeff,
Thanks for your answer.
Do you have any suggest for me or an useful link to learn about manage quoting?
 
Forum quoting is recursive, and levels must be closed. I hope that helps.

Jeff
 
50.1%wa means that something is slowing down the input/output of information. It may be hard drive or memory. Something you definitely have to investigate and tweak settings. If you are on a vps it might also mean that the server is just over loaded and cant keep up.
 
Back
Top