- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory usage - how to identify the process
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
04-27-2005 05:03 AM
04-27-2005 05:03 AM
memory usage - how to identify the process
I have a system with high cpu memory usage, and wondering, how to identify the process, that causes this.
first of all - it's 2gb, where ~.5 gb goes for system/buffer cache, the other 1.5 should be available for others. but during the night, when oracle (oracle db runs there; sga = ~400mb) is down for backup, memory usage should be limited to ~.5gb, which is 25%, but it stays on a level of 1gb, which is 50%.
I\ve idenfied a shm area owned by root (using ipcs), but I'm unable to find any process, that is bound to that area (ipcs shows 2 processes are there; unftly, LPID/CPID do not exist, so I'm unable to find out..)
anyone has an idea how to address this? thanks in advance
mariusz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:09 AM
04-27-2005 05:09 AM
Re: memory usage - how to identify the process
It may be that the process that allocated the memory is dead and the correct course of action is ipcrm
ipcrm -m
-m changes based on the type of memory on the ipcs display.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:24 AM
04-27-2005 05:24 AM
Re: memory usage - how to identify the process
unftly - lsof is not available for me (don't ask why) :(
the mem segment is still in use (if it wasn't, ipcs'd show '0' as nattach)
thus - running ipcrm might harm this :)
thanks, m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:25 AM
04-27-2005 05:25 AM
Re: memory usage - how to identify the process
ps -ef | cut -c42-80 | sort -nr | head
repeat and see who is chewing up memory.
Of course there is also the russian roulette method, kill what you think is using up memory and re-check memory.
Finally, if you have an HP contract, you could do a TC on the box and ask them to tell you which processes are taking up memory.
They have a utility that can pull that data from a crash dump.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:32 AM
04-27-2005 05:32 AM
Re: memory usage - how to identify the process
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:40 AM
04-27-2005 05:40 AM
Re: memory usage - how to identify the process
and - cpu consumer does not correspond to memory this time :(
thanks again - some other ideas?
cheers, m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 05:51 AM
04-27-2005 05:51 AM
Re: memory usage - how to identify the process
# cat memtop
#!/bin/sh
# memtop - show top memory users and pid
# VSZ is in KB
echo "VSZ(KB) PID RUSER COMMAND"
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 09:00 AM
04-27-2005 09:00 AM
Re: memory usage - how to identify the process
When oracle is down for backup use
ipcs -m |grep oracle
ipcs -s | grep oracle
or write a little script and schedule it under cron to find out the shared memory/semaphores in use after oracle is down for backup.
use ipcrm -m id and ipcrm -s id to clear the shared memory/semaphores.
ps -ef at that time will also tell you the processes running on server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 02:30 PM
04-27-2005 02:30 PM
Re: memory usage - how to identify the process
To see your shared memory area for 32bit programs, 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
04-27-2005 06:23 PM
04-27-2005 06:23 PM
Re: memory usage - how to identify the process
i have a dbc_max_pct set to 15%, so 300mb is max for my system.
cheers, mariusz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2005 11:35 PM
04-27-2005 11:35 PM
Re: memory usage - how to identify the process
Bill Hassell, sysadmin