1834814 Members
3024 Online
110070 Solutions
New Discussion

Re: IPCS not releasing

 
Dolores Capers
Contributor

IPCS not releasing

Hi Everyone,

I have a problem I have a few workstations used by 3 different shifts. For some reason, the shared memory is not being released after each person closes their stuff and logs off the workstation. This happens every so often. The only way's I've learned to clear them is with the ipcrm command or to shutdown the workstation. Although both methods work fine I would like to know why they are not releasing or how to make them release like they should when the user logs off.

Any help would be great.
Thanks
Dolores
3 REPLIES 3
Stefan Farrelly
Honored Contributor

Re: IPCS not releasing


Your users are not shutting down their processes/applications normally, hence ipcs doesnt release what they were using. Your users could be something as simply as killing a window instead of closing it down normally, kill their application rather than logging out of it, or even for a non windows application simply using ctrl-D to kill a telnet/remsh session instead of using exit or logout. If you ensure your users closedown/logout cleanly then ipcs will cleanup just fine, or else your stuck with having to periodically use ipcrm to cleanup. Anywhere you have users with PC apps their PC could die/hang which could result in their process not exiting cleanly on the HP server so you have to live with an ipcrm cleanup job. We do.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Kofi ARTHIABAH
Honored Contributor

Re: IPCS not releasing

...unless the application is not properly written to release shared memory when it is closed - is it a commercial software? can you yell at someone to get it fixed - otherwise, you might be stuck with having to ipcrm ... you could write a script that does it for you when the user leaves the application.
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: IPCS not releasing

Its the wonderful world of MicroSlop. Users have the habit of closing the window using the 'X' in the top right corner as opposed to closing the app in the window. End result is that the window closes but the process that was running in the window is still running.

The best cure is to have the app fixed.