Results 1 to 17 of 17

Thread: Attention nerds: Help fix the server again

  1. #1
    Owner Dan Druff's Avatar
    Reputation
    10137
    Join Date
    Mar 2012
    Posts
    54,746
    Blog Entries
    2
    Load Metric
    67512942

    Attention nerds: Help fix the server again

    Going crazy trying to figure this one out.

    Starting a few days ago, PHP started hogging a lot of server time.

    This is NOT the same problem as last time, which involved a corrupt database which I eventually found on my own.

    Here are what I believe to be the facts:

    - Not a DOS attack

    - Does not seem to be database corruption. mysqld is not using an unusual amount of CPU, PLUS this is happening on BOTH forums running on this server (PFA and one other), and they have separate databases

    - php process is hogging CPU time. It's not one particular PHP call. Sometimes it's showthread.php, sometimes it's forumdisplay.php, sometimes it's others.

    - Load average constantly around 2-3. Before this problem, it was well below 1.

    - Did not install anything new recently to bring this on, though it's possible something auto-updated without my knowledge

    - Dedicated VPS machine (i.e. can't blame on shared hosting)

    Basically what would cause these php calls to suddenly get slow and hog CPU time, when last week with the identical setup, everything was fine?

    Ideas?


  2. #2
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Quote Originally Posted by Dan Druff View Post
    Going crazy trying to figure this one out.

    Starting a few days ago, PHP started hogging a lot of server time.

    This is NOT the same problem as last time, which involved a corrupt database which I eventually found on my own.

    Here are what I believe to be the facts:

    - Not a DOS attack

    - Does not seem to be database corruption. mysqld is not using an unusual amount of CPU, PLUS this is happening on BOTH forums running on this server (PFA and one other), and they have separate databases

    - php process is hogging CPU time. It's not one particular PHP call. Sometimes it's showthread.php, sometimes it's forumdisplay.php, sometimes it's others.

    - Load average constantly around 2-3. Before this problem, it was well below 1.

    - Did not install anything new recently to bring this on, though it's possible something auto-updated without my knowledge

    - Dedicated VPS machine (i.e. can't blame on shared hosting)

    Basically what would cause these php calls to suddenly get slow and hog CPU time, when last week with the identical setup, everything was fine?

    Ideas?

    Can you drop the Process Log here from WHM?

  3. #3
    Plutonium sonatine's Avatar
    Reputation
    7376
    Join Date
    Mar 2012
    Posts
    33,418
    Load Metric
    67512942
    Explain why we cant blame VPS on hosting please?

    It feels like disk IO bottleneck maybe? If the hypervisor isnt sophisticated enough to shape IOPS then someone doing heavy reads/writes elsewhere in the array is going to impact you.

     
    Comments
      
      OSA: ok, now in english
    "Birds born in a cage think flying is an illness." - Alejandro Jodorowsky

    "America is not so much a nightmare as a non-dream. The American non-dream is precisely a move to wipe the dream out of existence. The dream is a spontaneous happening and therefore dangerous to a control system set up by the non-dreamers." -- William S. Burroughs

  4. #4
    Owner Dan Druff's Avatar
    Reputation
    10137
    Join Date
    Mar 2012
    Posts
    54,746
    Blog Entries
    2
    Load Metric
    67512942
    Quote Originally Posted by sonatine View Post
    Explain why we cant blame VPS on hosting please?

    It feels like disk IO bottleneck maybe? If the hypervisor isnt sophisticated enough to shape IOPS then someone doing heavy reads/writes elsewhere in the array is going to impact you.
    But would this affect php only?

    It's like some php setting changed without my knowledge and is screwing everything up, or perhaps php itself went corrupt in some way.

  5. #5
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Logically one would say that almost everything on this site has a database call, so it could still be some kind of database issue.

    Does vBulletin have ways to flush and rebuild indexes?

    Might want to run Repairs on all your tables.

  6. #6
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Quote Originally Posted by sonatine View Post
    Explain why we cant blame VPS on hosting please?

    It feels like disk IO bottleneck maybe? If the hypervisor isnt sophisticated enough to shape IOPS then someone doing heavy reads/writes elsewhere in the array is going to impact you.
    Actually to that point is traffic up? Considering all the Micon stuff?

     
    Comments
      
      sonatine: instincts rep

  7. #7
    Plutonium sonatine's Avatar
    Reputation
    7376
    Join Date
    Mar 2012
    Posts
    33,418
    Load Metric
    67512942
    Quote Originally Posted by Dan Druff View Post
    Quote Originally Posted by sonatine View Post
    Explain why we cant blame VPS on hosting please?

    It feels like disk IO bottleneck maybe? If the hypervisor isnt sophisticated enough to shape IOPS then someone doing heavy reads/writes elsewhere in the array is going to impact you.
    But would this affect php only?

    It's like some php setting changed without my knowledge and is screwing everything up, or perhaps php itself went corrupt in some way.

    I feel like diagnosing VPS issues downstream of the hypervisor is sort of a lottery; if there is an IO issue at the hypervisor level then its going to manifest itself as processes usurping top in your sandbox. Because by far the most popular processes are php, youre going to see more php processes stacking up in the queue.

    FWIW Ive never heard of php just getting corrupted. abrown's suggestion about tuning your DB sounds like the most pragmatic at this point tho, just in terms of next steps.

    Id also throw in a reboot and patch VB (if needed) just to be thorough, you're not going to fix some bad malloc() someplace without a reboot to clear mem.
    "Birds born in a cage think flying is an illness." - Alejandro Jodorowsky

    "America is not so much a nightmare as a non-dream. The American non-dream is precisely a move to wipe the dream out of existence. The dream is a spontaneous happening and therefore dangerous to a control system set up by the non-dreamers." -- William S. Burroughs

  8. #8
    Platinum garrett's Avatar
    Reputation
    32
    Join Date
    Mar 2013
    Location
    east coast
    Posts
    4,294
    Load Metric
    67512942
    FEDs???

     
    Comments
      
      4Dragons: GTFO of this thread.

  9. #9
    Owner Dan Druff's Avatar
    Reputation
    10137
    Join Date
    Mar 2012
    Posts
    54,746
    Blog Entries
    2
    Load Metric
    67512942
    Hang on... I think something in cpanel might be going nuts and hogging the memory. Maybe that's it.

  10. #10
    One Percenter Pooh's Avatar
    Reputation
    1375
    Join Date
    Mar 2012
    Posts
    5,738
    Load Metric
    67512942
    Have you tried jerking off on it?

     
    Comments
      
      DRK Star: ...everyday, as he reads the Micon thread

  11. #11
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Quote Originally Posted by sonatine View Post
    Quote Originally Posted by Dan Druff View Post

    But would this affect php only?

    It's like some php setting changed without my knowledge and is screwing everything up, or perhaps php itself went corrupt in some way.

    I feel like diagnosing VPS issues downstream of the hypervisor is sort of a lottery; if there is an IO issue at the hypervisor level then its going to manifest itself as processes usurping top in your sandbox. Because by far the most popular processes are php, youre going to see more php processes stacking up in the queue.

    FWIW Ive never heard of php just getting corrupted. abrown's suggestion about tuning your DB sounds like the most pragmatic at this point tho, just in terms of next steps.

    Id also throw in a reboot and patch VB (if needed) just to be thorough, you're not going to fix some bad malloc() someplace without a reboot to clear mem.
    Yea I haven't ever had PHP go bad, I have had times where I just do a hard reboot and see what happens, to see if they come back.

    You could try and tail your PHP connections

    I think it's the following command ( tail -f /usr/local/apache/domlogs/pokerfraudalert.com ), I think you might be able to press the up arrow and follow all the connections along as well.

    Could check /var/logs/messages as well to see if there is anything in there?

    And check for key errors in MySQL which would require a grep something like grep -i "incorrect key" /var/lib/mysql/*.err

    (Note that sometimes providers change these default directories around, so you might need to poke around a bit)

    Also you could check and see if you had a spike in 404 traffic or other traffic (like somebody brute attacking a port or login window).

  12. #12
    Plutonium sonatine's Avatar
    Reputation
    7376
    Join Date
    Mar 2012
    Posts
    33,418
    Load Metric
    67512942
    dmesg for segfaults or IO related issues, etc.

     
    Comments
      
      OSA: what he said
    "Birds born in a cage think flying is an illness." - Alejandro Jodorowsky

    "America is not so much a nightmare as a non-dream. The American non-dream is precisely a move to wipe the dream out of existence. The dream is a spontaneous happening and therefore dangerous to a control system set up by the non-dreamers." -- William S. Burroughs

  13. #13
    Owner Dan Druff's Avatar
    Reputation
    10137
    Join Date
    Mar 2012
    Posts
    54,746
    Blog Entries
    2
    Load Metric
    67512942
    Now I don't know what to say.

    Definitely there was a weird issue with the analog stats from cPanel hogging up all the memory. So I figured maybe that had a side effect of slowing php.

    I disabled it and now we are down to an 0.72 load.

    php still showing CPU usage higher than I remember, but maybe I just never paid attention before to how much it uses.

    So maybe crisis has been averted. If load avg stays under 1, I won't worry about it.

  14. #14
    Photoballer 4Dragons's Avatar
    Reputation
    2686
    Join Date
    Apr 2012
    Location
    Detroit
    Posts
    10,648
    Load Metric
    67512942
    Have you checked the plugins like the chat bar? disable it and test? Maybe the pulls from setting up your WSOP thread? First instinct is that it's a hosting issue though.

  15. #15
    Diamond Hockey Guy's Avatar
    Reputation
    1233
    Join Date
    Mar 2012
    Location
    Canada
    Posts
    7,629
    Load Metric
    67512942
    Did you try unplugging it & then plugging it back in?

     
    Comments
      
      DRK Star: finally, someone posting in this thread with any kind of computer knowledge....
    (•_•) ..
    ∫\ \___( •_•)
    _∫∫ _∫∫ɯ \ \

    Quote Originally Posted by Hockey Guy
    I'd say good luck in the freeroll but I'm pretty sure you'll go on a bender to self-sabotage yourself & miss it completely or use it as the excuse of why you didn't cash.

  16. #16
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Quote Originally Posted by Dan Druff View Post
    Now I don't know what to say.

    Definitely there was a weird issue with the analog stats from cPanel hogging up all the memory. So I figured maybe that had a side effect of slowing php.

    I disabled it and now we are down to an 0.72 load.

    php still showing CPU usage higher than I remember, but maybe I just never paid attention before to how much it uses.

    So maybe crisis has been averted. If load avg stays under 1, I won't worry about it.
    I have actually had issues similar don't know if files get to a certain size if it just freaks out.

    Both of the analytic programs are useless pieces of shit.

    Also just for general overhead any pho extensions that are installed and not necessary could be removed to help load and performance as well

  17. #17
    Gold abrown83's Avatar
    Reputation
    430
    Join Date
    Mar 2012
    Posts
    1,972
    Load Metric
    67512942
    Since we are talking performance Druff:

    Enabling mod_deflate or mod_gzip (Should get about a 75% compression in JS and CSS which would take load off the server)

    You should swap the logo with this jpeg version that I attached it saves 16kb on every non cache page load (doesn't seem like a lot but will for sure add up).

    Name:  vbulletin4_logo.jpg
Views: 304
Size:  5.5 KB (ugg I see the file uploader compresses the thing more, I can upload it somewhere if you want me to)

    Compressing and removing any unneeded CSS would probably pick you up a bit of performance as well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. heads up nerds premium ist content
    By lol wow in forum Flying Stupidity
    Replies: 12
    Last Post: 03-24-2018, 01:36 PM
  2. Attention nerds: Any idea what could be wrong with this site?
    By Dan Druff in forum Flying Stupidity
    Replies: 29
    Last Post: 02-25-2015, 09:16 PM
  3. Computer nerds - need help
    By cmoney in forum Flying Stupidity
    Replies: 23
    Last Post: 10-25-2014, 12:37 AM
  4. Nerds, do we have a DJ Tanner problem?
    By SrslySirius in forum Flying Stupidity
    Replies: 6
    Last Post: 04-23-2014, 10:34 PM
  5. Any Eco Majors? Macro Economics Nerds?
    By OSA in forum Flying Stupidity
    Replies: 17
    Last Post: 05-14-2013, 11:25 AM