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

Cpu's lock up at 100% when 200+ hit site.

Discussion in 'XenForo Questions and Support' started by andrewkm, Jan 21, 2013.

  1. andrewkm

    andrewkm Active Member

    Alright quick introduction; I run a forum for a gaming server.
    Our board statistics are not too big:
    There are times when we have 200-250 users hit the forums simultaneously (literally at the same time) - either when we run a competition with information on the website; or when our game server goes down for specific updates. All players insta hit the site. At this point I monitor our usage and cpus lock up at 100% and site just doesn't load.

    Can anyone give me any advice on what would be best to update to prevent this from happening.
    When run on a VPS with 2 vcpus and 4gb of ram. Just 2 days ago i bumped it to 3 vcpus and nothing... same lock-up affect... Do I need 4? Do I need to perhaps look into a different setting ? Is something configured wrong?

    Someone shed some light :)

    PS: We are running on a 100mbit line.
     
  2. Digital Doctor

    Digital Doctor Well-Known Member

    what addons are you using ?
     
  3. andrewkm

    andrewkm Active Member

     
  4. Digital Doctor

    Digital Doctor Well-Known Member

    None of those are obvious culprits.
    It's probably not an addon issue.
    [8wayRun.Com] XenPorta (Portal) 1.5.5 - might slow things down with higher traffic.
    [******] Custom Node Icon - 1.0 is available.
    http://xenforo.com/community/resources/custom-node-icon-icon-for-category.632/

    Any errors logged ?
    Social networking (Facebook especially) can slow things down.
    Do you have the server logs from a time when problems were happening ?
     
  5. Digital Doctor

    Digital Doctor Well-Known Member

    what caching programs are you using ? APC ?
    what php version ?
    what are you server settings ?
    does disk I/O peak when your CPU goes to 100% ?
     
  6. Luke F

    Luke F Well-Known Member

    Is your mysql server optimised?
    Have you considered moving to nginx+php-fpm if you haven't already?
    Where is the cpu usage primarily coming from (php/webserver or mysqld)?
     
  7. andrewkm

    andrewkm Active Member

    Hm - I'll get my devs to look into all this shortly and reply to all those questions. Need to wait for another gaming peak time to have 200+ hit the site at the same time again and I'll take more informed reports when its happening.

    We're running on
    PHP: 5.4.7
    Mysql: 5.5.28
    Running nginx
     
  8. andrewkm

    andrewkm Active Member

    Mysql settings:

     
  9. Slavik

    Slavik XenForo Moderator Staff Member

    You say 100% cpu, whats using it? httpd, mysql etc?

    When your under heavy load, have your admins SSH in and run the top command to find out.
     
    Adam Howard and MattW like this.

Share This Page