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


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.

 

 

 

imramaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

petmagdyCommented:
try this, in ur jsp every 100 item run this:

<%

out.flush();

%>
0
imramaAuthor Commented:
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?
0
imramaAuthor Commented:
in order to keep the bridge open
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

petmagdyCommented:
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
0
Ryan ChongCommented:
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?
0
pronaneCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.