How can I maintain the OS?

General support questions
Post Reply
Posts: 6
Joined: 2017/11/10 23:48:29

How can I maintain the OS?

Post by nharmando » 2019/12/19 22:55:49

Hi everybody!!

Sometimes my server becomes to slowly and for fractions of a second it gives me 500 error.
How can I maintain the OS? What can I do to optimize resources?

I got Centos 6.10

Thanks in advance for everything

Posts: 2999
Joined: 2014/09/20 11:22:14

Re: How can I maintain the OS?

Post by aks » 2019/12/21 07:19:10

Not much information here.

500 error - from what? If we assume HTTP, then start with that.

It kind of sounds like there some CPU bound task - your job is to find that task. As it only lasts a few seconds, aggregation stats like those from sar won't help. Try to find a way to predict when the problem happens, so something like every x minutes or when I do this thing. When you know when it'll happen, then you can use something like mpstat to see what's using the CPU.

Of course, it could be I/O too. Same procedure, just use a different tool.

User avatar
Forum Moderator
Posts: 28875
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How can I maintain the OS?

Post by TrevorH » 2019/12/21 14:38:41

If you're using httpd then I suspect that you may also be using mysql server? It is very easy to "tune" mysql so that it uses masses of memory that you don't necessarily have which then forces use of swap and everything will slow right down to the point where you may not even be able to login in a timely manner.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”