Question on GCJ/Boehm Memory Utilization

Rutger Ovidius r_ovidius@eml.cc
Sun Feb 19 19:36:00 GMT 2006


Saturday, February 18, 2006, 10:30:19 PM, you wrote:
CAV> Hello!
CAV> The character arrays created by GCJ/Boehm for storing the 
CAV> java.lang.String tokens that result from XML processing are where I 
CAV> believe there is a problem. These are short strings, typically around
CAV> 10 or so characters in length. GCJ/Boehm seems to be allocating 
CAV> 2048-byte heap blocks, and in many cases - even 12932-byte heap blocks,
CAV> and then putting only one or two of the tokens resulting from XML 
CAV> parsing into them. Just a few characters. In some cases, 2 of these 
CAV> short tokens share a 2048-byte or 12932-byte block, but very often they
CAV> don't.
You might try playing with the HBLKSIZE define in gc_priv.h.
I recall trying 512 (instead of 2048) and finding total ram use to go
down, but having more blocks overall. (On an app with lots of small strings)


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /