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: Very slow apache on heavy load
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Thu 03 Nov '11 9:42    Post subject: Very slow apache on heavy load Reply with quote

Hello

I'm having a serious issue with an Apache/mod_jk/Tomcat 6.0 bundled with JBoss application server, whereby Apache response is very slow due hevy load.

The pages served by JBoss works very fast when connecting directly to JBoss, but the same pages in the same time loads very slow through Apache. I've checked the mod_jk logs, error.log - both looks ok.

I thought it could be some mod_jk perfomance issue but in the same time static content (so pure http) on Apache has been loaded very slow as well.

I've also checked the number of threads for httpd.exe and the result was 688. Apache was very slow and the number of threads has not increased - is it normal (see the limits below) ? Also after restart (httpd -k restart) this value hasn't changed.

mpm configuration :

Code:

ThreadLimit 15000
ThreadsPerChild 1200
MaxRequestsPerChild 0


Both services works on the same machine - IBM with 8 x Xeon E7-4870 (80 cores in total), 64GB RAM, RAID 10.
Machine handle Apache 2.2.21 with mod_jk 1.2.25 , JBoss 6.0 and PostgreSQL 9.0.4 on Win2k8 x64 R2 Enterprise.

Any help in working out what is going on is greatly appreciated in advance!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 06 Nov '11 5:24    Post subject: Reply with quote

You should increase ThreadsPerChild to the same value as ThreadLimit. Since on windows apache has only one child process.

Did you active the server-status page and viewed the connections?

On Windows you should set EnableSendfile Off and EnableMMAP Off
Back to top


Reply to topic   Topic: Very slow apache on heavy load View previous topic :: View next topic
Post new topic   Forum Index -> Apache