• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Applet with Jre1.5 will be slow after 4 hours

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic