cancel
Showing results for 
Search instead for 
Did you mean: 

increasing heapsize of java on WINDOWS 2003

Former Member
0 Kudos

Hi SAP gurus,

I have been asking almost on all forums and sap tech support and so far haven't recieved any solution.

I have installed SAP server (XI, CRM, EP) and everything went well except at the end I am not able to start the SAP Processes completely. J2EE process of SAPMMC stays yellow. SAP tech support suggested that I should increase the Heap Size from 1024 to 2048.

I am using Windows 2003 (64 Bit) and I couldn't find any place (even on control panel as suggested by many) where I can change this.

Another suggestion was to start Java manually as follows

java -Xmx2048m bla bla bla......

But to do this I have to give the right jar file also along with this command and I don't know which jar file SAP is using since it is done automatically.

If some one can please help me by letting me know where I can change the heap size for java on WINDOWS 2003 (64bit) I would really appreciate.

Thanks a lot in advance

Ram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ram,

If you want to change Heap size memory do the following:

Run configtool.exe. (/usr/sap/SID/instanceName/j2ee/configtool)

Under cluster-data ... under instance_IDXXX ... Click on server_IDXXX

On Java Settings section, change Max Heap Size memory to 2048.

Save the changes and close Configtool.

Reboot your system.

Maybe, there are any other problems. If your system remains whitout starting properly, post the log of the process server from SAPMMC.

I hope it is useful for you.

Regards,

Carlos

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The maximum total memory for aprocess including DLLs, the OS visable region etc if 2 GB.

However the maximum heap spce you can allocate to Java objects inside a JVM is about 1.3-1.6 GB depending on the OS. Solaris for Sparc is the only OS I have seen go over this. upto 3 GB

See Moazam's website for a good explanation by one of the VM gods.

http://www.unixville.com/~moazam

check this:

http://www.microsoft.com/whdc/system/platform/server/PAE/PAEmem.mspx

First Calculate the number of threads you can create

(MaxProcessMemory - JVMMemory - ReservedOsMemory) / (ThreadStackSize) = Number of threads

Example:

For Java 1.5 you will get the following results assuming that the OS reserves about 120MB:

1.5GB allocated to JVM: (2GB-1.5Gb-120MB)/(1MB) = ~380 threads

1.0GB allocated to JVM: (2GB-1.0Gb-120MB)/(1MB) = ~880 threads

Your Java Options Example:

-Xms 512m

-Xmx 1024m

-Xss256k

-XX:MaxPermSize=256m

-XX:ReservedCodeCacheSize=128m

For More Details i Found this link

http://www.reviewservers.com/index.php?page/tomcat

When you install this way, these settings are kept in the Windows Registry.

If you have the start menu items, the easiest way to change them is to go to

Start -> Programs -> Apache Tomcat -> Tomcat Configuration -> Java (tab).

There are fields for your initial and max heap sizes.

this may help you

Regards,

Surya

Former Member
0 Kudos

Hi Sorya

I got same problem like other guy has, but in ConfigTool, I can't see any Java paramaters not even memory and HeapSize, where may I increase Heap Memory...

please advised

Thanks in Advacned