Symptom
The SAP Business One Integration Framework (B1if) service on a Windows server stops, crashes regularly or becomes unstable. Integration scenarios stop processing until the service is restarted.
Cause
There is rarely a single cause. The most common triggers are crashing DI Proxies, large volumes of SAP Customer Checkout messages, files removed by security software, an overloaded DI Proxy configuration and high-volume scenarios on the DI Adapter. The checks below help you find the trigger and give support the information it needs.
Who is affected
- SAP Business One 9.3 and 10.0 with the Integration Framework installed on Windows Server.
Checklist
1. DI Proxy crashes and keystore
A DI Proxy has crashed if you see one of these:
hs_err_*log files in the DI Proxy folder- A DI Proxy log that does not end with
Regular scheduled shutdown. A normal log always ends with this line. - Application errors for
SAPB1iDIProxy.exewith exception code0xc0000005in the Windows Event Viewer
Also check that the file .keystore exists in the DI Proxy installation folder. Without a valid keystore, HTTPS communication fails, which can stop other services as well.
2. SAP Customer Checkout and message volume
If SAP Customer Checkout (CCO) scenarios run on this system, note the daily or hourly transaction volume, whether message administration is done regularly and when CCO messages were last cleaned up or archived. Accumulated CCO messages are a known cause of high CPU load and service stops in busy environments.
3. Java runtime and security software
- Compare the folders `sapjvm_64\lib` and the DI Proxy installation folders with a working system and look for missing files.
- Check the quarantine log of your antivirus or security software for SAP-related files, and note the product name and version.
- If Java runtime files are missing, reinstall the Integration Framework as described in SAP Note 3490407.
- To prevent it from happening again, exclude the Integration Framework folders in your security software.
4. DI Proxy setup and Tomcat memory
- Count the DI Proxy groups and how many company databases each one serves. Best practice is one company database per DI Proxy.
- Check the Tomcat heap size: run
tomcat6w.exefrom `..\SAP\SAP Business One Integration\IntegrationServer\Tomcat\bin` and look at Maximum memory pool on the Java tab.
5. Adapter type
Note which adapter your scenarios use most (DI Adapter, Service Layer Adapter, Database Adapter or another), the volume and the operations (add, update, delete, query). The DI Adapter is the most fragile, because it calls native COM code and does not reconnect automatically. For high-volume posting, consider moving the scenario to the Service Layer Adapter.
6. Logs to collect
- Integration Framework logs from the 24 to 48 hours before the failure
- DI Proxy logs
- Windows Event Viewer logs (Application and System)
- A screenshot of the service status in Windows Services
Confirm the result
- After your changes, the Integration Framework service keeps running and the DI Proxy logs end with
Regular scheduled shutdown. - Scenarios process their message backlog, and the CPU load on the server returns to normal.