tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smith, Michael" <Michael.Sm...@maine.gov>
Subject JK connector causes Tomcat to utilize 50% CPU
Date Thu, 03 Jan 2008 17:35:03 GMT
Greetings,

I am trying to set up an Apache 2.2.4 server with Tomcat 5.5.25 and JK
connector 1.2.26 on a Windows XP PC.  This is a test configuration for a
map server running both ESRI's ArcIMS and the open-source MapServer
(MS4W distribution, which is a prepackaged Apache 2.2.4, PHP 5, and some
other map-serving-specific open-source software).

Everything seems to work right, but the first time I access any
application via Tomcat, the CPU goes to 50% and stays there (tomcat5.exe
is the process).  I have a dual-cpu (dual cores, so 4 cores total) Dell
box running Windows XP Professional SP2.

I followed the install steps for JK connector and am using the minimal
(default) parameters in my mod_jk.conf file, and the simple application
I'm loading is the 'Hello World' example (under servlets-examples
distributed with Tomcat).

1) copy the mod_jk.so file into apache/modules folder

2) create a mod_jk.conf file in tomcat/conf folder:

JkWorkersFile "C:\ms4w\Apache\conf\workers.properties" 
JkLogFile "C:\Tomcat5525\logs\mod_jk.log" 

JkLogLevel all 

<VirtualHost * > 
ServerName dep-eia1pcgis1

JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13 

</VirtualHost>

3) create a workers.properties file in apache/conf folder (initially I
tried this with these parameters, but then for testing them commented
them all out, no difference):

#-------LOAD BALANCER
#worker.loadbalancer.type=lb 
#worker.loadbalancer.balance_workers=ajp13 

#You should configure your environment slash...ps=\on NT and / on UNIX 
#and may be different elsewhere. 
# 
ps=\ 



#-------DEFAULT worker list------ 
#The worker that your plugins should create and work with 
# 
#worker.list=ajp13 


#----DEFAULT ajp13 WORKER DEFINITION----- 
# 
#Defining a worker named ajp13 and of type ajp13 
#Note that the name and the type do not have to match. 
# 
#worker.ajp13.port=8009
#worker.ajp13.host=dep-eia1pcgis1
#worker.ajp13.connection_pool_size=10
#worker.ajp13.connection_pool_timeout=600
#worker.ajp13.socket_keepalive=False

# 
#*****End worker.properties*****

4) configure httpd.conf to use JK:

LoadModule jk_module modules/mod_jk.so    (in the LoadModule section)

Include "c:/tomcat5525/conf/mod_jk.conf"  (down at the bottom)

5) restart Apache and Tomcat.  At first the CPU is at 0%, after the
first loading of "Hello World" it goes to 50% and stays there.


***********
Michael Smith
Maine DEP/OIT 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message