david.gilbert wrote:Make sure you have tooltips and URLs disabled, those will use a lot of memory at drawing time. If you are displaying the chart in a ChartPanel, you may also need to disable the collection of chart entities:
Code: Select all
chartPanel.getChartRenderingInfo().setEntityCollection(null);
Hi
Well, I have the same problem:
I have a SMALL data set (500 items) and only 1 chart that I repaint every 40 seconds.
After letting it run for an hour or so, the heap starts to raise (limit was irrelevant, since it throw the exception even with 1024MB Heap Limit) from the normal of my app (50MB) until OutOfMemory exception.
When I ran profiler I saw it ALWAYS happen in the org.jfree.chart.ChartPanel.paintComponent method, and it seems that DateTick is being created hundreds of thousands of times.
After that the GC cleans most of the heap, and the problem NEVER returns in this run.
After restarting my application, it is all over again.
BTW, version 1.0.6 improved something since with 1.0.2 it was 7 minutes after launching the application, and now it is after 30-60 minutes.
I saw many had the same problems but I didn't find any real cure.
It seems the while loop in DateAxis (line 1517) does the problems.
Any ideas?
Thanks
Ami