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

java.lang.OutOfMemoryError: Java heap space

Former Member
0 Likes
432

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

Accepted Solutions (0)

Answers (3)

Answers (3)

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

Former Member
0 Likes

Have SAP done a "health check" on the system?

They recommend the best tuning for this type of thing.

Former Member
0 Likes

Hi,

only a tip: check if you have some file sender/ jdbc sender pooling a file/database in a short period with high data volume. It is common doing this at development server, but for a short period. If someone forgot it active, can be the cause of the problem (even if nobody is on the server).

regards.

roberti