RE: [xsl] help with java.lang.outofmemoryerror

Subject: RE: [xsl] help with java.lang.outofmemoryerror
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Wed, 6 Apr 2005 10:06:10 +0100
> > I learned a while back (I think from Dr. Kay) that you should set
> > these two values to the same value.  Why this is, to be
> honest I have
> > not researched nor did I feel the need based on the source
> of the info
> > :)
>
> I advise people to do this purely on the basis that it works for me.

Xms sets the initial heap size, Xmx ets the maximum heap size.

I believe setting the initial heap size as high as possible should
reduce the amount of garbage collection going on, and the number of
times the VM has to go looking for more memory.  The flip side is that
all of that memory gets taken regardless of whether it's needed or not,
impacting on your system as whole.  Therefore, for one off large
transforms, setting both values the same and as high as possible should
give the best performance.

cheers
andrew

Current Thread