Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => Linux Servers Support => Topic started by: Noob on December 10, 2007, 09:49:09 AM
-
Hi,
We have a webserver work for company, sometimes it get slow in response then I am supposed to restart various services on it like mysqld and httpd, since we can restart services and server starts working normal then why we need server reboot?
Or can server reboot be really helpful ?
-
Well, as per my view, reboot sometimes help. Many times there few process which are not aware but are there like process which left behind when you break a SSH session.
Like zombie process etc. Linux follows a parent-child pattern and somehow parent forget to wind up child process then it stay there forever. So for me, sometimes reboot is OK.
-
In my opinion, server downtime is not tolerable. So, rebooting is not an answer especially in Enterprise level infrastructure. So, what i will do in this case is do a root-cause-analysis. Why is it slow ?
Things to look at.
1. Verify server hardware working fine.
2. Run your system "uptime" command to identify your system load against your number CPU.
3. Run the "sar" utility and capture where is it having the bottle neck:
--> CPU
--> Disk I/O
--> Memory
--> Run queue length
4. Lastly, when it is not your server and OS problem. Time to ask the DBA to review your SQL and application coding. Poor coding can result in un-optimized system performance.
5. Lastly running an app server and db server at the same server is not recommened if cost is a concern.
-
Dragoncity,
You are true too, liked your approach :)