How to find out reasons why my VPS is overloaded?

steitieh

Well-known member
Joined
Apr 23, 2014
Messages
113
Points
18
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
 

MightWeb

Well-known member
Registered
Joined
Mar 9, 2015
Messages
126
Points
0
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.
 

steitieh

Well-known member
Joined
Apr 23, 2014
Messages
113
Points
18
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?

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?
 

ElixantTechnology

Well-known member
Registered
Joined
Nov 26, 2014
Messages
281
Points
43
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.
 

MightWeb

Well-known member
Registered
Joined
Mar 9, 2015
Messages
126
Points
0
steitieh said:
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.


steitieh said:
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.
 
Latest Threads
Replies
1
Views
27
Replies
0
Views
192
Replies
1
Views
40
Replies
2
Views
83

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top