Webmaster Sun Login
Not a member yet? Sign up

How to find out reasons why my VPS is overloaded?

  • HOME
  • FORUMS
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 8 of 8
    Stick this thread
  1. #1
    Join Date
    Apr 2014
    Posts
    61
    Thumbs Up/Down
    Received: 3/0
    Given: 34/0
    Thanks
    42
    Thanked 2 Times in 2 Posts

    How to find out reasons why my VPS is overloaded?

    Hey Guys,

    My VPS is overloaded some times recent days because I used more websites on one VPS

    from my warning message on my web hosting control panel

    Warning: The system load average is 15.89
    One Minute - 23.03
    Five Minutes - 15.89
    Fifteen Minutes - 10.13

    top - 20:11:02 up 2 days, 21:34, 0 users, load average: 23.03, 15.89, 10.13
    Tasks: 123 total, 9 running, 113 sleeping, 0 stopped, 1 zombie
    Cpu(s): 2.8%us, 0.2%sy, 0.0%ni, 96.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 2097152k total, 841628k used, 1255524k free, 0k buffers
    Swap: 524288k total, 84872k used, 439416k free, 39396k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    3978 mysql 20 0 2366m 62m 4048 S 45.4 3.1 3:28.90 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/server.mydomain.com.err --pid-file=/var/lib/mysql/server.mydomain.com.pid
    15133 apache 20 0 214m 19m 3732 S 27.6 1.0 0:07.03 /usr/sbin/httpd -k start -DSSL
    16436 apache 20 0 210m 14m 3728 S 27.6 0.7 0:03.44 /usr/sbin/httpd -k start -DSSL
    16952 apache 20 0 206m 11m 3740 S 27.6 0.5 0:02.12 /usr/sbin/httpd -k start -DSSL

    more next lines....
    Can I know which website caused that, where did it come from? are there any ways to find out reasons why my VPS is overloaded?


    Thanks in advance
    Steitieh

  2. #2
    Join Date
    Mar 2015
    Location
    United States
    Posts
    182
    Thumbs Up/Down
    Received: 5/0
    Given: 0/0
    Thanks
    8
    Thanked 83 Times in 59 Posts
    Depends a bit on which operating system - but try running this:
    ps aux | sort -nr | head -n 10

    That'll give you the top 10 most memory consuming processes. Depending on how you have it set up, it'll display which user is running which module, and how much it consumes.
    You could also install a logging mechanism (if one is not installed already) that logs this.
    If you're running a web host, I'd simply switch over to CloudLinux to avoid this issue.

  3. The Following User Says Thank You to MightWeb For This Useful Post:
    steitieh (05-26-2015)

  4. #3
    Join Date
    Apr 2014
    Posts
    61
    Thumbs Up/Down
    Received: 3/0
    Given: 34/0
    Thanks
    42
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by MightWeb View Post
    Depends a bit on which operating system - but try running this:
    ps aux | sort -nr | head -n 10
    Could this show source consumed more resource in the past?

    Quote Originally Posted by MightWeb View Post
    That'll give you the top 10 most memory consuming processes. Depending on how you have it set up, it'll display which user is running which module, and how much it consumes.
    You could also install a logging mechanism (if one is not installed already) that logs this.
    If you're running a web host, I'd simply switch over to CloudLinux to avoid this issue.
    What is CloudLinux? why it can avoid the issue on overloading of a vps?

  5. #4
    Join Date
    Nov 2014
    Location
    Chilliwack, BC
    Posts
    622
    Thumbs Up/Down
    Received: 28/0
    Given: 0/0
    Thanks
    36
    Thanked 294 Times in 205 Posts
    It seems that Apache may be overloading your system, have you correctly optimized both Apache and MySQL Configuration Files? I understand you're on a VPS, it could also be that the system has been oversold and your resources have been heavily hit as a result. CloudLinux is an operating system based off of CentOS that allows for more server density and security within a hosting environment, with the capabilities of limiting resources on a per-site basis.

    What specifications does your VPS currently have? i.e. RAM & CPU.
    When running a hosting based environment with multiple websites it is recommended that you have access to more memory and processing capabilities.

  6. #5
    Join Date
    Mar 2015
    Location
    United States
    Posts
    182
    Thumbs Up/Down
    Received: 5/0
    Given: 0/0
    Thanks
    8
    Thanked 83 Times in 59 Posts
    Quote Originally Posted by steitieh
    Could this show source consumed more resource in the past?
    It would not. If you have WHM, you can view "Daily Process Log", which will give you a glimpse at that.


    Quote Originally Posted by steitieh
    What is CloudLinux? why it can avoid the issue on overloading of a vps?
    CloudLinux is an operating system built on CentOS/RHEL, which allows you to allocate RAM, CPU, I/O and so on to accounts. This means that no account can surpass the limits you set to it, unlike in other distributions where any account could theoretically consume the entire server resources.

  7. #6
    Join Date
    Apr 2014
    Posts
    61
    Thumbs Up/Down
    Received: 3/0
    Given: 34/0
    Thanks
    42
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by MightWeb View Post
    It would not. If you have WHM, you can view "Daily Process Log", which will give you a glimpse at that.
    I have WHM/cpanel installed on my VPS, I didn't know about this feature before, I will have a look on it.

    Thanks for sharing this tip!

  8. #7
    Join Date
    Mar 2015
    Location
    The Netherlands
    Posts
    100
    Thumbs Up/Down
    Received: 9/0
    Given: 1/0
    Thanks
    0
    Thanked 19 Times in 16 Posts
    It seems you have mysql + apache requesting a lot from your CPU. Did you already optimize the my.cnf and apache configs?

  9. #8
    Join Date
    Sep 2014
    Posts
    61
    Thumbs Up/Down
    Received: 3/0
    Given: 7/0
    Thanks
    2
    Thanked 3 Times in 3 Posts
    In most case someone attack your site.
    Did you look at access log? If there are a lot requests from a certain IP address, just block it after investigating that IP.

