logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Website randomly slow
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Sat 16 Jun '12 11:30    Post subject: Website randomly slow Reply with quote

Hi

I have a Apache instance serving pages for static content and dynamic content - frontend for JBoss application server by mod_jk module. Site is very popular, so the average traffic is around 32Mbit/s. From time to time I observe traffic pick, up to 150Mbit/s - when traffic increase then site is very slow (also static content).

When site is slow :

1. I've checked /jkstatus and the busy workers is 20, max is 700.
2. I connect directly to JBoss ports - it works like a charm.
3. Processor usage for httpd.exe is less than 10 percent, so from the one hand is ok, but in the same time JBoss is using 2-3 percent. It's interesting in my opinion as JBoss is doing harder job than apache - calculate, quering database etc., when Apache is just forwarding requests to JBoss, waits for JBoss response and send it back to client.
4. During the traffic pick static content is also very slow.
5. I think it's not related with a performance limit of machine as it is 64gb ram , with 10, 8 cored xeon processors.
6. Yestarday i enabled debug log level for errors and Apache just crashed - was inresponsible.

How to find the bottleneck in Apache, as im dropped out from ideas and it driving me crazy ?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 16 Jun '12 19:51    Post subject: Reply with quote

You posted before dealing with performance:

http://www.apachelounge.com/viewtopic.php?t=4364

and

http://www.apachelounge.com/viewtopic.php?t=4333

What Apache version do you run ?

Always worth to try:

2.4:

AcceptFilter http none
EnableSendfile Off
EnableMMAP off


2.2:
Win32DisableAcceptEx
EnableSendfile Off
EnableMMAP off
Back to top


Reply to topic   Topic: Website randomly slow View previous topic :: View next topic
Post new topic   Forum Index -> Apache