This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Applet with Jre1.5 will be slow after 4 hours" Watch "Applet with Jre1.5 will be slow after 4 hours" New topic
Author

Applet with Jre1.5 will be slow after 4 hours

vinit kumar tyagi
Greenhorn

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
Bartender

Joined: Oct 29, 2001
Posts: 8263

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Applet with Jre1.5 will be slow after 4 hours
 
Similar Threads
Using indexOf() in an if statement
Obfuscator ranking?
Video Course Craig Larman
Hash tables and transposition tables
Applet and Garbage collection