In an earlier thread I documented how my application merges one SVGElement into a main document. It works, but when I do it multiple times my application slows down and crashes, most often with an "out of heap space" exception. The SVG documents are not that complex (edited with inkscape). The inserted document has about 6800 Nodes and no text elements.

In trying to figure out what is going on, I ran the Netbeans profiler to discover what objects are being created and by whom. What I found was an astounding number of DOMMutationEvent objects (over 64,000) and also a huge number of HashMap$KeyIterator objects (over 27,000 using 890KB of memory), mostly created by SVGTextElementBridge$AttributedStringBuffer.toAttributedString();

I realize this is probably not enough detail to diagnose anything, but does this suggest anything to anyone about what I should be looking for or what I might be doing wrong?

--
Alan Deikman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to