Symptom
You are working with SAP Business One and it suddenly stops working and you cannot connect to the SLD. You may notice that server tools has stopped working. This is happening randomly but frequently. A restart of the server tools temporarily resolves the situation for users.
You will notice the following errors in the %programdata%\sap\SAP Business One\Log\SAP Business One ServerTools\System Landscape Directory\sldService.log
- Java heap space (failed to allocate XXXX bytes) (max heap: 1024 MB)
- java.lang.OutOfMemoryError: GC overhead limit exceeded
Solution
SAP intends to provide a feature package or patch to solve the symptom that is described in this SAP Note. The section References below lists the related feature package or patch once they become available. Be aware that References can only be confirmed at feature package or patch release date. SAP delivers feature packages or patches only for selected releases at its own discretion, based on the business impact and the complexity of implementation.
Workaround:
SAP Business One Server Tools is a 32-bit component and therefore the maximum memory pool assigned to its JVM is 1024MB. As this JVM is shared among other SAP Business One components the memory available is limited and eventually results in an Out-Of-Memory (OOM) error.
Install SLD on a seperate machine to other SAP Business One components having a shared tomcat service. Refer to our SAP Business One Administrator’s Guide for details on these components. In order to install a single component on a sperate machine you can run the setup.exe in the subdirectory of the installation CD ( Packages.x64\Server Tools\setup.exe)
Please also send the following information to SAP Business One Support
- Log files from SAP Business One, SLD and tomcat. Refer to SAP Note 2441140 – Central Note for Log File Locations for SAP Business One Components
- Core dump file from JVM
Follow the steps to generate core dump from the JVM
- Open cmd.exe as administrator
- Execute following command: “C:\Program Files (x86)\SAP\SAP Business One ServerTools\Common\tomcat\bin\tomcat8w.exe” //ES//B1ServerTools
- Go to Java tab
- In the ‘Java Options’ field add the following JVM parameters to generate the dump file.
- -XX:+HeapDumpOnOutOfMemoryError
- -XX:HeapDumpPath=C:\temp