It looks like a Database connection issue.
Sometimes, simple network or credentials could make the query take too long.
You might want to try creating a stand alone Java Class & run it as a command line application & time it. eg "time java com.yourclassname"
If the problem is because of the Database Load, do consider what Murali said above.
My personal Favorite is using a socket caching machanism, like MemCached
Main Topics
Browse All Topics





by: MuraliKanthPosted on 2009-09-03 at 18:49:21ID: 25256415
to increase the time out in Apache look for httpd.conf file and locate
Timeout 300 (or default and change value in seconds.)
Best option to overcome this in java side is to use paging.
Fetch at the most first 500 records and when the user clicks next on the last page fetch the next 500 records that way it would be more interactive to the user rather waiting for a longer time.
-Murali*