xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richter, Tania" <Tania.Rich...@wincor-nixdorf.com>
Subject FW: Problem with memory leaks using SVGCanvas
Date Tue, 30 Aug 2005 08:17:54 GMT
Hi,
in my Java application running under Windows I have one function that
uses the JSVGCanvas to display  SVG graphics. When the function finishes
a lot of batik objects  (about 2000)  remain in the heap and are not
cleaned by the garbage collector , a.o. alot of object out of the
packages org.apache.batik.bridge, org.apache.batik.css.engine and the
following objects (OptimizeIt printout):
 
org.apache.batik.dom.AbstractDocument$IdSoftRef
2

org.apache.batik.dom.AbstractElement$Entry
53

org.apache.batik.dom.AbstractNode$1
1

org.apache.batik.dom.AbstractParentNode$ChildNodes
64

org.apache.batik.dom.GenericAttr
41

org.apache.batik.dom.GenericAttrNS
12

org.apache.batik.dom.GenericComment
1

org.apache.batik.dom.GenericText
81

org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap
22

org.apache.batik.dom.svg.AttributeInitializer
3

org.apache.batik.dom.svg.SAXSVGDocumentFactory
1

org.apache.batik.dom.svg.SVGDOMImplementation
1

org.apache.batik.dom.svg.SVGOMCSSImportedElementRoot
2

org.apache.batik.dom.svg.SVGOMCircleElement
1

org.apache.batik.dom.svg.SVGOMDefsElement
1

org.apache.batik.dom.svg.SVGOMDocument
1

org.apache.batik.dom.svg.SVGOMGElement
6

org.apache.batik.dom.svg.SVGOMPathElement
12

org.apache.batik.dom.svg.SVGOMSVGElement
1

org.apache.batik.dom.svg.SVGOMUseElement
2

org.apache.batik.dom.util.DocumentDescriptor
1

org.apache.batik.dom.util.DocumentDescriptor$Entry
17

org.apache.batik.dom.util.DoublyIndexedTable
4

org.apache.batik.dom.util.DoublyIndexedTable$Entry
23

org.apache.batik.dom.util.HashTable
3

org.apache.batik.dom.util.HashTable$Entry
95

org.apache.batik.dom.util.HashTableStack
1

org.apache.batik.dom.util.HashTableStack$Link
1

org.apache.batik.ext.awt.AreaOfInterestHintKey
1

org.apache.batik.ext.awt.AvoidTilingHintKey
1

org.apache.batik.ext.awt.BufferedImageHintKey
1

org.apache.batik.ext.awt.ColorSpaceHintKey
1

org.apache.batik.ext.awt.TranscodingHintKey
1

org.apache.batik.ext.awt.color.NamedProfileCache
2

org.apache.batik.ext.awt.geom.ExtendedGeneralPath
10

org.apache.batik.ext.awt.geom.RectListManager$RectXComparator
1

org.apache.batik.ext.awt.image.PadMode
3

org.apache.batik.ext.awt.image.renderable.ClipRable8Bit
1

org.apache.batik.ext.awt.image.rendered.LRUCache
1

org.apache.batik.ext.awt.image.rendered.LRUCache$LRUNode
50

org.apache.batik.ext.awt.image.rendered.TileMap$TileMapLRUMember
20

org.apache.batik.ext.awt.image.rendered.TileMap$TileMapLRUMember$RasterS
oftRef              20

org.apache.batik.ext.awt.image.spi.DefaultBrokenLinkProvider
1

org.apache.batik.extension.svg.BatikBridgeExtension
1

org.apache.batik.extension.svg.BatikDomExtension
1

org.apache.batik.extension.svg.BatikFlowTextElementBridge
1

org.apache.batik.extension.svg.BatikHistogramNormalizationElementBridge
1

org.apache.batik.extension.svg.BatikRegularPolygonElementBridge
1

org.apache.batik.extension.svg.BatikStarElementBridge
1

org.apache.batik.extension.svg.ColorSwitchBridge
1

org.apache.batik.gvt.CanvasGraphicsNode
1

org.apache.batik.gvt.CompositeGraphicsNode
7

org.apache.batik.gvt.CompositeShapePainter
11

org.apache.batik.gvt.FillShapePainter
11

org.apache.batik.gvt.RootGraphicsNode
1

org.apache.batik.gvt.ShapeNode
11

org.apache.batik.gvt.StrokeShapePainter
11

org.apache.batik.gvt.TextNode$Anchor
3
org.apache.batik.gvt.event.GraphicsNodeChangeEvent
40        
org.apache.batik.gvt.filter.GraphicsNodeRable8Bit
1
org.apache.batik.gvt.font.AWTFontFamily
113
org.apache.batik.gvt.font.AWTGVTFont
113
org.apache.batik.gvt.font.AWTGlyphGeometryCache
54
org.apache.batik.gvt.font.AWTGlyphGeometryCache$Entry
38
org.apache.batik.gvt.font.GVTFontFace
113
org.apache.batik.gvt.renderer.StrokingTextPainter
1
org.apache.batik.gvt.text.ConcreteTextLayoutFactory
1
org.apache.batik.gvt.text.GVTAttributedCharacterIterator$TextAttribute
34
org.apache.batik.i18n.LocaleGroup
1
org.apache.batik.i18n.LocalizableSupport
4
org.apache.batik.parser.DefaultLengthHandler
1          
org.apache.batik.parser.DefaultPathHandler
1
org.apache.batik.parser.DefaultPreserveAspectRatioHandler
1
org.apache.batik.script.InterpreterPool
1
org.apache.batik.script.rhino.RhinoInterpreterFactory
1
org.apache.batik.swing.gvt.GVTTreeRenderer$1-5
5 


org.apache.batik.swing.svg.GVTTreeBuilder$1-4
4 

org.apache.batik.swing.svg.SVGDocumentLoader$1
1          

org.apache.batik.swing.svg.SVGDocumentLoader$2
1    

org.apache.batik.swing.svg.SVGDocumentLoader$3
1
org.apache.batik.swing.svg.SVGDocumentLoader$4
1
org.apache.batik.util.CleanerThread
1
org.apache.batik.util.DoublyLinkedList
2
org.apache.batik.util.ParsedURLDataProtocolHandler
1
org.apache.batik.util.ParsedURLDefaultProtocolHandler
1
org.apache.batik.util.ParsedURLJarProtocolHandler
1
org.apache.batik.util.io.StreamNormalizingReader$ASCIIDecoderFactory
1
org.apache.batik.util.io.StreamNormalizingReader$ISO_8859_1DecoderFactor
y                                  1
org.apache.batik.util.io.StreamNormalizingReader$UTF16DecoderFactory
1
org.apache.batik.util.io.StreamNormalizingReader$UTF8DecoderFactory
1 

 

The JSVGCanvas itself is not longer there. When I call the function
several times it does not change the heap allocation significantly.
Is this a bug or what can I do to get the batik object completely freed?
 
Regards
Tania

Mime
View raw message