xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qian Li" <qian....@googlemail.com>
Subject OutOfMemoryError Problem in Batik
Date Fri, 23 Nov 2007 12:24:42 GMT
Dear all,
I sometime hit the OutOfMemoryError exception, it's only happen once
in about ten runs, doesn't happen in very run I do.

I have already set the argument to -Xms128m -Xmx328m .
And I also use a script to check the memory usage. Below is the
printout of the memory usage when it crashes, it just happened during
the big increase in memory. In some runs the memory can go a lot
higher than this without crashing at all. Does anyone know what may
causing this problem?

Thank you very much.
Qian

Memory Print out:
Printed using: ps aux | grep $1 | grep -v grep | awk '{print $5}'
###############################################

framework.Main 487896 Fri Nov 23 11:21:17 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:19 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:21 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:23 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:25 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:27 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:29 GMT 2007
framework.Main 493484 Fri Nov 23 11:21:31 GMT 2007
framework.Main 507256 Fri Nov 23 11:21:33 GMT 2007
framework.Main 507256 Fri Nov 23 11:21:35 GMT 2007
framework.Main 499764 Fri Nov 23 11:21:37 GMT 2007
framework.Main 499764 Fri Nov 23 11:21:39 GMT 2007
framework.Main 499764 Fri Nov 23 11:21:41 GMT 2007

##################################################
Here is the Exception::
java.lang.OutOfMemoryError: Java heap space
       at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
       at java.awt.image.SinglePixelPackedSampleModel.createDataBuffer(SinglePixelPackedSampleModel.java:220)
       at java.awt.image.Raster.createWritableRaster(Raster.java:938)
       at org.apache.batik.gvt.renderer.DynamicRenderer.updateWorkingBuffers(Unknown
Source)
       at org.apache.batik.gvt.renderer.DynamicRenderer.repaint(Unknown Source)
       at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
       at org.apache.batik.swing.gvt.GVTTreeRenderer.run(Unknown Source)

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


Mime
View raw message