High Cpu Usage

14 posts / 0 new
Last post
#1 Mon, 11/09/2015 - 17:19
jihane

High Cpu Usage

Hi,

I have a problem with high CPU high usage, i've tryed several sollution but in vain, OVH support changed us all the hardware, after re-contacting support and sending the file logs with the command top , they recongnized that php-cgi consumes lot of ressources, in virtualmin i've switched FCGId to CGI wrapper , i also fixed the Maximum total connections to 100 instead of inlimited in MySQL database connection settings and gave 90 to Interval between status collection job runs in Configurable options for Virtualmin Virtual Servers (GPL) (Status collection) => Status Collection => virtualmin configuration. Still no positif results. But in the appache error log, the error witch appears now is PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 . Now i'm really sick of this CPU, dunno how to reduce it and make it stable.

Give me please some advices, and help. And thank u in advance.

Regards.

Mon, 11/09/2015 - 22:11
Diabolico
Diabolico's picture

PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

This error usually show when you try to load "mcrypt.so" multiple times. Check your PHP config files and see if they contain "mcrypt.so" more than once.

For high CPU usage i'm not sure if this is the main problem but after you sort "mcrypt.so" restart your server and see the situation with CPU. If is still high that could be indication of:

  • your MySQL is too big and/or poorly configured

  • bad code (e.g. broken WP plugin)

  • your website is hacked

  • or under DDoS (OVH comes with DDoS protection but still worth to check)

  • high volume of spam

  • traffic spikes for whatever reason

If your MySQL is not big i would start with looking at the website code especially if you are using any sort of CMS like WP or Joomla.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Mon, 11/09/2015 - 22:17
andreychek

Howdy,

What are the symptoms of your high CPU usage? Is it a high load average? Are you seeing individual processes with a high CPU usage? Or is it showing in some other way?

Also, what is the output of the following commands:

uptime
mailq | tail -1
ps auxwf
Wed, 11/11/2015 - 09:55
jihane

Hi,

thanks gus for you replies,

Diabolico=> I've tryed to check mcrypt in all my php files but didn't find already, dunno if i didn't check in the right place, i'm on wordpress if u can tell me. 1) Yes indeed our DB is big, and get bigger every day with the articles as it's a press web site/ how to check if it's poorly configured and how to resolve it? 2) I've checked all the plugins by activating/ desactivating without any effect on the CPU. 4) Can u tell me from where to see that on virtualmin/ webmin, as the OVH support isn't working (exeption) 5) We have the plugin Akismet witch blocks the spams 6) traffic spikes for whatever reason: how to check this & resolve it? 3) I've let the last, i guess that's what happening to us, how can i know if it's, and how to secure our web site ?

Andreychek=> The web site is always slow, it's the UPC usage witch high, no the loading average isn't high, i see that in the system information.

uptime

16:38:49 up 1 day, 23:59, 1 user, load average: 20.32, 17.71, 19.20

mailq | tail -1

-- 9903 Kbytes in 572 Requests.

