This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes howto limit what gets logged in mod_jk.log file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "howto limit what gets logged in mod_jk.log file" Watch "howto limit what gets logged in mod_jk.log file" New topic
Author

howto limit what gets logged in mod_jk.log file

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

our mod_jk.log file is 30MB and growing. As far as I can tell, there are 3 types of messages:
[jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems
[jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems
Which I understand. Someone clicked 'stop' on the browser.

[jk_ajp_common.c (1011)]: Error sending request body
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0
This one I don't understand, but it's fairly un-common.
But the huge majority of message are the following set of 4 lines:
[jk_ajp_common.c (738)]:
ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1
[jk_ajp_common.c (1137)]:
Error reading reply from tomcat. Tomcat is down or network problems.
[jk_ajp_common.c (1290)]:
ERROR: Receiving from tomcat failed, recoverable operation. err=0
[jk_ajp_common.c (1309)]:
sending request to tomcat failed in send loop. err=0

I've read up a bit, and figured that maxClients in httpd.conf should match maxProcessors in server.xml. So I upped the maxProcessors to match my httpd.conf's 150.

Two things:
1) It seems to have no effect on these messages
2) There is no conceivable way that we have 150 simultaneous requests. We simply do not have the traffic.

What else might be causing these messages, and how do I turn them off?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: howto limit what gets logged in mod_jk.log file
 
Similar Threads
Tomcat IIS Isapi error
URL goes off and inaccesible
Apache/Tomcat strange behavior
Tomcat connector for IIS 5.1 error executing servlet example
Apache 2.x + Tomcat 4.x + Load Balancing