This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
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: 8836
    
    7

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://aspose.com/file-tools
 
subject: Applet with Jre1.5 will be slow after 4 hours
 
Similar Threads
Video Course Craig Larman
Applet and Garbage collection
Hash tables and transposition tables
Using indexOf() in an if statement
Obfuscator ranking?