-
1. Re: Jboss memeory leak? .EJBs OutOfMemoryError
cchris Jul 15, 2004 5:06 PM (in response to arvindbc)It's possible to modify your JVM parameters in run.bat (under windows).
Uncomment the following line :
JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m.
Xms and Xmx are standard java paameters.
You'll have to stop and restart JBoss of course.
Xmsn
Specify the initial size, in bytes, of the memory allocation pool. This value must be
a multiple of 1024 greater than 1MB.
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
The default value is 2MB.
Examples : -128m
Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This value must be a
multiple of 1024 greater than 2MB.
Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
The default value is 64MB.
Examples : -Xmx512m
-Xms128m -Xmx512m are correct most of the time but you should determine the most appropriate values for your own environment.
I hope this helped
Chris