Results 1 to 16 of 16
  1. #1

    Server Overloaded, no idea where to start!

    Hello all, I have been fighting with my VPS for a few days now over a high server load. It hasn't been under a 2.5 load since the 28th of Jan. It has since usually stayed between 4+ and 15!! Right now it's at 10.85.

    The server is self managed. I made a deal with a company and got the server setup with a few months free, but when I ordered it, I misunderstood and thought that it was managed. Now I'm basically screwed.

    When I login via SSH and run the top -c command I don't see anything using any huge amounts of CPU. I only have at most 10 small websites on the VPS, nothing with any huge traffic. I looked in the /tmp directory for any suspicious files using the cd /tmp command, but nothing showed up so I suppose it's empty.

    Does anyone have any suggestions? If I can't get this fixed I might as well just tell them to shut it off and just write it off as a loss.

  2. #2
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,641

  3. #3
    Heres what I got from that command:


    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.0 1628 600 ? Ss 23:30 0:00 init [3]
    root 30244 0.0 0.0 1540 524 ? Ss 23:30 0:00 syslogd -m 0
    named 30257 0.0 0.1 67168 2948 ? Ssl 23:30 0:00 /usr/sbin/named -u named
    root 30275 0.0 0.0 1468 372 ? S 23:30 0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -facility=mail
    root 30276 0.0 0.0 1804 596 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30285 0.0 0.0 1804 248 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30286 0.0 0.0 1804 248 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30287 0.0 0.0 1804 248 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30288 0.0 0.0 1804 248 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30289 0.0 0.0 1804 248 ? S 23:30 0:00 /usr/libexec/courier-authlib/authdaemond
    root 30290 0.0 0.0 4032 1136 ? Ss 23:30 0:00 /usr/sbin/sshd
    root 30303 0.0 0.0 2084 776 ? Ss 23:30 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    root 30312 0.0 0.0 2164 1116 ? S 23:30 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var
    mysql 30333 1.3 1.0 108544 16068 ? Sl 23:30 0:06 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --
    root 30371 0.0 0.2 5684 4012 ? S 23:30 0:00 chkservd
    root 30384 0.0 0.0 1460 304 ? S 23:30 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=imapd /u
    root 30385 0.0 0.0 1572 492 ? S 23:30 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -ma
    root 30395 0.0 0.0 1468 308 ? S 23:30 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -name=imap
    root 30396 0.0 0.0 1580 492 ? S 23:30 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -ma
    root 30402 0.0 0.0 1460 304 ? S 23:30 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=pop3d /u
    root 30404 0.0 0.0 1576 492 ? S 23:30 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -ma
    root 30411 0.0 0.0 1464 304 ? S 23:30 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -name=pop3
    root 30412 0.0 0.0 1576 492 ? S 23:30 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -ma
    root 30485 0.4 2.2 47492 34924 ? Ss 23:31 0:02 /usr/sbin/clamd
    mailnull 30557 0.0 0.0 7416 1184 ? Ss 23:31 0:00 /usr/sbin/exim -bd -q60m
    mailnull 30568 0.0 0.0 7424 1148 ? Ss 23:31 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root 30585 0.0 0.1 3788 1728 ? S 23:31 0:00 antirelayd
    root 30714 0.1 1.6 27524 25488 ? Ss 23:32 0:00 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pi
    root 31773 0.1 0.5 34656 8268 ? Ss 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    root 31807 0.0 0.0 2488 904 ? Ss 23:33 0:00 crond
    root 31867 0.0 1.5 27524 24132 ? S 23:33 0:00 spamd child
    root 31870 0.0 1.5 27524 24056 ? S 23:33 0:00 spamd child
    root 31899 0.0 0.3 7476 5096 ? S 23:33 0:00 /usr/local/cpanel/bin/leechprotect
    root 31909 0.0 0.2 15664 4552 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31918 0.0 0.5 35436 9432 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31921 0.0 0.5 35444 8944 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31924 0.0 0.5 35472 9276 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31925 0.0 0.5 35452 9072 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31926 0.0 0.5 35384 8732 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 31933 0.0 0.5 35388 8736 ? S 23:33 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    mailnull 31954 0.0 0.3 7352 4760 ? S 23:33 0:00 eximstats
    root 32038 0.0 0.4 9620 6372 ? Ss 23:34 0:00 cPhulkd - processor
    root 32052 0.0 0.4 14552 7836 ? S 23:34 0:00 cpsrvd - waiting for connections
    root 32087 0.0 0.4 13720 7864 ? S 23:34 0:00 cpdavd - accepting connections on 2077 and 2078
    root 32100 0.0 0.2 5848 3984 ? S 23:34 0:00 cpbandwd
    root 32101 0.0 0.4 9636 6720 ? SN 23:34 0:00 cpanellogd - sleeping for logs
    nobody 32124 0.0 0.4 34656 7268 ? S 23:34 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    cpanel 32137 0.0 0.0 3724 996 ? Ss 23:34 0:00 /usr/sbin/stunnel /usr/local/cpanel/etc/stunnel/default/stunnel.conf.
    dbus 32146 0.0 0.0 2400 928 ? Ss 23:34 0:00 dbus-daemon-1 --system
    root 32180 0.0 0.0 1488 388 ? Ss 23:34 0:00 /usr/sbin/portsentry -tcp
    root 1753 0.0 0.1 6920 2264 ? Ss 23:39 0:00 sshd: [email protected]/0
    root 1764 0.0 0.0 2168 1264 pts/0 Ss 23:39 0:00 -bash
    root 1815 0.0 0.0 2324 768 pts/0 R+ 23:39 0:00 ps auwx

  4. #4
    Join Date
    Oct 2004
    Location
    Ohio
    Posts
    1,641

  5. #5
    Wow,,that showed up a ton of different things. I was told to look for short file names like SS and BSD, but all I see is session ID numbers?

    drwxrwxrwt 6 root root 4096 Feb 4 23:49 .
    drwxr-xr-x 22 root root 4096 Feb 4 23:35 ..
    drwxrwxrwt 2 root root 4096 Feb 4 23:30 .ICE-unix
    drwxr-xr-x 2 root root 4096 Feb 4 10:52 cpbandwidth
    lrwxrwxrwx 1 root root 30 Feb 4 23:35 mysql.sock -> ../../var/lib/ mysql/mysql.sock
    drwxr-xr-x 3 root root 4096 Jan 8 19:39 pear
    drwxr-xr-x 3 root root 4096 Jan 25 15:10 screens
    -rw------- 1 nobody nobody 7163 Feb 4 23:12 sess_00dc69eb91b9bc8df528963 80d904192
    -rw------- 1 nobody nobody 0 Feb 4 22:00 sess_0350d872a93372db3cfcacf 381144766
    -rw------- 1 buildaho buildaho 30035 Feb 3 17:29 sess_04cb4d2049710c417539930 18cd247b9
    -rw------- 1 nobody nobody 0 Feb 4 22:24 sess_09a37ef235fb90efed79535 612d2eb9e
    -rw------- 1 nobody nobody 7163 Feb 4 23:12 sess_0a898a450ad7e977d44bb22 f9f0f1849
    -rw------- 1 nobody nobody 325 Feb 4 23:14 sess_0f28543358fd257eeed79cb afeaff883
    -rw------- 1 nobody nobody 7163 Feb 4 23:09 sess_13793c0035e1a3402d0a14d 2738a1c37
    -rw------- 1 nobody nobody 0 Feb 4 22:09 sess_13ba4d57fd8055bb0f4d8f3 ad8f0fa5f
    -rw------- 1 nobody nobody 322 Feb 4 21:45 sess_14605556862a790aab9e7a1 7760d92db
    -rw------- 1 nobody nobody 333 Feb 4 21:56 sess_1513de17bf8ac5b2c849b21 8bb9e16fe
    -rw------- 1 buildaho buildaho 31929 Feb 3 06:12 sess_156127b9c6c14c528884f81 3d208ab7b
    -rw------- 1 nobody nobody 333 Feb 4 23:49 sess_183da38f29388a3fca8e423 e53a91b53
    -rw------- 1 nobody nobody 326 Feb 4 23:42 sess_1c6d5b462efd1688d870b5e 6e878555c
    -rw------- 1 nobody nobody 333 Feb 4 23:48 sess_1e6badbf5eb585fba42a945 3f8cd9bc3
    -rw------- 1 root root 0 Jan 22 14:04 sess_20878fdffbbe614b7690a59 9d3c1d46b
    -rw------- 1 buildaho buildaho 30035 Feb 3 04:30 sess_232e5cf199f7cdb1da87963 7aa2984fa
    -rw------- 1 nobody nobody 327 Feb 4 22:05 sess_23f5175e9dd767795840135 42b626355
    -rw------- 1 root root 0 Jan 25 14:04 sess_24097e6d91de9927e12325f ea296e9ed
    -rw------- 1 nobody nobody 341 Feb 4 22:01 sess_28ad0d299538c1e16f70091 f38c46650
    -rw------- 1 nobody nobody 310 Feb 4 22:47 sess_3d69ab41350ff29ed7bbde0 daeeb4054
    -rw------- 1 nobody nobody 0 Feb 4 23:48 sess_46c5e4c631f6f8c8afadc6a a911fc260
    -rw------- 1 nobody nobody 7163 Feb 4 21:54 sess_497fc3f4c579cc87e2c5979 82fa24e1d
    -rw------- 1 nobody nobody 323 Feb 4 23:43 sess_4ad8e9b36b21a5b92287ed3 790c124b6
    -rw------- 1 nobody nobody 320 Feb 4 23:19 sess_4e1a03f3347754b4df8f3bc 4ec3c85ea
    -rw------- 1 nobody nobody 322 Feb 4 21:55 sess_5195b259032aed35e15971d 17d4967ec
    -rw------- 1 nobody nobody 7163 Feb 4 21:43 sess_51b075030bfdd110f8c8664 afd99ad77
    -rw------- 1 nobody nobody 7163 Feb 4 22:44 sess_520f672493b0570cbf55d3b 773508fb0
    -rw------- 1 nobody nobody 324 Feb 4 21:56 sess_5912dba04412458d306ba72 d68f3d5a5
    -rw------- 1 buildaho buildaho 37976 Feb 4 22:16 sess_5a98170ad53770d2e5c1bc5 b02c29524
    -rw------- 1 nobody nobody 309 Feb 4 21:36 sess_5b12196b3da825b3cf5eb3b 252b55984
    -rw------- 1 nobody nobody 7163 Feb 4 23:04 sess_5c15dd76c24bd0472bbda23 986e21811
    -rw------- 1 nobody nobody 7163 Feb 4 21:55 sess_5dc508d96f5843dca6a18f5 70a00c7a4
    -rw------- 1 nobody nobody 0 Feb 4 22:01 sess_6403513dc568d71ee280136 f2d2f43bc
    -rw------- 1 nobody nobody 0 Feb 4 22:05 sess_667d1226125da41fe7d2c04 95d1e5261
    -rw------- 1 nobody nobody 323 Feb 4 23:22 sess_756eeff2543da50d5e6a215 bf1724514
    -rw------- 1 root root 0 Jan 23 14:04 sess_7b3d74f451a2a2d8bb7b192 4159bc57c
    -rw------- 1 nobody nobody 323 Feb 4 23:22 sess_7bc9c11e5f03b78bdb7529c 71c44f04f
    -rw------- 1 nobody nobody 7533 Feb 4 21:56 sess_7dfb22376ddd79da79f7e3c e4ee139cc
    -rw------- 1 nobody nobody 0 Feb 4 21:59 sess_808db19ccfce01bebfeb80b cbfc1823d
    -rw------- 1 nobody nobody 323 Feb 4 21:56 sess_8ce50f953fa0320dd413a10 0818b0edc
    -rw------- 1 nobody nobody 324 Feb 4 23:25 sess_940934333576dabd4c6642b 452b64f45
    -rw------- 1 nobody nobody 7163 Feb 4 23:01 sess_98e65a35de0785f601ceeef f626b7bc8
    -rw------- 1 nobody nobody 7163 Feb 4 21:47 sess_a76c1cc5f9950434824137d 86d33aac1
    -rw------- 1 nobody nobody 300 Feb 4 21:38 sess_a8ddc861d2c1bda73ec8487 52621c7b8
    -rw------- 1 nobody nobody 0 Feb 4 22:38 sess_aceffb2eaea0ee41878ec59 92d9631b4
    -rw------- 1 nobody nobody 320 Feb 4 23:20 sess_ad3f6eb655e66a63ae0f2ae 1fe79c960
    -rw------- 1 root root 0 Jan 24 14:04 sess_aeb7050397ca7a99ae532d1 abaa0e3bc
    -rw------- 1 nobody nobody 7163 Feb 4 21:39 sess_b8fc74b9dd31c2c34a9d637 533ffe7d2
    -rw------- 1 nobody nobody 324 Feb 4 23:25 sess_bd3c9a18a365e7ace4b2991 d3fc88a23
    -rw------- 1 nobody nobody 337 Feb 4 22:09 sess_bdae73ed3feb9d83b5edecf 664f608b8
    -rw------- 1 nobody nobody 7163 Feb 4 22:52 sess_c04edc3afcb8b36f2559a39 5248210aa
    -rw------- 1 nobody nobody 0 Feb 4 22:29 sess_c18f7cdebc93ba6567a8b43 647bc3c6f
    -rw------- 1 nobody nobody 0 Feb 4 21:54 sess_c35f223ca67eda727a2fcf8 4170c0398
    -rw------- 1 nobody nobody 323 Feb 4 23:23 sess_c5e1a58bbe4994ba03a61f7 a97867124
    -rw------- 1 nobody nobody 7163 Feb 4 21:48 sess_c5fad3df0fd8cf9aa81b9f6 89145065c
    -rw------- 1 nobody nobody 335 Feb 4 22:56 sess_c8c8025b7b4e332b379ba9f e48332a64
    -rw------- 1 buildaho buildaho 32016 Feb 4 07:23 sess_cb4d01ff6bfd5c939530375 e730c8827
    -rw------- 1 nobody nobody 7163 Feb 4 22:34 sess_d204d05a6471f738962b94f a25f59c0c
    -rw------- 1 nobody nobody 321 Feb 4 23:21 sess_d323f6ab3979730ede1cec6 2032c16e3
    -rw------- 1 nobody nobody 0 Feb 4 22:14 sess_d43d46346a683932c862f11 e94ccfb07
    -rw------- 1 nobody nobody 324 Feb 4 23:24 sess_dc20288ee5b8cd2d520dabc 9af8533e7
    -rw------- 1 nobody nobody 323 Feb 4 23:23 sess_e095e80643718b25e165025 117e388a2
    -rw------- 1 buildaho buildaho 48005 Feb 3 22:23 sess_e1f352843f096516ce802a9 cf2221760
    -rw------- 1 nobody nobody 325 Feb 4 21:49 sess_f118263643df54ca934be6d f1343edda
    -rw------- 1 nobody nobody 7163 Feb 4 23:03 sess_f85f418aade2a6b825a9627 9bd9aaa72
    -rw------- 1 nobody nobody 318 Feb 4 22:54 sess_fbee43daff9a21e87bc61c9 b5e7e4c9f
    -rw------- 1 nobody nobody 336 Feb 4 23:15 sess_ffb52c5045a160cff03cbd6 4e1c10051

  6. #6
    Anyone have any idea what this is::

    /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/seo.xxx***********.pid --skip-external-locking

    It's the top process, using 3.5% of the CPU.

    I edited the seo.xxxxxxx.pid part to protect the hosts identity.

  7. #7
    Join Date
    May 2007
    Posts
    315
    if you need to ask what that process is, you should log out and hire an administrator to work on your server. asking for free advice on a forum won't give you the specific answers you need, and any conclusions you draw on your own likely won't be accurate or useful.

    Rick

  8. #8
    And if you have nothing helpful to post, you need not reply.

    I posted this hoping that those that frequent this forum willing to help, would do so. I did not post it to hear people like you tell me to hire a server admin. Trust me, if I could I would, but I can't afford the $50 an hour (or whatever crazy amount it is) to hire a server admin.

  9. #9
    Join Date
    May 2007
    Posts
    315
    I posted to try and save you some time. next thing you know, you have nuked your mysql software, then blaming your host for massive downtime crippling your business.

    good luck!

    Rick

  10. #10
    Join Date
    Apr 2007
    Location
    zero one zero one zero
    Posts
    1,468
    Do you run a VPS or server? (not clear in origional post, or just me?). Yes, sounds stupid, have you tried a reboot?
    Afterburst - the best unmetered VPS - read why here!

  11. #11
    It's just a VPS, and yes I have rebooted. It seems to run good for a few mintues after the reboot, but then it slowly climbs back up. Right now its at 14.85!

  12. #12
    Join Date
    Nov 2005
    Location
    Spartanburg, SC
    Posts
    396
    heck first ting i would check if your running plesk is your mail queue if cpanel well theres lots of thins to check
    Fully Managed | cPanel Shared Hosting | Windows Shared (coming soon) | R1Soft Daily Backups | FFmpeg packages
    Base 10 Hosting LLC
    follow us on twitter - @Base10Hosting

  13. #13
    Join Date
    Sep 2005
    Location
    Canada
    Posts
    645
    Quote Originally Posted by build-a-host View Post
    I only have at most 10 small websites on the VPS, nothing with any huge traffic. I looked in the /tmp directory for any suspicious files using the cd /tmp command, but nothing showed up so I suppose it's empty.

    Does anyone have any suggestions? If I can't get this fixed I might as well just tell them to shut it off and just write it off as a loss.
    You are running a lot more than 10 small websites. You appear to be running Mysql ( a database server), cpanel and a mailserver.

    If you edit your my.cnf file and turn on skip-innodb you might get back about 75mb of memory and improve performance.

    As for cpanel, its a pig. If you don't need it don't use it.
    VPSVille.com
    Toronto, London, Dallas, Los Angeles
    Quality VPS hosting on Premium bandwidth

  14. #14
    Join Date
    Jan 2006
    Location
    Sydney, Australia
    Posts
    251
    VPS, high loadavg, processes are not using CPU -- it usually means exhausted disk IO.

    Run top, and check the row says Cpu(s): where it lists out where CPUs spend their time. Check the percentage next to "us" and "wa" -- if "us" is high, that means your applications are using too much CPU time. If "wa" is high, which I suspect might be the case, then your VPS spent most of its time waiting for disk IO. Another way to check it is by running "vmstats 5" for a while, and check the right-most number whether it is too high.

    You can't really do much if other VPS on the same server is thrashing the disk IO. Also if you are on Xen, make sure it is not doing too much swapping. If you have plenty of memory and it appears that it is your VPS that uses too much disk IO, you might need to adjust things like MySQL parameters so it gets enough cache/buffer and don't have to scan the disk for every query.

    Easiest way, obviously, is to hire an administrator

  15. #15
    Is it possible that the host did not allocate enough CPU to my VPS? At first, when it was running good, it showed 3.0Ghz under all 4 CPU's in the HyperVM panel, but now it only shows 0Ghz next to all of them.

    Is there anyway to check and see how much of the CPU I have been alloted?

    I just got a new VPS from Virpus, but I'm having a he** if a time transferring everything, it's taking forever!

    Thanks for the help!

  16. #16
    Join Date
    Jan 2006
    Location
    Sydney, Australia
    Posts
    251
    Quote Originally Posted by build-a-host View Post
    Is there anyway to check and see how much of the CPU I have been alloted?
    Yes it is also a possibility that your VPS provider putting a CPU limit on your VPS.

    Try use the following command "grep 'cpu MHz' /proc/cpuinfo" and if the provider puts any cpulimit on your VPS, it will be reflected there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •