You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Milan Tomic <mi...@setcce.org> on 2003/10/08 15:02:00 UTC
java.lang.OutOfMemoryError
I got java.lang.OutOfMemoryError while signing XML file of 1,5 MB in
size. Is there any workaround?
Best regards,
Milan
Re: java.lang.OutOfMemoryError
Posted by JC Tchitchiama <jc...@panonet.net>.
Yasir,
One thing you can also try is setting the garbage collector to run more
aggressively.
Depending on which JDK you use, this can be done by -Xincgc (Sun/Blackdown) or
-Xgcpolicy:optavgpause (IBM).
On Wednesday 08 Oct 2003 3:03 pm, Yasir Khan wrote:
> MessageHi,
>
> On JAVA command provide the JVM parameters for memory settings: For example
if the name of class that u r trying to run is MyClass.java (It will be
MyClass.class after compilation) use the following command to run ur class:
> > java -Xms32M -Xmx128M MyClass
>
> You can adjust min. and max. memory limits by changing the Xms and Xmx
> parameters respectively.
>
> I hope this will solve ur problem.
>
> Best Regards,
>
> Yasir Khan
> ----- Original Message -----
> From: Milan Tomic
> To: Apache XML DSIG
> Sent: Wednesday, October 08, 2003 6:02 PM
> Subject: java.lang.OutOfMemoryError
>
>
>
> I got java.lang.OutOfMemoryError while signing XML file of 1,5 MB in
> size. Is there any workaround?
>
> Best regards,
> Milan
--
Best Regards.
JC.
\\- - -//
( @ @ )
===oOOo-(_)-oOOo=================================================
jct@panonet.net
=================================================================
Re: java.lang.OutOfMemoryError
Posted by Yasir Khan <ya...@ascertia.com>.
MessageHi,
On JAVA command provide the JVM parameters for memory settings: For example if the name of class that u r trying to run is MyClass.java (It will be MyClass.class after compilation) use the following command to run ur class:
> java -Xms32M -Xmx128M MyClass
You can adjust min. and max. memory limits by changing the Xms and Xmx parameters respectively.
I hope this will solve ur problem.
Best Regards,
Yasir Khan
----- Original Message -----
From: Milan Tomic
To: Apache XML DSIG
Sent: Wednesday, October 08, 2003 6:02 PM
Subject: java.lang.OutOfMemoryError
I got java.lang.OutOfMemoryError while signing XML file of 1,5 MB in size. Is there any workaround?
Best regards,
Milan