Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


sending a small amount of data to keep webserver connection alive.

Posted on 2004-11-01
Medium Priority
Last Modified: 2010-04-01

In the current system that i am using there is a jsp page that processes more than 10,000 items in a while loop from a result set.

I need to send some 'dummy data' to an html page in a hidden field

so that the apache server does not time out within its speficied time.


or is there a way to increase the Apache webserver default time out.




Question by:imrama
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

ID: 12462960
try this, in ur jsp every 100 item run this:




Author Comment

ID: 12462995
the apache bridge is every 4 mins, i.e. the  timeout is set to that,  is it possible
to create a thread that will sleep for 4 minutes or something and every 4 minutes it awakes to send something to the server?

Author Comment

ID: 12462997
in order to keep the bridge open
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 13

Expert Comment

ID: 12463065
suppose that every item u proccess u diplay a row in the page, if u every while sent to the user the finished rows to be displayed it will not disconnect
LVL 53

Expert Comment

by:Ryan Chong
ID: 12465278
Maybe you can try create a separte page and simply add a meta tag to refresh the page on a certain interval?

<meta http-equiv="refresh" content="60">

60 = 60 seconds

Will this works for your condition?

Accepted Solution

pronane earned 200 total points
ID: 12471016
what you need to do is, it appears that your jsp is waiting for something to happen in between is that
correct?  if so break up your code into blocks and after each block just send a blank
post request or get request to the server and that should keep the connection open with the
apache server.

hope this helps

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes Administrators rights are not enough. These cases call for the SYSTEM account. The process in this article outlines the steps required to execute commands using the SYSTEM account.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question