Your idea of continually updating the data with DHTML looks interesting.
I like the basic idea. But most browsers aren't build to do this type of
processing. With an ideal browser implementation, your technique would be
OK.
But,....
I guess that the browser keeps interpreting the whole stream of data before
rendering the page.

I guess the easiest solution to your problem is to include a refresh header.
the browser keeps calling the same request with a specified amount of secs
interval. I guess you can just simply combine that with your current setup
and have the page refreshed before the cpu gets too high.

Geert Van Damme

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of nilesh Desai
> Sent: woensdag 6 december 2000 5:53
> To: [EMAIL PROTECTED]
> Subject: Using JSP to dynamically update data continuosly -- creates CPU
> usage 100% on NT
>
>
> Dear Sir/Madam,
> I am running HTML PAGE in one frame(frame1) and JSP in another
> frame(frame2), My jsp is running continuesly, and then keep calling
> javascript which is on HTML page ( frame1), which in turns keep updating
> data on frame1 via ID reference on frame1 which is inside <DIV> element.
>
> My problem is after some time CPU usage increses to 100%on client
> NT Machine
>   and also memeory keeps increasing, even after 100 data has been
> posted, I
> keep remvoing data from the frame1 but no change of cpu usage. How can I
> solve this problem ?
>
> I am using innerHTML property to keep updating new data on the top of
> exisitng data. even when I tried simple example of just adding
> counter+1 to
> html page via JSP, same problem of performance
> Looks to me since I am running JSP forever, I am running out of
> resource but
> I need to run that in while loop forever since I keep getting new data, so
> how do I solve this problem?Any help will be greatly appericiated
>
> Regards,
> __________________________________________________________________
> ___________________
> Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to