You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Joe Mihalich <jm...@questerra.com> on 2002/03/14 23:25:41 UTC

Batik Memory Usage

 
            Hello,
 
              We're using batik on our server to convert svg files which
contain a combination
            Of image tags and various graphics such as lines, shapes,
and text.
 
               We're experiencing unexpectedly high memory usage by the
batik rasterizer
            App when converting files.
 
               For instance, we have an svg file layed out to be
11"x17".  It contains 15 image
            Tags pointing to 24 bit PNG's with an alpha channel, along
with some svg rect
            And text fields.  When converting just this one file the
rasterizer appears to be
            Consuming close to 256MB of memory.
 
               Given a system with even 2GB of memory on it, it's hardly
geared to handle
            More then 4 or 5 requests at a time without blowing out with
an out of memory
            Exception.
 
               I've read a previous email when someone mentioned that
the transcoders
            In the rasterizer implementation are based on BufferedImage
objects.  I
            Can probably guess that this has everything to do with the
problem.
 
               Can anyone speak this issue, and any ways of making it
consume less
            Memory?
 
            Thanks,
            Joe
 
               

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: Batik Memory Usage

Posted by Tangent <ta...@usa.net>.
Joe,

We resolve similar issues by breaking the SVG into couple parts,
rendering each part and assembling the parts together.  This allows us
to use less memory for a lot of cases.  From what I heard, Batik is
using double buffering for images, so for high-res rendition, it really
consumes a lot memory.  More images you embed, more memory it will take,
so converting some bitmaps to vector images could help though I know it
may not be applicable for photos.

- Tangent

> -----Original Message-----
> From: Joe Mihalich [mailto:jmihalich@questerra.com] 
> Sent: Thursday, March 14, 2002 4:26 PM
> To: batik-users@xml.apache.org
> Subject: Batik Memory Usage
> 
> 
>  
>             Hello,
>  
>               We're using batik on our server to convert svg 
> files which contain a combination
>             Of image tags and various graphics such as lines, 
> shapes, and text.
>  
>                We're experiencing unexpectedly high memory 
> usage by the batik rasterizer
>             App when converting files.
>  
>                For instance, we have an svg file layed out to 
> be 11"x17".  It contains 15 image
>             Tags pointing to 24 bit PNG's with an alpha 
> channel, along with some svg rect
>             And text fields.  When converting just this one 
> file the rasterizer appears to be
>             Consuming close to 256MB of memory.
>  
>                Given a system with even 2GB of memory on it, 
> it's hardly geared to handle
>             More then 4 or 5 requests at a time without 
> blowing out with an out of memory
>             Exception.
>  
>                I've read a previous email when someone 
> mentioned that the transcoders
>             In the rasterizer implementation are based on 
> BufferedImage objects.  I
>             Can probably guess that this has everything to do 
> with the problem.
>  
>                Can anyone speak this issue, and any ways of 
> making it consume less
>             Memory?
>  
>             Thanks,
>             Joe
>  
>                
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org