krelmanamit
asked on
timeout
Hi,
I am having jsp pages that run a query from the db,
when I running a query that take 7 minutes the result is coming back and every think is ok,
But when I run a longer query ( I don't know how much longer) I am getting the follwing error :
those it the browser timeout ?
can I change it ?
what is the timeout value ?
any ohter idea ?
Thansk,
ERROR
The requested URL could not be retrieved
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
While trying to retrieve the URL: [no URL]
The following error was encountered:
· Read Timeout
The system returned:
[No Error]
A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
Your cache administrator is webmaster.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Generated Thu, 06 Jan 2005 18:57:28 GMT by gpb_proxy-1048080 (squid/2.5.STABLE5-NT)
I am having jsp pages that run a query from the db,
when I running a query that take 7 minutes the result is coming back and every think is ok,
But when I run a longer query ( I don't know how much longer) I am getting the follwing error :
those it the browser timeout ?
can I change it ?
what is the timeout value ?
any ohter idea ?
Thansk,
ERROR
The requested URL could not be retrieved
--------------------------
While trying to retrieve the URL: [no URL]
The following error was encountered:
· Read Timeout
The system returned:
[No Error]
A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
Your cache administrator is webmaster.
--------------------------
Generated Thu, 06 Jan 2005 18:57:28 GMT by gpb_proxy-1048080 (squid/2.5.STABLE5-NT)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ITs not browser time out.. its webserver/DNS Server time out
please check for that
please check for that
> DNS Server
?
?
I think somasekhar is suggesting it's squid (a proxy) that's timing out. At the end of the error message is:
Generated Thu, 06 Jan 2005 18:57:28 GMT by gpb_proxy-1048080 (squid/2.5.STABLE5-NT)
A little more information on the squid timeouts:
Request timeout: how long to wait for the start of a response after establishing a connection
http://squid.visolve.com/squid/squid24s1/timeouts.htm#request_timeout
Read timeout: how long to wait for more data, after receiving only first part of a response
http://squid.visolve.com/squid/squid24s1/timeouts.htm#read_timeout
(release notes here: http://mirror.aarnet.edu.au/pub/squid/squid-2/STABLE/squid-2.5.STABLE5-RELEASENOTES.html)
various timeouts adjusted: connect_timeout 1 minute (was 2 minutes which is now forward_timeout), negative_dns_ttl 1 minute (was 5 minutes) and is now also used as minimum positive dns ttl, dns_timeout 2 minutes (was 5 minutes)
If you can't change the configuration of the proxy, you'll have to somehow rewrite your query to execute in stages, outputting some sort of progress message or white-space or something inbetween each stage (followed by out.flush() to keep the connection alive)
Generated Thu, 06 Jan 2005 18:57:28 GMT by gpb_proxy-1048080 (squid/2.5.STABLE5-NT)
A little more information on the squid timeouts:
Request timeout: how long to wait for the start of a response after establishing a connection
http://squid.visolve.com/squid/squid24s1/timeouts.htm#request_timeout
Read timeout: how long to wait for more data, after receiving only first part of a response
http://squid.visolve.com/squid/squid24s1/timeouts.htm#read_timeout
(release notes here: http://mirror.aarnet.edu.au/pub/squid/squid-2/STABLE/squid-2.5.STABLE5-RELEASENOTES.html)
various timeouts adjusted: connect_timeout 1 minute (was 2 minutes which is now forward_timeout), negative_dns_ttl 1 minute (was 5 minutes) and is now also used as minimum positive dns ttl, dns_timeout 2 minutes (was 5 minutes)
If you can't change the configuration of the proxy, you'll have to somehow rewrite your query to execute in stages, outputting some sort of progress message or white-space or something inbetween each stage (followed by out.flush() to keep the connection alive)
yeah i mean to say proxy. thanks
try putting;
<%
out.flush() ;
%>
before you start the processing...