Hi Kurram,

Khurram Zaman <[email protected]> wrote on 10/12/2009 02:45:38 AM:

> We are using BATIK for rendering SVG in java applets. Our SVGs are 
> of pretty big size (in MB's). This SVG gets animated as well. We 
> need to unload and load different SVGs. 

> What are the possible techniques to solve this?

    Yes, possibly, some aspects of SVG are more memory intensive
than others.  What sort of SVG files are you working with (what
features are you using).

> Can any flags help? 

    Well, I think you can raise the default partition for Java
Applets.  You might look at that.

> Can I optimize the BATIK memory usage through its code? 

    Only if you want to rewrite large parts of the code base...

> Also is BATIK not feasible for big SVGs? 

    The default partition for Java is something like 32-64MB of
memory - this is barely enough memory to decode your typical 10MP
JPEG.  The packing factor for SVG is typically much higher.  So
I would suggest looking for ways to increase the default memory
partition of the Java Virtual Machine.

Reply via email to