cancel
Showing results for 
Search instead for 
Did you mean: 

CPA Cache and J2EE server issues

Former Member
0 Kudos

Hi Experts,

I am having a File to File scenario where the sender channel picks up csv files ( around 3MB each). Once I finished the configuration of the scenario, the J2EE server started to restart continuously five times and stops with a out of memory error.

After going through the defaultTrace.trc file in logviewer, this is the first error that I could see after starting the J2EE server.

CPA Cache not updated with directory data, due to: Couldn't open Directory URL (http://pi-dev:50000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.pid.pi-dev), due to: HTTP 503: Not Ready

Source Name: com.sap.aii.service.cpa.impl.cache.CacheManager.I checked the RFC destination of INTEGRATION_DIRECTORY_HMI and also checked if PIDIRUSER and PIAFUSER are locked or not. But they are not locked.

After the above error, the errors just build up probably because of the adapter framework not firing up. One of the error is:

Failed to lookup object from JNDI for name localejbs/AFWListener within app level thread. Reason: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at localejbs, the whole lookup name is localejbs/AFWListener.

Source: com.sap.aii.af.ra.ms.runtime.Resources

I also increased the max thread count in the Application Thread Manager to 250 in the Config tool. I kept the heap sizes as posted above.

Any help will be greatly appreciated.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Clean java memory which are using that temp log files.(Garbage collector)

once you cleared sufficient space then restart the jave engine again.

Regards,

Sumit Gupta

Former Member
0 Kudos

It gives out of Memory exception when there is not enough space on

the Adapter Framework to handle the incoming message. try to allocate

memory by setting garbage collector and Java heap.

Former Member
0 Kudos

Hi,

Thanks for the reply.

Can you please let me know where the temp log files are located usually?

Also can you let me know where I can increase the memory for the Adapter Framework?

Thanks in advance.

Regards.

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem solved by increasing the MaxPermSize and the MaxThreadCOunt parameters using the configtool.

Regards.

agasthuri_doss
Active Contributor
0 Kudos

Hey,

>the J2EE server started to restart continuously five times and stops with a out of memory error.

Strange, Can you test with less than 1 MB file and let us know the status, Is SAP PI & ECC are installed in the same Server.

Cheers

Agasthuri

Former Member
0 Kudos

Hi,

It looks like related to Java Garbage Collector and Java Heap i.e Java VM tuning.

Please check SAP note 552522 to set the Garbage Collector.

Former Member
0 Kudos

Thanks for the reply guys.

Doss:

Since the J2EE server is down, I cannot work on the ID or IR.

Koti:

I will look into the notes and update.

Former Member
0 Kudos

I tried to implement the proposed changes for the VM parameters in the note ...

but all futile attempts...

Regards.