cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

java.lang.OutOfMemoryError: Java heap space

Former Member
0 Likes
434

Hi

Need some help for XI memory parameter. Our XI dev server get crashed 2-3 times in a day. Sometime even users are not working when it crashed. I checked the default.trc file and got the following error message:

java.lang.OutOfMemoryError: Java heap space

As per oss note 723909, i increased the heap memory to 2GB but still same problem.

Is there some good document to for our problem or if there is any document for default thread parameter value to set in XI environment.

Pls suggest to resolve this problem.

Regards

Amar

View Entire Topic
Former Member
0 Likes

Hello Amarjit,

For XI, Usually the MaxThreadCount in ApplicationThreadManager needs to be set to 350.

Since XI Applications are quite memory intensive, MaxHeapSize & -Xms should be atleast 2048M. However, you could set it higher to 3G if there is enough physical memory/64 bit OS.

The best way to identify what is causing OutOfMemory is to configure generation of heapdumps at the occurance of Outofmemory.

Please refer to the SAP note 1004255 and make sure the heapdump generation is configured correctly. Heapdumps help us identify which application is using up so much memory and if there is any memory leak.

If you would like to analyze heapdumps, you could download and get more details about it at :

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/java/javaMemoryAnalysis&

Hope this helps.

Best Regards,

Snehal