Whats burning up the resources ???

Discussion in 'Site & Server Administration' started by kes, Nov 29, 2008.

  1. #1
    Hello,

    i have a vps server and the "kmemsize" and "numtcpsock" are maxing out constantly.

    On the server there is 7 quite average size sites from forums to ecommerce.

    But, is there a way to see what site is burning up these resources ??

    Need something sorting now as when this happens all the sites go down until i reboot the server! :mad::mad:

    Need step by step as im not very savvy with server stuff.
     
    kes, Nov 29, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    can you post the top command results here.
     
    Bohra, Nov 29, 2008 IP
  3. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Where are they ?

    Dont know what you mean
     
    kes, Nov 29, 2008 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    kmemsize=kernel memory size
    numtcpsock=no. of tcp sockets

    Are you running network heavy sites like proxies? That might be saturating your tcp socket allocation.

    Also, it can be that the vps host has set way too low values for the above fields.
     
    agnivo007, Nov 29, 2008 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    For top command output, you will need to login to your server using SSH. You can use software called putty to login to your server using SSH. After login, just right top and press enter. It will show you current running processes.

    Kailash
     
    kailash, Nov 29, 2008 IP
  6. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    ok, copied the resources...anything out of the ordinary ?

    Dont run proxy sites..

    on the server there is 2 ecommerce sites, 1 image hosting, 2 forums, 1 classifieds

    [​IMG]
     
    kes, Nov 30, 2008 IP
  7. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    Really need some help on this if possible as im having to keep restarting my server due to all the sites freezing up
    :(:(
     
    kes, Nov 30, 2008 IP
  8. livedomainsearch

    livedomainsearch Peon

    Messages:
    111
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hmm, very difficult to pin point what may cause this issue. Have you tried contacting your host? If not, maybe you can give it try and see if they see something you don't. Usually with ecommerce sites, especially with forum sites, I have seen certain files hacked and used for something else. You might want to see which site might be the root cause for this issue and then move from there to other possible areas...
     
    livedomainsearch, Nov 30, 2008 IP
  9. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #9
    is there a way to pinpoint which domain is causing the problem...

    if so, can you give us step by step instructions plz

    Really need to know which sites causing this issues so i can take further action.

    also my hosts say to run a cron on the server to restart mysql and apache2 every 30 mins....was this good advice or just a fob off ??
     
    kes, Dec 1, 2008 IP
  10. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #10
    Restarting Apache and MySQL every 30 minutes is not a good idea. Tell your host to optimize Apache and MySQL settings (if you have managed service included). Also continuously monitor the load of the server and see is there any spike in the load.

    Also if you have cPanel control panel, you can check the CPU/Memory usage from WHM. But it will not give you the real time usage.

    Kailash
     
    kailash, Dec 2, 2008 IP
  11. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #11
    Thanks Kailash,

    Thats what i thougt, but i spoke to support at webfusion and they set up a cron to restart the apache2 and mysql every 30 mins and i was told that would solve the issue.

    It seems to have sort the numtcpsock issues (it was maxing out the 166 concurrent connections)

    But the kmemsize is STILL maxing out every day.

    Do you think the image hosting site is maxing this out ? or does that not use up a lot of kmemsize ??
     
    kes, Dec 2, 2008 IP
  12. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #12
    Chances of number of connections for image hosting is high because people may directly hotlink the images with your site which may increase the number of connections.

    Kailash
     
    kailash, Dec 2, 2008 IP
  13. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #13
    so if they hotlink it uses up one of the connections from my server ? is there a way to stop this ??

    Would the image hosting also burn up kmemsize ?

    Also, is there possibly a way to check which site on the server is using the kmemsize and numtcpsock ?
     
    kes, Dec 2, 2008 IP