File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes READ_TIMEOUT error in Apache 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "READ_TIMEOUT error in Apache 2.0" Watch "READ_TIMEOUT error in Apache 2.0" New topic

READ_TIMEOUT error in Apache 2.0

Amber Vaidya
Ranch Hand

Joined: Oct 14, 2003
Posts: 42
Hi All,

I am using Apache 2.0 with Weblogic 7.0.

We have a report generation feature in our application which processes millions of records.
The SQL query that retrieves these records typically takes 8-10 min to return the result :roll:

Now, the problem is when my servlet calls the data access object to execute the query, I see a thread being started for this process(in the weblogic logs), but after about 4-5 min I get the following error in Apache logs

READ_TIMEOUT [os error=0, line 202 of ../nsapi/Reader.cpp]: no read after 300 seconds

and a new thread is started which starts the execution from the beginning (As if a new request has been made).
And it goes into an endless loop.

I tried increasing the Timeout and the ConnectTimeoutSecs parameters in the httpd.conf file, but it did not solve the problem.

Ideas, anyone ??
Any help in this regard will be appreciated.

Thanks in advance.
Amber Vaidya
Ranch Hand

Joined: Oct 14, 2003
Posts: 42
Found the solution ...

I needed to put the HungServerRecoverSecs entry in the IfModule tag of httpd.conf file

It works now
I agree. Here's the link:
subject: READ_TIMEOUT error in Apache 2.0
It's not a secret anymore!