Worker MPM configuration with High Load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
Â
Using apache2.2.17,mod_jk_1.2.30,tomcat5.5.27..for my setup.!
./apachectl -V
Server version: Apache/2.2.17 (Unix)
Server built: Apr 19 2011 08:35:28
Serverâs Module Magic Number: 20051115:25
Server loaded: APR 1.4.2, APR-Util 1.3.10
Compiled using: APR 1.4.2, APR-Util 1.3.10
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled withâ.
-D APACHE_MPM_DIR=âserver/mpm/workerâ
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=â/applications/balancerâ
-D SUEXEC_BIN=â/applications/balancer/bin/suexecâ
-D DEFAULT_SCOREBOARD=âlogs/apache_runtime_statusâ
-D DEFAULT_ERRORLOG=âlogs/error_logâ
-D AP_TYPES_CONFIG_FILE=âconf/mime.typesâ
-D SERVER_CONFIG_FILE=âconf/httpd.confâ

See with above setup i am checking load of 1500 concurret requests with SOAPUI with Âworker MPM.with Default setting i am getting âmax client error in error.logâ.So i have made following change.please look and validate things if am on track:

APACHE->
http.conf
â
â

ServerLimit 30
StartServers 20
MaxClients 1500
MinSpareThreads 40
MaxSpareThreads 100
ThreadsPerChild 50
MaxRequestsPerChild 0

ââ
ââ
worker.properities
âââââââ
worker.list=balancer

#For tomcat 1
worker.list=worker1
#worker.worker1.domain=worker1
worker.worker1.type=ajp13
worker.worker1.host=
worker.worker1.port=8009
worker.worker1.lbfactor=1
.
.
#For tomcat 4
worker.list=worker4
#worker.worker4.domain=worker4
worker2.worker4.type=ajp13
worker.worker4.host=
worker.worker4.port=8012
worker.worker4.lbfactor=1

worker.balancer.type=lb
worker.balancer.balance_workers=worker1,worker2,worker3,worker4
worker.balancer.local_worker_only=1
worker.balancer.sticky_session=1

4 TOMCAT->

ââ

server.xml(tomcats)
Connector port=â8009â
enableLookups=âfalseâ redirectPort=â8443â
minProcessors=â25â maxProcessors=â2000â
maxThreads=â500â minSpareThreads=â25â
maxSpareThreads=â75â protocol=âAJP/1.3â

i have few questions..:-)

1)i am hitting with 1500 concurrent user.is this configuration fine?

2)AJP conector port should unique or not?For tomcat running on same machine and if tomcats are on differenct machins?

3)I HAVE SET startserver 20(means 20 child processes with 50 thread per child) .butÂwhy am getting 2 with following command

âps aux | grep http | grep -v â\(root\|grep\)â | wc -lââ>2

4)Any other configuration need to do for worker MPM?

Thanks a lot in advance

regards
Harsimran


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux