0% found this document useful (0 votes)
114 views3 pages

How To Identify - Determine The Maximum JVM Heap Size - My Notes

The document describes how to determine the maximum Java Virtual Machine (JVM) heap size that can be allocated for Oracle Containers for J2EE (OC4j) components in Oracle Application Server Release 12 (R12) and Oracle Application Server 10g (10gAS). It recommends starting with a high heap size value like 4096 megabytes (4GB) with the java -mx command and reducing the value until the JVM starts successfully, which identifies the maximum supported heap size for that system. As an example, the author's system only supported a maximum of 3072 megabytes (3GB) for the JVM heap.

Uploaded by

Suresh Sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views3 pages

How To Identify - Determine The Maximum JVM Heap Size - My Notes

The document describes how to determine the maximum Java Virtual Machine (JVM) heap size that can be allocated for Oracle Containers for J2EE (OC4j) components in Oracle Application Server Release 12 (R12) and Oracle Application Server 10g (10gAS). It recommends starting with a high heap size value like 4096 megabytes (4GB) with the java -mx command and reducing the value until the JVM starts successfully, which identifies the maximum supported heap size for that system. As an example, the author's system only supported a maximum of 3072 megabytes (3GB) for the JVM heap.

Uploaded by

Suresh Sai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

7/6/2017 How to identify/determine the maximum JVM Heap Size for OC4j components in R12 / 10gAS | OraclePitStop - Lets

2 / 10gAS | OraclePitStop - Lets share some knowledge

How To Identify/Determine The Maximum JVM Heap Size For OC4j Components In R12
/ 10gAS
Posted on September 11, 2008. Filed under: Apps Technology Stack, Configuration, Operating System, R12, TroubleShooting | Tags: 10gAS, heap, jvm, memory, oacore, oc4j, R12 |

Below command will help you to identify the maximum memory heap size than can be allocated to a JVM
process.

java -mx[value]m -version

Start with a higher value like 4G or higher and slowly cut down to the maximum allowed value.

Sample

$ java -mx4096m -version

Invalid maximum heap size: -Xmx4096m


The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.

As you can see my system cant support 4Gig for a JVM.

Now lets reduce to a lesser value, viz., 3Gig

$ java -mx3072m -version


java version 1.5.0.04
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.04-_27_jul_2006_10_52)
Java HotSpot(TM) Server VM (build 1.5.0.04 jinteg:07.27.06-16:18 IA64, mixed mode)

Now its clear that the maximum allowed value is 3gig.

cheers,
OraclePitStop.

https://oraclepitstop.wordpress.com/2008/09/11/how-to-identifydetermine-the-maximum-jvm-heap-size-for-oc4j-components-in-r12-10gas/ 1/3
7/6/2017 How to identify/determine the maximum JVM Heap Size for OC4j components in R12 / 10gAS | OraclePitStop - Lets share some knowledge

Advertisements

Share this:

Reddit

Like
Be the first to like this.

Related

How to change Java heap size in R12 to avoid Blank AppsLogin / AppsLocalLogin Page in Monitoring JDBC connection leak on a multi
java.lang.OutOfMemoryError: Java heap space R12? node R12 environment
error? In "Apps Technology Stack" In "Apps Technology Stack"
In "Apps Technology Stack"

Make a Comment

3 Responses to How to identify/determine the maximum JVM Heap Size for OC4j components in R12 / 10gAS
Comments RSS Feed

[] First, you need to identify how much is the maximum heap size that you can set. Click here. []
https://oraclepitstop.wordpress.com/2008/09/11/how-to-identifydetermine-the-maximum-jvm-heap-size-for-oc4j-components-in-r12-10gas/ 2/3
7/6/2017 How to identify/determine the maximum JVM Heap Size for OC4j components in R12 / 10gAS | OraclePitStop - Lets share some knowledge

How to change Java


heap size in R12 to
avoid
java.lang.OutOfMemoryError:
Java heap space
error?
OraclePitStop - Lets
share some
knowledge
September 11, 2008

Thnax for ur way to find out max JVM heap size.

Ajay
March 17, 2009

Its a good start, but you can fine tune better if you want; for example, your next run should be java -mx3584m -version to see if you can run 3.5
gb. There comes a point where it is academic, but I think another .5gb might be useful if its available.

Billy Bennett
May 7, 2009

Where's The Comment Form?

https://oraclepitstop.wordpress.com/2008/09/11/how-to-identifydetermine-the-maximum-jvm-heap-size-for-oc4j-components-in-r12-10gas/ 3/3

You might also like