Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet with Jre1.5 will be slow after 4 hours

 
vinit kumar tyagi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic