- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shared memory not released
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:41 AM
07-23-2002 08:41 AM
shared memory not released
I'm looking for q way to trace which deamon has used some shared librairies and never released them. In the attached document there is an outpu of ipcs -a command. You can see that shared memories are overflown because of on deamon which may crash without releasing its associated shared memory.
If someone has an Idea about how to investigate this problem, I would appreciate.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:43 AM
07-23-2002 08:43 AM
Re: shared memory not released
Have you done ps -fu daemon?
What does this say?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:47 AM
07-23-2002 08:47 AM
Re: shared memory not released
Hello,
you can release them by ipcrm command.
ipcrm -m id# You need to remove only thos which has 0 NATTACH..
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:00 AM
07-23-2002 09:00 AM
Re: shared memory not released
for ps -fu deamon, there is no result. the list is empty.
For ipcrm, I've tested it before qnd I cannot kill deamon shared memory.
henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:00 AM
07-23-2002 09:00 AM
Re: shared memory not released
Got a similar problem where the program was killed and the shared memory not released.
I wrote a script to detect if any of the process attached to the shared memory is still active. This generates a "ipcrm command" into a file that is then executed.
cf. attached script
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:21 AM
07-23-2002 09:21 AM
Re: shared memory not released
As far as tracing which daemon - assuming the pids are dead at this time the only thing I can think of would be to have a script running once a second to parse the output of ipcs -ma, get only the daemon lines, cut out the LPID or CPID and do a ps -ef |grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:48 AM
07-23-2002 09:48 AM
Re: shared memory not released
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 03:03 PM
07-23-2002 03:03 PM
Re: shared memory not released
As you've seen, the daemon is crashing and leaving the segments orphaned. There are two choices:
- fix the daemon so it doesn't crash
- reboot every day
Sometimes you have weigh the pain associated with getting a broken process fixed versus the pain of rebooting. For more details (beyond ipcs) about shared memory, get a copy of shminfo from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 06:43 AM
07-24-2002 06:43 AM
Re: shared memory not released
If you have Glance, it may be helpful to use it.
The attached file is "adviser syntax" which I have used in the past for troubleshooting similar problems.
Instructions:
1. Save the attachment to your current directory - let's call it shmem.syntax
2. Run
glance -adviser_only -syntax shmem.syntax -j 60 -f /tmp/glance.out
3. View the log file:
/tmp/glance.out
Regards ... Mladen