Monday, 27 August 2012

Apache server is very slow ?


Apache server is very slow..


Hi,


I have a development server on rhel5.5 and running apache and database server is mysql(LAMP)with same configuration. When opening the page it's becomes very slow. I found that memory uses was high by httpd with lots of process. I have restarted the httpd and its working. Again after sometime situation becomes same. Also on database side there was no any lock process.

Its a ESX VM, previous memeory was 1024, increased it to 2048, but no luck.


What may be cause for this slowness??


Thanks-

shankar

Apache server is very slow..

Q: "Memory use was high". But were you actually paging, or did everything fit in available RAM (either 1024 or 2048)?



Q: Remember, in a VM, there is no such thing as "physical RAM". Furthermore, ESX server has something called "balloon memory". Perhaps ESX itself might be overloaded?


Coming back to your original question -


SUGGESTIONS:

1. Compare retrieval times for a blank page vs. the HTML that's taking a long time.

If the blank HTML is fast, see what's going on with your actual page.

Look at stuff like a) database queries, b) large images and c) large Javascript overhead

2. Look at performance tools like "top", "uptime", "iostat", etc etc to evaluate performance at the system level (independent of Apache) and see what you come up with.

Apache server is very slow..

kill the httpd and restart it

Apache server is very slow..


Also, did you check your apache error log and try too see if it pops up any warning during restarting apache ?
Yes, using "top" and "ps -ef | grep httpd", we can find that 10-25 httpd process running and each process taking 3 to 4 mb memory. After restarting httpd its running fine for few times. But after sometimes same problem arise.



Thanks-

Shankarv

Apache server is very slow..

What are the values of following variables in httpd.conf ?

MaxClients

MinSpareThreads

MaxSpareThreads

ThreadsPerChild

Apache server is very slow..

Hi,

Plz find the below values for httpd.conf


StartServers 2

MaxClients 150

MinSpareThreads 25

MaxSpareThreads 75

ThreadsPerChild 25

MaxRequestsPerChild 0



Thanks-

Shankar


Apache server is very slow..

You also don't mention what the disk structure of the underlying ESX server is. I have found that the most common reason for poor performance on a VM is when the host has a single (or small number drives in RAID) installed locally. Generally speaking with modern hardware it is very easy to over allocate the resources. This is especially true if you are running a number of different isolated database instances across the VMs.

Apache server is very slow..

Hi,

In our environment, disk is comming from storage(EMC) and no any raid configuration is there.

We have 4 ESX hosts. I have also moved from one host to another to check the performance but no luck.

Mysql database having only one instance. We have also increase the RAM to 2048 but swap is same(1024) as there is no space available.



Thanks-

Shankar






No comments:

Post a Comment