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

Intercompany solution error - Java heap space error

0 Likes
1,363

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

Accepted Solutions (0)

Answers (3)

Answers (3)

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.

0 Likes

Hi Filipe,

Thanks for quick answer.

Settings on that tab are below.

Maybe I should add something like: -xmx:4g in the Java Options window?

Regards,

Daniel

fdvicente
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Daniel,

You should be able to resolve this by increasing the memory assigned to the B1i tomcat process.

Check SAP Note 2192737, section 6. b.

Best regards,

Filipe Vicente