JFreeChart initial loading

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cristo_haris
Posts: 7
Joined: Thu Jul 20, 2006 10:37 am

JFreeChart initial loading

Post by cristo_haris » Thu Jul 20, 2006 10:40 am

In my application the JFreeChart initial loading is too slow ...How to solve this problem?If anybody knows the solution please respond

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jul 21, 2006 3:26 pm

How long does it take? When you say "loading", do you mean class loading? Or drawing an initial chart (say, one with a lot of data)? Or something else?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

cristo_haris
Posts: 7
Joined: Thu Jul 20, 2006 10:37 am

Post by cristo_haris » Mon Jul 31, 2006 9:57 am

Yeah..
It is the delay for loading the library files....
It'll take upto 5seconds....
But once it is initialized the loading time is reduced to 1second....
Is there any better solution to reduce this initial loading time.

cringe
Posts: 54
Joined: Wed May 10, 2006 10:39 am
Location: Germany
Contact:

Post by cringe » Mon Jul 31, 2006 10:22 am

You could try to set the initial heap sizes:

Code: Select all

-Xmx256m -Xms256m
This will set the initial heap size to 256MB and the maximum heap size to 256MB as well. This increases the speed a little, because the JVM isn't allocating and freeing much memory then. Not the best solution, but it's a way.

Locked