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

Intercompany solution error - Java heap space error

0 Likes
1,384

Hi,

We have a problem with adding a large document (over 4000 lines) in Integration solution for Sap Business One.

The exception message in B1if message log is:

"com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.OutOfMemoryError: Java heap space (failed to allocate 150904856 bytes) (max heap: 512 MB)"

Where can I increase java max heap for this solution?

What will be the optimal size?

Thanks,

Daniel

View Entire Topic
0 Likes

If you want to increase your heap space, you can use java -Xms<initial heap size> -Xmx<maximum heap size> on the command line. By default, the values are based on the JRE version and system configuration.

  • -Xms<size> set initial Java heap size
  • -Xmx<size> set maximum Java heap size

However, I would recommend profiling your application to find out why your heap size is being eaten.