November 25, 2024, 11:44:27 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: What are the benefit or how much helpful is server reboot ?  (Read 4818 times)

Offline Noob

  • Linux Noob !
  • *
  • Posts: 10
What are the benefit or how much helpful is server reboot ?
« 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 ?

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: What are the benefit or how much helpful is server reboot ?
« Reply #1 on: December 11, 2007, 12:13:02 PM »
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.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: What are the benefit or how much helpful is server reboot ?
« Reply #2 on: December 15, 2007, 01:52:14 AM »
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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: What are the benefit or how much helpful is server reboot ?
« Reply #3 on: December 15, 2007, 02:01:00 AM »
Dragoncity,
You are true too, liked your approach :)