1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CentOS Server Management Help

Discussion in 'Server Configuration and Hosting' started by Jeremy, Nov 18, 2010.

  1. Jeremy

    Jeremy XenForo Moderator Staff Member

    Hey,

    My load average is quite high, causing my site hosted on a vPS to run quite slowly. I have complete SSH access (root), can anyone tell me who to figure out why, and restart / reset it?

    Here are the load averages:
    22.76, 13.47, 11.93

    Jeremy
     
  2. John

    John Well-Known Member

    Do you have the ability to view Apache activity or any other processes logs?
     
  3. Jeremy

    Jeremy XenForo Moderator Staff Member

    This is an ssh -l root URL; top command:
    Screen shot 2010-11-18 at 12.46.20 PM.png

    This is the second time in two days my load was extremely high.
     
  4. John

    John Well-Known Member

    I don't see anything out of the ordinary in that except for sql. What are you running, db wise, on your server?
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    1 wordpress database.
     
  6. John

    John Well-Known Member

    Odd. I'd suggest contacting the host then...perhaps someone else on the VPS is killing it.
     
  7. Jeremy

    Jeremy XenForo Moderator Staff Member

    It happened last night too, it just went up to a crawl for a while, and back down again.
     
  8. Lucas

    Lucas Well-Known Member

    How long is apache maintaining its load at 10%+? Are you getting lots of hits on some website?
     
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    For yesterday, we got roughly 2,000 hits over the 24 hour period (highest, but we average about 1400-2000 daily). I'm assuming its still high, having issues logging into SSH and plesk to find load... and let's see what it is.... 29.18, 25.62, 19.59 (that's what it is now)
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    Actually, it might be a host issue. There was a system incident with them on a server that I am on.

    And... it just took my site down completely. *sigh* Only this week would this happen.
     
  11. Lucas

    Lucas Well-Known Member

    Yes, that's definitely not normal. No host should go over 2.5 for each core of the server for longer than a minute, in my opinion. Just contact them to see if there is an ongoing issue, otherwise I'd check who is or what is making all those requests to load Apache that high.
     
  12. Vladislav Rastrusny

    Vladislav Rastrusny Active Member

    From TOP it looks like apache is running using prefork MPM. I would suggest switching to (php-fpm + worker-mpm) plus replacing default old mysql version with Percona one (all data and settings will be preserved, just need to remove/install things). Also disable the following Apache modules in /etc/httpd/conf/httpd.conf if you don't specifically need them:

    auth_digest_module, authn_alias_module, authn_anon_module, authn_dbm_module, authn_default_module, authz_owner_module, authz_dbm_module, authz_default_module, ldap_module, authnz_ldap_module, deflate_module, usertrack_module, dav_module, autoindex_module, info_module, dav_fs_module, vhost_alias_module, speling_module, userdir_module, proxy_module, proxy_balancer_module, proxy_ftp_module, proxy_http_module, proxy_connect_module, cache_module, suexec_module, disk_cache_module, file_cache_module, mem_cache_module

    Don't forget to test your config before restarting Apache with service httpd configtest
     
  13. mlx

    mlx Well-Known Member

    Or get rid of crapache and install nginx ;)

    On the other hand if it's a host issue with the VPS all of this won't really help ...
     
    krstep, Blandt and Darkimmortal like this.
  14. Blandt

    Blandt Well-Known Member

    So long it's a managed hosting it's gotta use crapache :D
    Get yourself a new host ;) and install nginx .. worth the learning curve
     
  15. Lucas

    Lucas Well-Known Member

    Crapache, you people are funny. Now lets get serious, apache is just fine and has been fine for many years, thanks.
     
    Walter and Blandt like this.
  16. Paul M

    Paul M Well-Known Member

    You have 18 processes running in that screenshot, and only 33 sleeping, no wonder your load is high. Looks to me like you have only 1GB of memory, and no swap file. Thats a very odd set-up and quite possibly part of your issue.
     
    Lucas likes this.
  17. Jeremy

    Jeremy XenForo Moderator Staff Member

    512 MB actually. But the load has gone down to a reasonable level lately. But the set up is a base MT (dv) server -- I have done no set up once-so-ever.
     
  18. Paul M

    Paul M Well-Known Member

    512 mb ? Dont see how that can be. The display says 916144 k.

    With no swap file the server is going to struggle to work when it gets busy, and either grind to a halt, or just crash.
     
  19. Blandt

    Blandt Well-Known Member

    it's probably OpenVZ slice with burstable RAM
     
  20. Floris

    Floris Guest

    Maybe 7 years ago ;)
     

Share This Page