Apache alway hang

Discussion in 'Apache' started by iks, Feb 15, 2009.

  1. #1
    My environment have two servers(RHEL5), one is DB server, and the other is web server.
    DB server is running Oracle 9i
    Web server is running Apache + Tomcat + mod_jk + Openssl
    The problem is happen on my web server, the number of httpd process will suddenly increace very fast, then the apache will hang, i need to restart my apache service to resume it, below is my apache conf and log message, please help to see what happen on my web server, thank you!!

    httpd.conf:
    LoadModule jk_module modules/mod_jk.so
    JkWorkersFile "/opt/apache-tomcat/conf/workers.properties"
    JkLogFile "/opt/apache-tomcat/logs/mod_jk.log"
    JkLogLevel debug

    <VirtualHost *:80>
    ServerAdmin admin@localhost
    DocumentRoot /opt/
    ServerName 127.0.0.1
    DirectoryIndex index.html index.htm index.asp index.jsp
    ErrorLog logs/test-error_log.txt
    CustomLog logs/test-access_log.txt common

    JkMount /servlet/* ajp13
    JkMount /* ajp13
    JkMount /*.jsp ajp13
    JkMount /*.jspx ajp13
    JkMount /*.do ajp13
    JkMount /*.action ajp13
    </VirtualHost>

    <IfModule mod_ssl.c>
    Include conf/ssl.conf
    </IfModule>


    workers.properties
    workers.tomcat_home=/opt/apache-tomcat

    workers.java_home=/usr/share/jdk1.5.0_16

    ps=/

    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13
    worker.ajp13.lbfactor=1
    shm.file=/usr/local/apache2/logs/jk.shm

    worker.ajp13.reply_timeout=600000

    mod_jk.log
    [Mon Feb 16 03:10:50.284 2009] [6800:1120464] [debug] jk_child_init::mod_jk.c (2740): Initialized mod_jk/1.2.26
    [Mon Feb 16 03:10:57.285 2009] [6802:1120464] [debug] do_shm_open::jk_shm.c (457): Attached shared memory [74] size=28672 free=28672 addr=0x112000
    [Mon Feb 16 03:10:57.285 2009] [6802:1120464] [debug] do_shm_open::jk_shm.c (471): Reseting the shared memory for child 74
    [Mon Feb 16 03:10:57.285 2009] [6802:1120464] [debug] do_shm_open_lock::jk_shm.c (262): Duplicated shared memory lock /usr/local/apache2/logs/jk-runtime-stat
    us.26648.lock
    [Mon Feb 16 03:10:57.285 2009] [6802:1120464] [debug] jk_child_init::mod_jk.c (2730): Attached shm:/usr/local/apache2/logs/jk-runtime-status.26648 (28672 byt
    es)
    [Mon Feb 16 03:10:57.285 2009] [6802:1120464] [debug] jk_child_init::mod_jk.c (2740): Initialized mod_jk/1.2.26
    [Mon Feb 16 03:10:58.286 2009] [6803:1120464] [debug] do_shm_open::jk_shm.c (457): Attached shared memory [75] size=28672 free=28672 addr=0x112000
    [Mon Feb 16 03:10:58.286 2009] [6803:1120464] [debug] do_shm_open::jk_shm.c (471): Reseting the shared memory for child 75
    [Mon Feb 16 03:10:58.286 2009] [6803:1120464] [debug] do_shm_open_lock::jk_shm.c (262): Duplicated shared memory lock /usr/local/apache2/logs/jk-runtime-stat
    us.26648.lock
    [Mon Feb 16 03:10:58.286 2009] [6803:1120464] [debug] jk_child_init::mod_jk.c (2730): Attached shm:/usr/local/apache2/logs/jk-runtime-status.26648 (28672 byt
    es)
    [Mon Feb 16 03:10:58.286 2009] [6803:1120464] [debug] jk_child_init::mod_jk.c (2740): Initialized mod_jk/1.2.26
    [Mon Feb 16 03:10:58.287 2009] [6804:1120464] [debug] do_shm_open::jk_shm.c (457): Attached shared memory [76] size=28672 free=28672 addr=0x112000
    [Mon Feb 16 03:10:58.287 2009] [6804:1120464] [debug] do_shm_open::jk_shm.c (471): Reseting the shared memory for child 76
    [Mon Feb 16 03:10:58.287 2009] [6804:1120464] [debug] do_shm_open_lock::jk_shm.c (262): Duplicated shared memory lock /usr/local/apache2/logs/jk-runtime-stat
    us.26648.lock
    [Mon Feb 16 03:10:58.287 2009] [6804:1120464] [debug] jk_child_init::mod_jk.c (2730): Attached shm:/usr/local/apache2/logs/jk-runtime-status.26648 (28672 byt
    es)
    [Mon Feb 16 03:10:58.287 2009] [6804:1120464] [debug] jk_child_init::mod_jk.c (2740): Initialized mod_jk/1.2.26
    [Mon Feb 16 03:12:07.312 2009] [6838:1337552] [debug] jk_set_time_fmt::jk_util.c (430): Pre-processed log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
    [Mon Feb 16 03:12:07.312 2009] [6838:1337552] [debug] uri_worker_map_open::jk_uri_worker_map.c (427): rule map size is 0
    [Mon Feb 16 03:12:07.312 2009] [6838:1337552] [debug] jk_set_time_fmt::jk_util.c (430): Pre-processed log time stamp format is '[%a %b %d %H:%M:%S.000 %Y] '
    [Mon Feb 16 03:12:07.312 2009] [6838:1337552] [debug] uri_worker_map_open::jk_uri_worker_map.c (427): rule map size is 6
    [Mon Feb 16 03:12:07.312 2009] [6838:1337552] [debug] uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule '/servlet/*=ajp13' source 'JkMount' was ad
    ded
     
    iks, Feb 15, 2009 IP