ps auxwf

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S Nov09 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S Nov09 0:22 _ [ksoftirqd/ 0] root 5 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/0: 0H] root 7 0.0 0.0 0 0 ? S Nov09 0:01 _ [migration/ 0] root 8 0.0 0.0 0 0 ? S Nov09 0:00 _ [rcu_bh] root 9 0.0 0.0 0 0 ? S Nov09 2:12 _ [rcu_sched] root 10 0.0 0.0 0 0 ? S Nov09 0:00 _ [migration/ 1] root 11 0.0 0.0 0 0 ? S Nov09 0:19 _ [ksoftirqd/ 1] root 13 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/1: 0H] root 14 0.0 0.0 0 0 ? S Nov09 0:01 _ [migration/ 2] root 15 0.0 0.0 0 0 ? S Nov09 0:29 _ [ksoftirqd/ 2] root 16 0.0 0.0 0 0 ? S Nov09 0:00 _ [kworker/2: 0] root 17 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/2: 0H] root 18 0.0 0.0 0 0 ? S Nov09 0:00 _ [migration/ 3] root 19 0.0 0.0 0 0 ? S Nov09 0:43 _ [ksoftirqd/ 3] root 20 0.0 0.0 0 0 ? S Nov09 0:00 _ [kworker/3: 0] root 21 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/3: 0H] root 22 0.0 0.0 0 0 ? S Nov09 0:01 _ [migration/ 4] root 23 0.0 0.0 0 0 ? S Nov09 0:23 _ [ksoftirqd/ 4] root 24 0.0 0.0 0 0 ? S Nov09 0:00 _ [kworker/4: 0] root 25 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/4: 0H] root 26 0.0 0.0 0 0 ? S Nov09 0:01 _ [migration/ 5] root 27 0.0 0.0 0 0 ? S Nov09 0:20 _ [ksoftirqd/ 5] root 29 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/5: 0H] root 30 0.0 0.0 0 0 ? S< Nov09 0:00 _ [khelper] root 31 0.0 0.0 0 0 ? S Nov09 0:00 _ [kdevtmpfs] root 32 0.0 0.0 0 0 ? S< Nov09 0:00 _ [netns] root 530 0.0 0.0 0 0 ? S< Nov09 0:00 _ [writeback] root 532 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kintegrity d] root 533 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bioset] root 535 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kblockd] root 646 0.0 0.0 0 0 ? S< Nov09 0:00 _ [ata_sff] root 656 0.0 0.0 0 0 ? S Nov09 0:00 _ [khubd] root 666 0.0 0.0 0 0 ? S< Nov09 0:00 _ [md] root 669 0.0 0.0 0 0 ? S< Nov09 0:00 _ [edac-polle r] root 774 0.0 0.0 0 0 ? S< Nov09 0:00 _ [rpciod] root 775 0.0 0.0 0 0 ? S Nov09 0:01 _ [kworker/4: 1] root 778 0.0 0.0 0 0 ? S Nov09 0:17 _ [kworker/0: 1] root 780 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kvm-irqfd- clean] root 782 0.0 0.0 0 0 ? S Nov09 0:02 _ [kworker/2: 1] root 885 0.0 0.0 0 0 ? S Nov09 0:04 _ [kswapd0] root 886 0.0 0.0 0 0 ? SN Nov09 0:00 _ [ksmd] root 955 0.0 0.0 0 0 ? S Nov09 0:00 _ [fsnotify_m ark] root 979 0.0 0.0 0 0 ? S< Nov09 0:00 _ [nfsiod] root 986 0.0 0.0 0 0 ? S< Nov09 0:00 _ [cifsiod] root 1002 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsIO] root 1003 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1004 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1005 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1006 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1007 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1008 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsCommit] root 1009 0.0 0.0 0 0 ? S Nov09 0:00 _ [jfsSync] root 1016 0.0 0.0 0 0 ? S< Nov09 0:00 _ [xfsalloc] root 1017 0.0 0.0 0 0 ? S< Nov09 0:00 _ [xfs_mru_ca che] root 1018 0.0 0.0 0 0 ? S< Nov09 0:00 _ [xfslogd] root 1021 0.0 0.0 0 0 ? S< Nov09 0:00 _ [ocfs2_wq] root 1024 0.0 0.0 0 0 ? S< Nov09 0:00 _ [user_dlm] root 1030 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bioset] root 1034 0.0 0.0 0 0 ? S< Nov09 0:00 _ [glock_work queue] root 1035 0.0 0.0 0 0 ? S< Nov09 0:00 _ [delete_wor kqueu] root 1041 0.0 0.0 0 0 ? S< Nov09 0:00 _ [gfs_recove ry] root 1046 0.0 0.0 0 0 ? S< Nov09 0:00 _ [crypto] root 1078 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kthrotld] root 1712 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bioset] root 1713 0.0 0.0 0 0 ? S< Nov09 0:00 _ [drbd-reiss ue] root 1742 0.0 0.0 0 0 ? S< Nov09 0:00 _ [iscsi_eh] root 1782 0.0 0.0 0 0 ? S Nov09 0:00 _ [scsi_eh_0] root 1785 0.0 0.0 0 0 ? S Nov09 0:00 _ [scsi_eh_1] root 1788 0.0 0.0 0 0 ? S Nov09 0:00 _ [scsi_eh_2] root 1791 0.0 0.0 0 0 ? S Nov09 0:00 _ [scsi_eh_3] root 1812 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bond0] root 1853 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bnx2x] root 1873 0.0 0.0 0 0 ? S< Nov09 0:00 _ [mlx4] root 1891 0.0 0.0 0 0 ? S< Nov09 0:00 _ [vfio-irqfd -clea] root 1955 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kpsmoused] root 1979 0.0 0.0 0 0 ? S< Nov09 0:00 _ [dm_bufio_c ache] root 1980 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kdelayd] root 1981 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kmpathd] root 1982 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kmpath_han dlerd] root 2064 0.0 0.0 0 0 ? S< Nov09 0:00 _ [deferwq] root 2069 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bioset] root 2070 0.0 0.0 0 0 ? S Nov09 0:03 _ [md3_raid1] root 2074 0.0 0.0 0 0 ? S< Nov09 0:00 _ [bioset] root 2075 0.0 0.0 0 0 ? S Nov09 0:30 _ [md2_raid1] root 2077 0.0 0.0 0 0 ? S< Nov09 0:40 _ [kworker/1: 1H] root 2078 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/2: 1H] root 2079 0.0 0.0 0 0 ? S< Nov09 0:00 _ [kworker/3: 1H] root 2080 0.1 0.0 0 0 ? S Nov09 3:00 _ [jbd2/md2-8 ] root 2081 0.0 0.0 0 0 ? S< Nov09 0:00 _ [ext4-dio-u nwrit] root 2082 0.0 0.0 0 0 ? S< Nov09 0:09 _ [kworker/5: 1H] root 2083 0.0 0.0 0 0 ? S< Nov09 0:06 _ [kworker/0: 1H] root 2086 0.0 0.0 0 0 ? S< Nov09 0:14 _ [kworker/4: 1H] root 3458 0.0 0.0 0 0 ? S Nov09 0:03 _ [jbd2/md3-8 ] root 3459 0.0 0.0 0 0 ? S< Nov09 0:00 _ [ext4-dio-u nwrit] root 28387 0.0 0.0 0 0 ? S Nov10 0:01 _ [kworker/1: 2] root 3930 0.0 0.0 0 0 ? S Nov10 0:02 _ [kworker/3: 1] root 15050 0.0 0.0 0 0 ? S Nov10 0:00 _ [kworker/5: 2] root 13839 0.0 0.0 0 0 ? S 01:01 0:00 _ [kworker/5: 0] root 12175 0.0 0.0 0 0 ? S 01:35 0:00 _ [kworker/0: 2] root 24427 0.0 0.0 0 0 ? S 07:03 0:00 _ [kworker/1: 0] root 17417 0.0 0.0 0 0 ? S 16:08 0:00 _ [kworker/u1 6:2] root 3536 0.0 0.0 0 0 ? S 16:29 0:00 _ [kworker/u1 6:1] root 1 0.0 0.0 10648 804 ? Ss Nov09 0:01 init [2] root 2197 0.0 0.0 21380 1428 ? Ss Nov09 0:00 udevd --daemon root 5820 0.0 0.0 21668 1456 ? S Nov09 0:01 _ udevd --dae mon root 5821 0.0 0.0 21668 1456 ? S Nov09 0:00 _ udevd --dae mon root 4079 0.0 0.0 119708 3676 ? Sl Nov09 0:10 /usr/sbin/rsysl ogd -c5 root 4164 0.0 0.0 13084 784 ? Ss Nov09 0:00 /sbin/mdadm --m onitor --pid-file /run/mdadm/monitor.pid --daemonise root 4212 0.0 0.0 4116 640 ? Ss Nov09 0:00 /usr/sbin/acpid root 4586 0.0 0.0 49932 1256 ? Ss Nov09 0:01 /usr/sbin/sshd root 10522 0.0 0.0 71292 3692 ? Ss 16:37 0:00 _ sshd: root@ pts/0 root 10791 0.0 0.0 19940 2172 pts/0 Ss 16:37 0:00 _ -bash root 14490 0.0 0.0 17784 1640 pts/0 R+ 16:41 0:00 _ ps auxwf root 4600 0.0 0.0 65060 1640 ? Ss Nov09 0:00 /usr/sbin/sasla uthd -a pam -m /var/spool/postfix/var/run/saslauthd root 4640 0.0 0.0 65060 1628 ? S Nov09 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau root 4641 0.0 0.0 65060 1668 ? S Nov09 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau root 4642 0.0 0.0 65060 1628 ? S Nov09 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau root 4643 0.0 0.0 65060 1628 ? S Nov09 0:00 _ /usr/sbin/s aslauthd -a pam -m /var/spool/postfix/var/run/saslau bind 4605 0.2 0.1 231992 33416 ? Ssl Nov09 6:41 /usr/sbin/named -u bind root 4614 0.0 0.0 20412 712 ? Ss Nov09 0:04 /usr/sbin/irqba lance 105 4635 0.0 0.0 29804 456 ? Ss Nov09 0:00 /usr/bin/dbus-d aemon --system root 4710 0.0 0.0 9336 1504 ? S Nov09 0:00 /bin/sh /usr/bi n/mysqld_safe mysql 5122 19.9 0.9 1078304 326472 ? Sl Nov09 575:13 _ /usr/sbin/m ysqld --basedir=/usr --datadir=/var/lib/mysql --plug root 5123 0.0 0.0 4088 628 ? S Nov09 0:00 _ logger -t m ysqld -p daemon.error root 5243 0.0 0.0 73824 16852 ? Ss Nov09 0:01 /usr/bin/perl / usr/share/usermin/miniserv.pl /etc/usermin/miniserv. root 5273 0.0 0.0 74632 18052 ? Ss Nov09 0:06 /usr/bin/perl / usr/share/webmin/miniserv.pl /etc/webmin/miniserv.co clamav 5276 0.0 0.9 484208 322844 ? Ssl Nov09 0:58 /usr/sbin/clamd -c /etc/clamav/clamd.conf root 5317 0.0 0.0 275260 19444 ? Ss Nov09 1:37 /usr/sbin/apach e2 -k start www-data 14804 0.0 0.0 215116 9564 ? S Nov10 0:00 _ /usr/sbin/a pache2 -k start www-data 2133 0.0 0.0 276784 13736 ? S 16:27 0:00 _ /usr/sbin/a pache2 -k start www-data 2383 0.0 0.0 276808 13764 ? S 16:28 0:00 _ /usr/sbin/a pache2 -k start www-data 2969 0.0 0.0 276768 13720 ? S 16:28 0:00 _ /usr/sbin/a pache2 -k start www-data 3769 0.0 0.0 276756 13724 ? S 16:29 0:00 _ /usr/sbin/a pache2 -k start www-data 3795 0.0 0.0 276776 13748 ? S 16:29 0:00 _ /usr/sbin/a pache2 -k start www-data 3799 0.0 0.0 276760 13708 ? S 16:29 0:00 _ /usr/sbin/a pache2 -k start www-data 4473 0.0 0.0 276760 13716 ? S 16:30 0:00 _ /usr/sbin/a pache2 -k start www-data 5258 0.0 0.0 276784 13744 ? S 16:31 0:00 _ /usr/sbin/a pache2 -k start www-data 5267 0.0 0.0 276760 13720 ? S 16:31 0:00 _ /usr/sbin/a pache2 -k start www-data 5451 0.0 0.0 276760 13720 ? S 16:31 0:00 _ /usr/sbin/a pache2 -k start www-data 5453 0.0 0.0 276760 13700 ? S 16:31 0:00 _ /usr/sbin/a pache2 -k start www-data 5476 0.0 0.0 276776 13744 ? S 16:31 0:00 _ /usr/sbin/a pache2 -k start bledna 14477 98.0 0.1 222820 65292 ? R 16:41 0:00 | _ /usr/bi n/php5-cgi www-data 6276 0.0 0.0 276752 13708 ? S 16:32 0:00 _ /usr/sbin/a pache2 -k start www-data 6318 0.0 0.0 276768 13728 ? S 16:32 0:00 _ /usr/sbin/a pache2 -k start www-data 6327 0.0 0.0 276736 13708 ? S 16:32 0:00 _ /usr/sbin/a pache2 -k start www-data 6617 0.0 0.0 276752 13704 ? S 16:32 0:00 _ /usr/sbin/a pache2 -k start www-data 6643 0.0 0.0 276768 13708 ? S 16:32 0:00 _ /usr/sbin/a pache2 -k start www-data 7586 0.0 0.0 276768 13704 ? S 16:33 0:00 _ /usr/sbin/a pache2 -k start www-data 7642 0.0 0.0 276760 13700 ? S 16:33 0:00 _ /usr/sbin/a pache2 -k start www-data 9096 0.0 0.0 276744 13696 ? S 16:35 0:00 _ /usr/sbin/a pache2 -k start www-data 9577 0.0 0.0 276752 13712 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 9864 0.0 0.0 276712 13672 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10062 0.0 0.0 276760 13720 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10098 0.0 0.0 276784 13732 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10118 0.0 0.0 276768 13720 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10122 0.0 0.0 276736 13716 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10124 0.0 0.0 276768 13708 ? S 16:36 0:00 _ /usr/sbin/a pache2 -k start www-data 10684 0.0 0.0 276720 13684 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10698 0.0 0.0 276768 13724 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10699 0.0 0.0 276704 13652 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start bledna 13139 0.9 0.1 216064 59488 ? S 16:40 0:00 | _ /usr/bi n/php5-cgi www-data 10714 0.0 0.0 276768 13716 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10801 0.0 0.0 276760 13712 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10815 0.0 0.0 276720 13676 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10833 0.0 0.0 276736 13704 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10850 0.0 0.0 276760 13696 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10855 0.0 0.0 276768 13720 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 10857 0.0 0.0 276768 13704 ? S 16:37 0:00 _ /usr/sbin/a pache2 -k start www-data 11293 0.0 0.0 276720 13676 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11295 0.0 0.0 276736 13684 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11300 0.0 0.0 276720 13680 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11302 0.0 0.0 276712 13664 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11304 0.0 0.0 276752 13688 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11306 0.0 0.0 276704 13664 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11359 0.0 0.0 276748 13704 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11413 0.0 0.0 276744 13684 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11415 0.0 0.0 276768 13704 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11416 0.0 0.0 276736 13704 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11417 0.0 0.0 276752 13708 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11487 0.0 0.0 276768 13724 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start bledna 14489 0.0 0.0 168836 11172 ? R 16:41 0:00 | _ /usr/bi n/php5-cgi www-data 11489 0.0 0.0 276720 13676 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start bledna 13123 0.9 0.1 216060 59480 ? S 16:40 0:00 | _ /usr/bi n/php5-cgi www-data 11514 0.0 0.0 276776 13720 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11515 0.0 0.0 276704 13652 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11518 0.0 0.0 276720 13688 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11519 0.0 0.0 276704 13652 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start www-data 11672 0.0 0.0 276728 13672 ? S 16:38 0:00 _ /usr/sbin/a pache2 -k start bledna 13157 0.9 0.1 216060 59484 ? S 16:40 0:00 | _ /usr/bi n/php5-cgi www-data 12488 0.0 0.0 276736 13692 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12509 0.0 0.0 276752 13688 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12520 0.0 0.0 276720 13676 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12522 0.0 0.0 276720 13680 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12554 0.0 0.0 276736 13688 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12563 0.0 0.0 276720 13656 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12575 0.0 0.0 276720 13664 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12636 0.0 0.0 276712 13672 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12637 0.0 0.0 276760 13708 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12646 0.0 0.0 276744 13636 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12647 0.0 0.0 276712 13660 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12648 0.0 0.0 276736 13696 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12649 0.0 0.0 276720 13668 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12658 0.0 0.0 276720 13684 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12659 0.0 0.0 276712 13660 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12660 0.0 0.0 276736 13696 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12661 0.0 0.0 276720 13668 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12662 0.0 0.0 276704 13652 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12664 0.0 0.0 276712 13656 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 12665 0.0 0.0 276760 13684 ? S 16:39 0:00 _ /usr/sbin/a pache2 -k start www-data 13000 0.0 0.0 276712 13644 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13197 0.0 0.0 276712 13660 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13231 0.0 0.0 276696 13612 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13246 0.0 0.0 276752 13660 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13556 0.0 0.0 276744 13676 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13572 0.0 0.0 276712 13664 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13573 0.0 0.0 276712 13664 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13584 0.0 0.0 276720 13668 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13585 0.0 0.0 276712 13664 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13586 0.0 0.0 276720 13664 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13595 0.0 0.0 276728 13628 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13596 0.0 0.0 276704 13572 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13598 0.0 0.0 276696 13560 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13601 0.0 0.0 276712 13640 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13604 0.0 0.0 276696 13580 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13621 0.0 0.0 276736 13672 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13622 0.0 0.0 276736 13640 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start bledna 14486 54.0 0.1 215508 58456 ? S 16:41 0:00 | _ /usr/bi n/php5-cgi www-data 13623 0.0 0.0 276712 13656 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13624 0.0 0.0 276720 13668 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13625 0.0 0.0 0 0 ? Z 16:40 0:00 _ [apache2] < defunct> www-data 13626 0.0 0.0 276704 13656 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13627 0.0 0.0 276712 13668 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13628 0.0 0.0 276712 13656 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13629 0.0 0.0 276728 13656 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start bledna 14485 55.0 0.1 214976 57824 ? R 16:41 0:00 | _ /usr/bi n/php5-cgi www-data 13631 0.0 0.0 276768 13688 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13632 0.0 0.0 276688 13584 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13633 0.0 0.0 276696 13556 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13635 0.0 0.0 276720 13652 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13710 0.0 0.0 276720 13664 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13729 0.0 0.0 276696 13572 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 13746 0.0 0.0 276728 13584 ? S 16:40 0:00 _ /usr/sbin/a pache2 -k start www-data 14065 0.0 0.0 276728 13664 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14075 0.0 0.0 276704 13620 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14076 0.0 0.0 276704 13572 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14094 0.0 0.0 276704 13652 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14095 0.0 0.0 276712 13612 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14096 0.0 0.0 276720 13640 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14097 0.0 0.0 276696 13556 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14121 0.0 0.0 276664 13344 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14123 0.0 0.0 276696 13656 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14124 0.0 0.0 276672 13384 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14125 0.0 0.0 276688 13568 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14126 0.0 0.0 276680 13404 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14127 0.0 0.0 276704 13588 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14128 0.0 0.0 276728 13528 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14170 0.0 0.0 276696 13544 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14171 0.0 0.0 276680 13384 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14172 0.1 0.0 276696 13624 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14173 0.0 0.0 276696 13540 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14174 0.0 0.0 276696 13524 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14175 0.0 0.0 276696 13560 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14176 0.0 0.0 276696 13632 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14177 0.0 0.0 276664 13332 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14178 0.0 0.0 276672 13448 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14179 0.0 0.0 276680 13364 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14180 0.0 0.0 276688 13544 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14181 0.0 0.0 276688 13552 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14182 0.0 0.0 276672 13404 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14183 0.0 0.0 279820 16504 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14184 0.0 0.0 276696 13512 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14362 0.0 0.0 276704 13604 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14381 0.0 0.0 276696 13520 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14382 0.2 0.0 276712 13648 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start www-data 14426 0.0 0.0 276672 13308 ? S 16:41 0:00 _ /usr/sbin/a pache2 -k start root 5503 0.0 0.0 20892 1064 ? Ss Nov09 0:00 /usr/sbin/cron clamav 5521 0.0 0.0 73664 5148 ? Ss Nov09 2:26 /usr/bin/freshc lam -d --quiet --config-file=/etc/clamav/freshclam.c root 5551 0.0 0.0 21520 980 ? Ss Nov09 0:01 /usr/sbin/dovec ot -c /etc/dovecot/dovecot.conf dovecot 5627 0.0 0.0 13048 1036 ? S Nov09 0:00 _ dovecot/anv il root 5628 0.0 0.0 13176 1220 ? S Nov09 0:00 _ dovecot/log root 5673 0.0 0.0 37876 2480 ? Ss Nov09 0:06 /usr/lib/postfi x/master postfix 5692 0.0 0.0 40248 2816 ? S Nov09 0:07 _ qmgr -l -t fifo -u postfix 11428 0.0 0.0 42576 3512 ? S Nov09 0:00 _ tlsmgr -l - t unix -u -c postfix 19277 0.0 0.0 39944 2452 ? S 16:10 0:00 _ pickup -l - t fifo -u -c postfix 12078 0.0 0.0 40160 2928 ? S 16:39 0:00 _ trivial-rew rite -n rewrite -t unix -u -c postfix 12913 0.0 0.0 44248 2652 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12914 0.0 0.0 44248 2648 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12915 0.0 0.0 44248 2656 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12916 0.0 0.0 44248 2656 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12919 0.0 0.0 44248 2656 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12920 0.0 0.0 44248 2656 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 12921 0.0 0.0 44248 2656 ? S 16:40 0:00 _ smtp -t uni x -u -c postfix 13385 0.0 0.0 39976 2360 ? S 16:40 0:00 _ bounce -z - n defer -t unix -u -c postfix 13882 0.0 0.0 39976 2360 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13883 0.0 0.0 39976 2360 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13885 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13886 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13887 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13888 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13890 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13891 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13892 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13894 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13895 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13896 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13897 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13898 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13899 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13900 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13901 0.0 0.0 39976 2352 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13902 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13904 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13906 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13907 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13908 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13909 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13910 0.0 0.0 39976 2360 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13911 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13912 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13913 0.0 0.0 39940 2340 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13914 0.0 0.0 39940 2344 ? S 16:41 0:00 _ error -n re try -t unix -u -c postfix 13915 0.0 0.0 39976 2360 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 13916 0.0 0.0 39976 2356 ? S 16:41 0:00 _ bounce -z - n defer -t unix -u -c postfix 14167 0.1 0.0 40076 2396 ? S 16:41 0:00 _ showq -t un ix -u -c proftpd 5693 0.0 0.0 102084 2116 ? Ss Nov09 0:00 proftpd: (accep ting connections) list 5751 0.0 0.0 61388 8940 ? Ss Nov09 0:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl -s -q start list 5789 0.0 0.0 52832 10868 ? S Nov09 0:12 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=ArchRunne list 5790 0.0 0.0 52864 10896 ? S Nov09 0:12 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=BounceRun list 5791 0.0 0.0 52888 10884 ? S Nov09 0:12 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=CommandRu list 5792 0.0 0.0 52792 10872 ? S Nov09 0:11 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=IncomingR list 5793 0.0 0.0 52856 10940 ? S Nov09 0:11 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=NewsRunne list 5794 0.0 0.0 52832 10976 ? S Nov09 0:13 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=OutgoingR list 5795 0.0 0.0 52788 10876 ? S Nov09 0:12 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=VirginRun list 5796 0.0 0.0 52880 10864 ? S Nov09 0:00 _ /usr/bin/py thon /var/lib/mailman/bin/qrunner --runner=RetryRunn root 5813 0.0 0.0 16740 936 tty1 Ss+ Nov09 0:00 /sbin/getty 384 00 tty1 root 5814 0.0 0.0 16740 928 tty2 Ss+ Nov09 0:00 /sbin/getty 384 00 tty2 root 5815 0.0 0.0 16740 932 tty3 Ss+ Nov09 0:00 /sbin/getty 384 00 tty3 root 5816 0.0 0.0 16740 936 tty4 Ss+ Nov09 0:00 /sbin/getty 384 00 tty4 root 5817 0.0 0.0 16740 936 tty5 Ss+ Nov09 0:00 /sbin/getty 384 00 tty5 root 5818 0.0 0.0 16740 936 tty6 Ss+ Nov09 0:00 /sbin/getty 384 00 tty6

