You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by starki78 <st...@libero.it> on 2007/01/14 18:17:54 UTC

Re:Memory Problems in Class Symbol Table

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?
Do zou recommend to upgrade?


Nice greetings
Starky


---------- Initial Header -----------

>From      : "starki78" starki78@libero.it
To          : "j-users" j-users@xerces.apache.org
Cc          : 
Date      : Sat, 13 Jan 2007 17:52:16 +0100
Subject : Momory Problems in Class Symbol Table







> Hi I have a question
> and hope someone can give me an adive:
> There are some memory problems and in the
> JRockit console there
> you can see that 12.3 % are held in the class SymbolTable
> 
> All the time. This is Xerces 2.2 integrated in Weblogic. Can someone explain me what is causing this high memory usage????
> 
> THANKS AND NICE GREETINGS
> Starki
> 
> 
> 27.6% 135213k 774426 +137k [C (+103b/s) 
> 12.3% 60220k 14328 +1k 
> [Lweblogic/apache/xerces/util/SymbolTable$Entry; (+49b/s) 
> 6.3% 30942k 385373 -15k [Ljava/util/HashMap$Entry; (+25b/s) 
> 4.0% 19564k 834756 +2k java/lang/String (+15b/s) 
> 2.8% 13742k 586347 +18k java/util/HashMap$Entry (+11b/s) 
> 2.8% 13832k 216971 +11k [Ljava/util/Hashtable$Entry; (+11b/s) 
> 2.8% 13663k 207105 +0k [Ljava/lang/Object; (+11b/s) 
> 2.5% 12426k 318108 -12k java/util/HashM
> 
> 
> 
> ------------------------------------------------------
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
> http://click.libero.it/infostrada13gen07
> 
> 


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada14gen07



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


Re:Memory Problems in Class Symbol Table

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
"starki78" <st...@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