To Calculate Maximum heap size for a JVM.

The maximum heap size controls how much memory the JVM can use. If your BPEL instance runs on a dedicated machine, set this as high as the maximum addressable memory space of your Operating System.




Determine the maximum heap by running Java from the command line and specifying the maximum heap.

For example,

java -mx3000m -version



In this case, decrease the maximum heap value until you do not get the error message . You can start by setting the maximum heap to a value satisfying your free RAM



bash-3.2$ java -mx3500m -version


java version "1.4.2.10"


Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.10-060112-14:28)


Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.10-060112-19:42-IA64N IA64, mixed mode)






bash-3.2$ java -mx3600m -version


Error occurred during initialization of VM


java.lang.OutOfMemoryError: unable to create new native thread

Comments

Popular posts from this blog

jstatd error : Could not create remote object : access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)

Weblogic server is not starting up ; java.lang.AssertionError

ORA-22990: LOB locators cannot span transactions