Avi,

Take a look at this article http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_jk

Regards,
Khalil

----- Original Message ----- From: "Avi Flax" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Friday, April 20, 2007 3:23 PM
Subject: Tomcat + jk + Apache httpd on Windows 2003 Very Slow


Hi, I'd appreciate some tips here! This is my first Tomcat install,
and I'm new to Java in general.

My setup:

Windows Server 2003, Web Edition, Service Pack 2
32-bit X86 CPU, 2 GB RAM
Apache httpd 2.0.59
mod_jk 1.2.22 for Win32
Apache Tomcat/5.5.23
Sun JVM 1.5.0_09-b01

My problem is that requests which run through mod_jk to httpd respond
very slowly: about 10 seconds to load the Tomcat Status page. If I
access the page directly from Tomcat at port 8080, it's less than a
second.

I've tried lots of different settings, like switching between
JkAutoAlias and JkMount, different JkLogLevels, and other things. I
feel that I must be missing something.

I tried looking at the various log files, and the only thing that
caught my eye was in localhost.log:

Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 20, 2007 3:55:15 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Apr 20, 2007 3:55:20 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 20, 2007 3:55:21 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

It looks to me that the web app might be initializing for each request.

If anyone has any ideas, or troubleshooting tips, it'd be greatly appreciated.

Thanks!

--
Avi Flax
Web Services Architect
arc90 | http://arc90.com

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



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

Reply via email to