- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IPCS Help
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
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
09-05-2002 07:13 AM
09-05-2002 07:13 AM
IPCS Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 07:17 AM
09-05-2002 07:17 AM
Re: IPCS Help
As far as HP-UX is concerned, you should only need to reboot for hardware failures/upgrades, power failures/outages, and patching/software installation that change the kernel.
On most of our systems, we find that just restarting the application itself is sufficient to clear out any memory locks etc that it has caused.
Use Glance or a similar monitoring tool to help you check the system out. The trial version can be found on the application pack CD's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 07:26 AM
09-05-2002 07:26 AM
Re: IPCS Help
ipcs -ma will reveal the shared memory segments but that may not be of much use unless you know something about the underlying software. Top is not that good of a tool to judge memory usage because it only knows about memory related tp processes.
Having said all this, the correct approach to this problem is to ask the vendor a very simple question: "Why?". I can assure you that a vendor would only make that request of me once because that indicates very sloppy coding practices. The one exception to this would be if you or your users have been trained to get rid of those pesky processes via kill -9. There is no way cleanup can be done in that case but that is a problem for a different baseball bat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 07:27 AM
09-05-2002 07:27 AM
Re: IPCS Help
Good for you! I'm glad to see somebody resisting the silly notion of rebooting just "because". Those silly ideas are part of what I call "voodoo system administration".
It sounds like your vendor has a program with a memory leak, and instead of fixing it they just make everybody reboot their systems on a regular basis. You say you've checked your memory usage and it looks ok. You might try monitoring the memory usage of any processes that the application has running all the time. I'd suggest doing a 'ps -el' on the application processes at regular intervals (30 minutes or 60 minutes) and writing the output to a log file. Then you can pull up the values for individual processes and see if the SZ column is growing, which could indicate a memory leak.
As for the ipcs, you can use it to look at semaphores, shared memory, and message queues. You probably won't run into too many problems there, unless they are using up resources without releasing them. I'd try doing an 'ipcs -ma' first, which will show you all the shared memory segments. The OWNER and CREATOR columns will show you which user made them, and the NATTCH column will show you how many processes are attached to each segment. You could run into a problem where the application is trying to release a shared memory segment but a process is holding it open. In that case, you would see an uppercase D (for delete) at the beginning of the MODE column, and the NATTCH column would not be zero. That means the shared memory segment has been flagged for deletion, but one or more processes are holding it open. The only way out of it is to figure out which processes have the segment and kill them.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 07:34 AM
09-05-2002 07:34 AM
Re: IPCS Help
There are different ways to deal with the memory leaks. One way is to do a "UNIX95= ps -e -o "sz args" " and keep track of the first column (process size) for the interesting processes. If it keeps growing over a period of time, then the process would be one of the suspected.
To find out the information about the shared memory segments do an "ipcs -mob" and note down the NATTCH column. It is the number of processes associated with that segment. 0 may (not always) mean that it is a candidate for scrutiny.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 07:42 AM
09-05-2002 07:42 AM
Re: IPCS Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2002 11:56 AM
09-05-2002 11:56 AM
Re: IPCS Help
get yourself a copy of the HP Response Center tool "shminfo" at:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
That help you detecting the fragmentation of your shared memory.
HTH,
Wodisch