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

connectionTimeout in Tomcat5.5.23

K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
I want to run the application continuously 10 hours without users interaction(idle state).

But I got the issue after 30 minutes in idle state.

Is it possible to set maximum connectionTimeout value is 10 hrs or any other way is there to run the application continuously 10 hours.

Please help me to solve this issue.

Suresh Kumar.K
ravi kanth
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
hi Suresh ,
i think ,we can set connectionTimeout to our desired value in server.xml in tomcat config directory.

please correctme if i am wrong..

K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
Hi ravi kanth,
Thanks for your reply...
Yes possible to change connection time out value in server.xml file.
But this is integer variable it takes 1000 as 1 second. But i want to set 8hrs. So it is not possible .
Please tell me if you have any other idea.......

Suresh Kumar.K
K.B. Stone

Joined: Sep 11, 2008
Posts: 8
Hi Suresh!

May I know how the connection created ? Get from connection pool or just simply make a new connection from data source.
I agree. Here's the link:
subject: connectionTimeout in Tomcat5.5.23
It's not a secret anymore!