cancel
Showing results for 
Search instead for 
Did you mean: 

Shared memory issue in JAVA STACK

Former Member
0 Kudos

Dear All,

Recently we face the shared memory issue in out JAVA stack.

We have eBuy system with MCOD database -ORACLE, SUSE Linux os.

While using jcmon pf=<profle name>

It shows the 'Can't open shared memory administration (rc = 3)' for that we need to cleanup by using 'jcontrol pf=<SAP instance profile> -c'

Can anyone explain what is the user of ‘cleanipc xx remove’ and ‘jccontrol pf=<sap instance profle> -c’

Which is the correct method to clean the shared memory of java system.

Thanks,

Priyanga G

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

yes, jcmon throws this error when all the java nodes are down.

Cleanup work dir. try to start/restart java and check the logs . if server node is not coming up check dev_server0 log otherwise check the bootstrap logs.

Amit.

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

This doesn't mean that you have a shared memory issue. You need to first check whether the J2EE system is started. If the system fails to start then check the trace files (dev_server, std_server) in the work directory.

Cleaning the shared memory is done in the same way on ABAP and Java stacks. You need to call the cleanipc tool after switching to sidadm. You just need to make sure that you use the right system number.

former_member45419
Active Contributor
0 Kudos

This message was moderated.

former_member188883
Active Contributor
0 Kudos

Hi Priyanga,

How much RAM is configured on your JAVA system ?

Regards,

Deepak Kori

ashish_vikas
Active Contributor
0 Kudos

Both are OK..

jccontrol pf=<sap instance profle> -c is SAP command to clear for only one instance because you use instance profile.

SAP Library - Administration Manual

cleanipc is a Unix command.


best regards

ashish

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Priyanga,

Cleanipc 00 remove command cleans the inter process communication for instance number 00.

JControl starts, stops, and monitors the processes of a Java instance. Basically, it's a java process which gives a specific environment for the execution of threads, giving them addressing space and is started of a specific instance using profile(syntax pf="path").


So, just stop SAP system.

Execute cleanipc <xx> remove - xx is the instance number.

execute ipcs.

remove semaphores using ipcrm  command.

ps -ef | grep sap - to find old processes

kill -9 - to kill process

startsap.

and then goto work directory and check logs if the system is not coming up.

Regards,

Divyanshu