xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Glavassevich <mrgla...@ca.ibm.com>
Subject Re:Memory Problems in Class Symbol Table
Date Sun, 14 Jan 2007 23:03:03 GMT
"starki78" <starki78@libero.it> wrote on 01/14/2007 12:17:54 PM:

> Thanks for your reply.
> Yes it is true there are lots of different
> String used!
> I see that there is a rehash function
> for optimizing the access to
> the table to store strings in Version.
> Do you think this could reduce the memory-usage?

No. It just redistributes the strings over a larger table.

> Do zou recommend to upgrade?

Xerces 2.2 is over four years old. You should move up to the latest 
release. In addition to containing many bug fixes and performance 
improvements, it comes with a new parser configuration (see 
SoftReferenceSymbolTableConfiguration [1]) which uses a memory sensitive 
SymbolTable. The internalized strings stored in this SymbolTable are 
softly reachable and may be cleared by the garbage collector in response 
to memory demand.

> Nice greetings
> Starky

[1] http://xerces.apache.org/xerces2-j/faq-xni.html#faq-3

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

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

View raw message