Wed, 11/11/2015 - 10:31
andreychek

Howdy,

Hmm, your server's load average is actually quite high (it's 20.32 in the command you shared above).

If that's above 1.00 or 2.00, that usually points to a problem of some sort.

We've sometimes seen that a large amount of email in the mail queue can increase the server's load average... I doubt it's the cause of your particularly high load though.

It might not hurt to rule this out though -- there are a decent amount of emails in your email queue (572 messages).

All all the messages in your queue expected?

You might consider temporarily turning off the Postfix service at an off-peak time, just for a few minutes, to see if your load comes dramatically down. Run "uptime" before doing so, and then run it after a few minutes of Postfix being off, and see if the load comes down a lot.

If not, then you may need to focus on your web app, along with the traffic it's getting.

To rule out that there isn't a bot clobbering your site there, what is the output of this command:

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head -20

You really may be seeing a site optimization problem, the above is just ruling out other issues.

If it's purely related to your site, you could always try enabling some caching or so within WordPress. That could take a lot of load off of MySQL.

-Eric

Wed, 11/11/2015 - 11:25 (Reply to #5)
jihane

Hi Eric,

Thanks alor for your tricks. Well for postfix, from webmin => System=> Bootup & Shutdown, i've tryed to stop, restart ... and checkinh each time from wirtualmin=> system information or uptime, but no effect, now it just become 55 :/

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head -20 18 196.206.5.140 16 37.187.152.85 11 105.158.183.64 10 41.142.174.43 10 105.154.246.115 9 41.143.137.34 9 105.155.56.208 8 5.36.36.121 8 178.237.36.57 7 93.91.80.6 7 88.128.80.123 7 83.137.1.196 7 81.231.80.29 7 79.179.139.182 7 46.193.0.159 7 41.143.197.155 7 41.140.128.190 7 160.176.86.27 7 105.155.202.138 6 95.91.232.227

The cach is enabled.

Wed, 11/11/2015 - 12:16
andreychek

Howdy,

Yeah I don't see anything unusual in the command output there.

But something is definitely very wrong, with a load average that high.

What is the output of this command:

free -m

-Eric

Wed, 11/11/2015 - 13:32
jihane

Hi,

free -m total used free shared buffers cached

Mem: 32169 30892 1277 0 323 25588 -/+ buffers/cache: 4980 27189 Swap: 510 0 510

Wed, 11/11/2015 - 14:52
andreychek

Yeah it looks like you have plenty of memory there... it's still difficult to say for sure, but it's looking more like the issue may be related to your app (and possibly it's communication with MySQL).

You may also want to review the your hardware has the resources to handle the amount of traffic you're receiving.

But I'd also look into additional forms of caching.

-Eric

Wed, 11/11/2015 - 15:40
jihane

I'm using wp-rocket for cach

Thu, 11/12/2015 - 05:36
Diabolico
Diabolico's picture
  1. You should check for "mcrypt" in php config files, one inside your virtual server (each one should have one) and in main "php.ini". This doesnt have anything to do with your WP.

  2. Search on google for "mysqltuner.pl" and "tuning-primer.sh". This two scripts should tell you if there is a problem with your MySQL. On google you can find a lot of info for both scripts but it comes down to download this two scripts into your root folder and start both of them using SSH and "perl mysqltuner.pl" and "sh tuning-primer.sh".

  3. OVH is great for hardware/network and is fast to replace failing parts but its truly unmanaged and do not expect any help from them if is not related to your server.

  4. Akismet is not bad but i would add captcha for comments, block direct access to wp-login.php and if you are not using jetpack i would permanently block access to "xmlrpc.php". Both can be done with htaccess.

  5. Its small chance but it could be failing hardware problem. With OVH you have rescue mode and use that to check your server.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Fri, 11/20/2015 - 11:10
jihane

Hi,

I'm returning to u, after several tentative (...) to resolve the problem, i still have troubles, well in brief, my Ovh support adviced me to still check the php-cgi.

I've changed FCGId to CGI wrapper. I've changed again CGI wrapper to Apache mod_php but i've got a blank page.

I dunno what to do with this php-cgi, cause it's swallows my CPU ressources, as shown in the running processes.

Mon, 01/04/2016 - 04:33
mille81

Hi,

i have the performance4 web hosting at ovh. Since 1 week I have the same problem which you have.

ovh says that one of my wordpress sites is trying to connect to IP 178.237.36.57

I have more than 10 Multidomains, and they all are not running...

Could you solve the problem with your site?

best regards christian

Wed, 01/13/2016 - 04:29
Masplus

Hi,

Sometimes, after upgarding webmin or virtualmin, permissions of /tmp change and it generates this error.

Try to change /tmp permissions to the originals

Instruction:
Execute this as root user
chmod 1777 /tmp

Topic locked