This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet with Jre1.5 will be slow after 4 hours Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet with Jre1.5 will be slow after 4 hours" Watch "Applet with Jre1.5 will be slow after 4 hours" New topic

Applet with Jre1.5 will be slow after 4 hours

vinit kumar tyagi

Joined: Feb 21, 2006
Posts: 3
I am using jr1.5
My applet shows a data as line chart using jfreechart after 4-5 hours my applet is got slow and memory is leeking somwhere
How can i solve this Problem
Kindly reply me soon
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

Debugging memory leaks is tedious in the best cirumstances but Java API for working with images gives you little to work with in the way of controlling memory management. Having a 3rd party library just makes things worse. I'd do the following:
1. Rule out JFreeChart. Change the code to read a static image or a series of static images. If memory use grows, the culprit is your code.
2. Consult JFreeChart's support resources. They should have a forum or a mailing list that will document bugs and workarounds.
3. Read up on how to use JConsole to observe your application's execution and memory usage. You may be able to detect the cause of your problem.
If you can write an applet which exhibits the behavior you are seeing in less than 100 lines of code, post it and we can take a look.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Applet with Jre1.5 will be slow after 4 hours
It's not a secret anymore!