Tips to Reduce Load on Server in Linux.

First we have to check load on server

How to check load on server using top command.

Using top command we can check the load on server.

[root@abc ~]# top

load average: 37.00. 40.04. 70.00

We can see 37.00 is last minute load. 40.04 is last 5 minutes load and 70.00 is the last 15 minutes load on server.

[root@abc ~] #netstat -antupl | grep http

Is there are number of HTTP connections then follow the further steps.

2. Use following command to kill HTTP connections.

[root@abc ~] #killall -9 httpd

3. Restart httpd service.

[root@abc ~] # /etc/init.d/httpd restart 

after restarting the service you show load average shows to be down.

[root@abc ~ ]# 2.55. 2.37. 1.92