Server linux desbian 5 go to 40% cpu time and reboot in cycle

lamourfou's picture

Forums: 

hi sorry to disturb you i'm absolutely not familiar with linux/debian system

but my web server time to time goes to 40 % cpu time for nothing, but this afertoon i got a sql corrupt the host provider correct it,

but now the server goes to 40% cpu and reboot in cycle,

as i know ps afx gave a state of the server i sendend it to my host but they told me its perhaps bing or google is indexing the site (3840 articles in database) at this time they are closed an i got them at 18h00 at phone they don't seem to know really the cause

but for me that make non sense because the site is not so huge and other site doesn't disapear of the internet 1h per day because of google or bing indexing,

here is the result of the top command (i cannot list all the 262 process on my screen), the server is a vps desbian 5

top - 20:48:36 up 44 min, 1 user, load average: 42.70, 36.90, 26.10
Tasks: 255 total, 8 running, 246 sleeping, 0 stopped, 1 zombie
Cpu(s): 64.7%us, 30.8%sy, 0.0%ni, 2.7%id, 1.7%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4802304k total, 3444684k used, 1357620k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1564 mysql 15 0 385m 112m 7412 S 52 2.4 15:11.69 mysqld
5532 web67 15 0 174m 14m 7500 S 1 0.3 0:00.06 php-cgi
5425 web67 16 0 199m 40m 8084 S 0 0.9 0:00.81 php-cgi
5505 web67 15 0 175m 16m 7912 S 0 0.3 0:00.23 php-cgi
4085 www-data 15 0 0 0 0 Z 0 0.0 0:00.03 apache2
5313 root 15 0 19084 1424 944 R 0 0.0 0:00.77 top
1 root 15 0 10316 752 624 S 0 0.0 0:00.26 init
1284 daemon 21 0 8028 520 404 S 0 0.0 0:00.00 portmap
1386 root 18 0 60052 1300 924 S 0 0.0 0:00.02 rsyslogd
1395 root 18 0 49760 1192 692 S 0 0.0 0:00.00 sshd
1415 amavis 18 0 185m 77m 2736 S 0 1.6 0:00.74 amavisd-new
1440 root 18 0 17344 1464 1152 S 0 0.0 0:00.00 mysqld_safe
1488 amavis 20 0 186m 76m 1728 S 0 1.6 0:00.00 amavisd-new
1489 amavis 19 0 186m 76m 1728 S 0 1.6 0:00.00 amavisd-new
1566 root 18 0 3784 596 504 S 0 0.0 0:00.00 logger
1626 root 15 0 105m 44m 2668 S 0 0.9 0:00.94 spamd
1634 root 20 0 6068 464 360 S 0 0.0 0:00.00 courierlogger
1635 root 3 -20 13508 3276 2408 S 0 0.1 0:00.12 atop
1637 root 18 0 29604 1256 972 S 0 0.0 0:00.00 authdaemond
1641 root 18 0 29604 404 120 S 0 0.0 0:00.00 authdaemond
1642 root 18 0 29604 404 120 S 0 0.0 0:00.00 authdaemond
1643 root 18 0 29604 404 120 S 0 0.0 0:00.00 authdaemond
1644 root 18 0 29604 404 120 S 0 0.0 0:00.00 authdaemond
1645 root 18 0 29604 404 120 S 0 0.0 0:00.00 authdaemond
1648 root 18 0 6068 464 360 S 0 0.0 0:00.00 courierlogger
1649 root 18 0 9240 684 572 S 0 0.0 0:00.00 couriertcpd
1663 root 20 0 6068 380 288 S 0 0.0 0:00.00 courierlogger
1664 root 20 0 9240 668 556 S 0 0.0 0:00.00 couriertcpd
1669 root 18 0 6068 464 360 S 0 0.0 0:00.00 courierlogger
1670 root 15 0 9240 684 572 S 0 0.0 0:00.00 couriertcpd
1686 root 24 0 6068 376 288 S 0 0.0 0:00.00 courierlogger
1687 root 24 0 9240 668 556 S 0 0.0 0:00.00 couriertcpd
1691 root 18 0 105m 41m 588 S 0 0.9 0:00.00 spamd
1692 root 18 0 105m 41m 588 S 0 0.9 0:00.00 spamd
1699 nobody 15 0 26080 1496 800 S 0 0.0 0:00.00 mydns
1704 nobody 15 0 26312 1632 696 S 0 0.0 0:00.00 mydns
1778 root 15 0 36848 2308 1812 S 0 0.0 0:00.00 master
1782 postfix 15 0 52064 2788 2164 S 0 0.1 0:00.00 qmgr
1783 postfix 15 0 38908 2212 1748 S 0 0.0 0:00.00 pickup
1792 vmail 24 0 50136 1500 1036 S 0 0.0 0:00.00 postfix-policyd
1823 root 18 0 53048 904 432 S 0 0.0 0:00.00 saslauthd
1826 root 18 0 53048 636 164 S 0 0.0 0:00.00 saslauthd
1827 root 18 0 53048 520 48 S 0 0.0 0:00.00 saslauthd
1828 root 18 0 53048 520 48 S 0 0.0 0:00.00 saslauthd
1829 root 18 0 53048 520 48 S 0 0.0 0:00.00 saslauthd
1832 root 15 0 20688 632 364 S 0 0.0 0:00.00 pure-ftpd
1844 root 15 0 22384 1420 1016 R 0 0.0 0:00.02 ntpd
1864 root 15 0 19836 1040 804 S 0 0.0 0:00.01 cron
1877 root 18 0 242m 14m 7420 R 0 0.3 0:00.64 apache2
1878 root 16 0 39096 6856 2744 R 0 0.1 0:00.63 vlogger
1879 www-data 15 0 146m 4088 676 R 0 0.1 0:00.22 apache2
1895 root 15 0 77464 6228 1984 S 0 0.1 0:01.56 fail2ban-server
3160 postfix 15 0 41412 3144 2228 S 0 0.1 0:00.00 tlsmgr
3488 www-data 15 0 243m 9848 1604 S 0 0.2 0:00.14 apache2
3505 www-data 16 0 243m 9888 1620 S 0 0.2 0:00.11 apache2
3555 www-data 15 0 243m 10m 2092 S 0 0.2 0:00.04 apache2
3581 web67 15 0 196m 37m 8204 S 0 0.8 0:07.56 php-cgi
3586 www-data 16 0 243m 10m 2104 S 0 0.2 0:00.06 apache2
3587 www-data 15 0 243m 9808 1612 S 0 0.2 0:00.19 apache2
3589 www-data 15 0 243m 9948 1612 S 0 0.2 0:00.17 apache2
3603 www-data 15 0 243m 9848 1612 S 0 0.2 0:00.06 apache2
3624 www-data 16 0 243m 9812 1608 S 0 0.2 0:00.07 apache2
3657 www-data 15 0 243m 10m 2100 S 0 0.2 0:00.05 apache2
3665 web67 15 0 202m 43m 8208 S 0 0.9 0:07.37 php-cgi
3666 web67 15 0 200m 41m 8208 S 0 0.9 0:05.90 php-cgi
3677 www-data 15 0 243m 9868 1616 S 0 0.2 0:00.07 apache2
3679 www-data 15 0 243m 9840 1604 S 0 0.2 0:00.03 apache2
3689 www-data 15 0 243m 9.9m 2084 S 0 0.2 0:00.03 apache2
3690 www-data 16 0 243m 9764 1604 S 0 0.2 0:00.02 apache2
3727 www-data 15 0 243m 9844 1604 S 0 0.2 0:00.05 apache2
3731 www-data 15 0 243m 9944 2000 S 0 0.2 0:00.01 apache2
3813 www-data 15 0 243m 9m 2088 S 0 0.2 0:00.04 apache2
3818 www-data 15 0 243m 9852 1612 S 0 0.2 0:00.11 apache2
3893 www-data 15 0 243m 9764 1596 S 0 0.2 0:00.02 apache2
3894 www-data 15 0 243m 9472 1444 S 0 0.2 0:00.01 apache2
3897 www-data 15 0 243m 9908 1612 S 0 0.2 0:00.13 apache2
3898 www-data 16 0 243m 9412 1452 S 0 0.2 0:00.01 apache2
3901 www-data 15 0 243m 9872 1608 S 0 0.2 0:00.07 apache2
3903 www-data 16 0 243m 9384 1444 S 0 0.2 0:00.01 apache2
3915 www-data 16 0 243m 9708 1604 S 0 0.2 0:00.02 apache2
3920 www-data 15 0 243m 9864 1612 S 0 0.2 0:00.09 apache2
3937 www-data 15 0 243m 10m 2096 S 0 0.2 0:00.03 apache2
3939 www-data 15 0 243m 9648 1552 S 0 0.2 0:00.01 apache2
3944 www-data 15 0 243m 9868 1608 S 0 0.2 0:00.05 apache2
3952 web67 16 0 196m 37m 8180 S 0 0.8 0:03.62 php-cgi
3961 www-data 15 0 243m 9696 1596 S 0 0.2 0:00.01 apache2
3962 www-data 16 0 243m 9804 1604 S 0 0.2 0:00.01 apache2
3982 web67 16 0 205m 45m 8184 S 0 1.0 0:03.25 php-cgi

hope you can help,