SAP: Warning – JAVA Code Cache is Full

Recently in Java – dev_serverx log file,we have seen multiple warning occurred as below –

J : [140083218769664] 01:32:31 ***Warning: Code cache is full: Try increasing the code cache size using -XX:ReservedCodeCacheSize=…
J : [140083218769664] 01:32:31 ***Warning: JIT stopped
J : [140083218769664] 01:32:31 ***Warning: JIT restarted

There is an Standard SAP note which is describing this situation & providing the multiple solutions –

2579836 – AS Java system has performance problem – FCAException – Best practices and tuning recommendations

Point No. 4 – Increase the code cache size to 1024 MB.

As per SAP, we need to increase the parameter ReservedCodeCacheSize to 1024M value but currently this parameter is not set in our system. it’s using the default 250M (Code Cache Size) value.

For Verification of the present code cache size & usage follow the below note –

2632653 – How to check present Code cache usage on SAP JVM

In my case, I am not able see Code Cache size via graphical tool then we use jvmmon tool to dump the code cache as below –

The SAP JVM Monitoring Tool jvmmon can be used to obtain the present value of the code cache. Steps are:
> Start the jvmmon
> Connect to the PID
> dump jit info
The output is written into the std_server file in the work directory. Click here for more information on the SAP JVM Monitoring Tool: jvmmon.

we did set this parameter in config tool as defined in SAP note & restart the whole cluster including DB & observe the performance of the system. it’s since more then a week, we didn’t see this Warning any more in dev_serverX log file.

Will wait for another month & see if this situation reoccurs & will update with next resolution.

SAP : JAVA Transport failing with Internal Server Error HTTP Code 500

Recently we are facing a issue where all BPM transport import is failing in PO JAVA system with below error –

WS Execution Error in CDTDEPLOY_DI (cx_ai_system_fault)
SOAP:1007 SRT: Unsupported xstream found: (HTTP Code 500 : Internal Server Error)
Error when processing Web Service Call

Connectivity for PO Java system is as below –

Solution Manager ——–> NWDS ———> SAP PO (JAVA)

Transport import from Solution Manager (CTS+)

The above transport is failing on Pre Prod system but it’s successfully completing in QA system so with same configuration & same NWDS system.

We followed SAP note – 1139406 but it didn’t help us there was no configuration change in the system because it’s deploying successfully in QA. We did restart PO multiple times but that also not help us.

we again trigger the transport & saw the below error in Developer Trace while transport is running.

ClientServerException exception:Write object <> failed! Caused by: com.sap.engine.frame.core.locking.LockException:Cannot lock 14051311214586500000pwdf5674……………….18228850,J2EE_CONFIGURATION_MANAGER,22352127/cb1c722f/30c4e431/18064/2dca72/6f336575/573c0b09/abe4c6a3/8f4414e3…]; it is in use by another owner. The lock collision occurred with user .

There is an standard SAP note for the same issue – 2023974 – Write object failed – Cannot lock as it is in use by another owner.

We followed the SAP note as it’s saying to delete the JAVA locks from PO system & re import, after deleting locks from PO system we again restart the PO & NWDS system again & then import the same, now this time it’s successfully imported in the system.

Reference note for JAVA system performance
2579836 – AS Java system has performance problem – FCAException – Best practices and tuning recommendations