Portal Home > Knowledgebase > Articles Database > anyway to auto reboot server every 6 hours?


anyway to auto reboot server every 6 hours?




Posted by hossamhamdi1986, 05-11-2009, 11:04 AM
anyway to auto reboot server every 6 hours? will this effect on the server? i'm running on CentOS 5 and whm

Posted by Harzem, 05-11-2009, 11:14 AM
Yes there is a way, but what you are asking is probably a bad idea. Why do you need reboots? Linux is not like windows, it doesn't require reboot unless you make a manuel kernel upgrade. Even if things go ugly, you can fix them in other ways.

Posted by hossamhamdi1986, 05-11-2009, 11:35 AM
Yea i know but i got upload site so the server start lagging after some hours then i can't open cpanel whm ftp anything sometimes mysql lags too it doesn't restart the services cause it lags but sometimes it restart the services automatic and then everything work fine but when the server lags i must request reboot from the hosting company

Posted by Harzem, 05-11-2009, 11:40 AM
What you are desicribing should be solved otherwise, if everything is lagging, that's probably due to some disk input/output queue, possibly due to swap, and needs a ram increase. What is your server configuration? How much ram are you using?

Posted by hossamhamdi1986, 05-11-2009, 11:43 AM
2 giga ram

Posted by Harzem, 05-11-2009, 11:44 AM
Is this what you have, or what you are using?

Posted by eth00, 05-11-2009, 11:45 AM
A quick and simple way to get a general idea of what is happening is open an ssh session and just leave top running. If the server crashes you can see what is happening and at least start the troubleshooting process. It might be something very easy and obvious.

Posted by hossamhamdi1986, 05-11-2009, 11:46 AM
that what i have i'm using mostly 25% in load times it's going up to 35% 40%

Posted by hossamhamdi1986, 05-11-2009, 11:47 AM
what do u mean? please explain a lil

Posted by eth00, 05-11-2009, 11:51 AM
open an ssh window as root (or really and user) and simply run top Then when it crashes you can look at what is left on the screen. When you say 35-40% is that of memory, buffers/cache, or swap? It makes a big difference

Posted by hossamhamdi1986, 05-11-2009, 11:57 AM
the memory shown at whm server stats i think i dont know this buffers/cache or swap

Posted by Harzem, 05-11-2009, 12:00 PM
Open SSH and type this: free -m It will give you three or four lines of result, paste them here when your server is lagging.

Posted by hossamhamdi1986, 05-11-2009, 12:07 PM
ok guys i'll try to get this info when it lags i'll be back



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Varnish - X-Cache:MISS (Views: 470)
Is it clould? (Views: 606)
Help preload script (Views: 516)
Resellers Panel (Views: 508)