Troubleshooting: WebSphere Commerce Test Server stops in debug mode in RAD

When using the Toolkit RAD tool, the WebSphere Commerce Test Server may unexpectedly stop when started in debug mode.

Note: This issue affects the following HCL Commerce versions and IBM SDK levels:
  • HCL Commerce 9.1.17.0 – IBM SDK 8.0.8.40
  • HCL Commerce9.1.18.0 – IBM SDK 8.0.8.40
  • HCL Commerce 9.1.18.2 – IBM SDK 8.0.8.45
  • HCL Commerce 9.1.19.0 – IBM SDK 8.0.8.55

Solution

IBM has provided a workaround to resolve this issue.
  1. Add a generic JVM argument.
    Use the administrative console to add the following JVM argument:
    -Xjit:exclude={com/ibm/commerce/dynacache/commands/CacheEntryHistory.getRecommendedInactivityTimeout*}
    
  2. Set the JVM argument in the administrative console.
    • Navigate to:
      Administrative Agent > Java Process Definition > Java Virtual Machine
    • Append the above value to the Generic JVM Arguments field.
  3. Restart the WebSphere Commerce Test Server in debug mode to apply the changes.

Impact of applying the workaround

When this workaround is applied, the JIT compiler excludes the dynacache component from recompilation, which prevents the web server from stopping unexpectedly in debug mode.

If you need to rebuild dynacache, you must downgrade the IBM SDK to a version earlier than 8.0.8.40 before performing the rebuild.