interesting performance problem with Apache.

Discussion in 'Apache' started by jduguay, Oct 5, 2006.

  1. #1
    Hello everyone,

    I have this funny problem. I have an installation of Apache communicating with Tomcat using mod_jk. (versions below) When accessing Tomcat directly for stress testing, i'm getting over 100 hits/sec. When i hit the site going thru Apache, I get 2 different results :

    1. If i hit the site with 1 connection i get around 90 hits/sec (very good)
    2. If i hit the site with multiple (1+) connections i get around 5 hits/sec (poor)

    I've compiled Apache as a worker MPM.
    I've made sure HostNameLookups are off.
    The virtual hosts are by IP and not NameVirtualHosts
    I'm connected straight into the network card when i run stress tests

    Here is the section that defines my worker configuration.
    <IfModule worker.c>
    StartServers 2
    MaxClients 300
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 10000
    </IfModule>

    It seems like something is causing a bottleneck when i use more then 1 connection. When i compiled, i used the same script that we used on another production server. It doesn't have this issue.

    I hope someone can clarify what is going on.

    Apache 2.0.53
    Tomcat 5.5.7
    JK (mod_jk) 1.2.11

    Thanks
    Joey
     
    jduguay, Oct 5, 2006 IP