Newer Threads

  1. edsonbuchanan
    edsonbuchanan
    Replies: 0 | Views: 1693
    Last post by edsonbuchanan, 05-25-2015, 11:56 PM
  2. steitieh
    samng
    Replies: 4 | Views: 1497
    Last post by samng, 05-29-2015, 03:54 PM
  3. terrellbrewer
    edsonbuchanan
    Replies: 4 | Views: 1216
    Last post by edsonbuchanan, 05-27-2015, 10:11 AM
  4. oldnickb
    oldnickb
    Replies: 0 | Views: 1024
    Last post by oldnickb, 05-26-2015, 03:01 AM

Older Threads

  1. orangesweety
    orangesweety
    Replies: 7 | Views: 1493
    Last post by orangesweety, 06-05-2015, 11:26 AM
  2. Hugo E.
    sunimaster
    Replies: 3 | Views: 1055
    Last post by sunimaster, 05-25-2015, 01:02 PM
  3. Tshepo
    Nytshade
    Replies: 1 | Views: 1920
    Last post by Nytshade, 05-25-2015, 09:45 AM
  4. melanymaldena
    SEOPub
    Replies: 2 | Views: 1076
    Last post by SEOPub, 05-25-2015, 02:50 AM
  5. OnaDavney
    elcidofaguy
    Replies: 9 | Views: 1833
    Last post by elcidofaguy, 05-29-2015, 03:11 AM

Latest Threads

  1. itarachiu
    itarachiu
    Replies: 2 | Views: 54
    Last post by itarachiu, Yesterday, 06:43 AM
  2. romanalexeevich198
    Where can I sell vector icons?
    By romanalexeevich198 in forum Graphic Design
    romanalexeevich198
    Replies: 0 | Views: 50
    Last post by romanalexeevich198, 01-19-2019, 02:46 PM
  3. denverdonate
    404 errors and a site's performance
    By denverdonate in forum Google
    denverdonate
    Replies: 0 | Views: 39
    Last post by denverdonate, 01-19-2019, 12:42 PM
  4. denverdonate
    denverdonate
    Replies: 0 | Views: 57
    Last post by denverdonate, 01-19-2019, 09:17 AM
  5. Fixfast
    johnmart
    Replies: 2 | Views: 63
    Last post by johnmart, Today, 12:56 PM

Similar Threads

  1. Dopani
    Dopani
    Replies: 0 | Views: 1490
    Last post by Dopani, 09-23-2014, 03:25 AM
  2. richard84
    arronmattwills
    Replies: 1 | Views: 1744
    Last post by arronmattwills, 01-10-2014, 05:07 AM
  3. ppcads
    Inquestor
    Replies: 2 | Views: 2565
    Last post by Inquestor, 03-28-2013, 06:21 PM
  4. KellyLC
    KellyLC
    Replies: 0 | Views: 1141
    Last post by KellyLC, 02-20-2013, 07:49 AM
  5. Aman Gulati
    Alex_smith
    Replies: 6 | Views: 3356
    Last post by Alex_smith, 02-07-2013, 02:56 AM

Posting Permissions

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

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2019, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!