New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
VPS cpanel Server Overloaded problem!
Hello, i have a dedicated server with Intel Xeon E5-1620 v2 @ 3.70GHz 4core cpu and 16gb ram. i virtualized it and make 2 vps server. one is not used yet, another one is working.i install cpanel on vps. but i face major problem is, sometimes that vps server is overloaded. cpu going 10-20 on mark. But there are just some php based website.i checked the apache error_log and found that some php files have deprecated code.but don't understand why that make server overloaded. how i can get rid from it permanently?
that vps has 6gb ram and kvm based. on whole dedicated server, this is the only vps working now.
Comments
can show here the apache log
Someone might be sending bulk messages from your server. Keep a watch on the exim log as well. In case there is script sending spam delete it.
What kind of drives do you have in the server?
Change php handler.
Try installing this:
https://engintron.com/
See if it's an issue with Apache using too much resources.
Use openvz and overcomit your resource to your server specs, i was in similiar case, i use e3 1240 with 16gb of ram and i split it to 2 kvm first, both of the kvm mostly idle but when one of them have workload it will use high resource and make the other unusable, so i recreate with openvz and overcomit ram and cpu
Maybe see if your Apache/Php instance is leaking/thrashing CPU?
Got any logs for us to look at?
SoftRaid 2x2TB SATA
here is apache error_log file https://pastebin.com/9f4UhBDy
@hyypperionn
@georgedatacenter
My guess would be IO related.. MySQL maybe if you use it or some type of attack.
checked all email history. not so much emails in incoming and outgoing history. turned off all notification email on server too.
its happen very suddenly and until i killed all process and restart, its not down to normal.
@bdspice
Mind posting the output of
x aux --sort=-pcpu | head -n 10
?The x should be replaced by ps, because Cloudflare says so.
what is ps?
@bdspice
Stands for process, lists the system's processes.