- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Substitue of PMAP in 11.23
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
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
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
12-31-2012 04:05 AM
12-31-2012 04:05 AM
Hi ,
I am trying to find memory usage of a particular processid.
In 11.31 i can use pmap <pid> to get memory usage of process(including size of each mapped object).
Is there any substitute of pmap in 11.23.
Actually, I want to know Total virtual size of the process including virtual sizes of text, data, stack, mmap regions, shared memory regions and IO mapped regions.
I already tried ps command (in combination woth some options) but not usefull.. :(
Please help.
Regards
Abhishek J
Solved! Go to Solution.
- Tags:
- pmap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2012 06:37 AM - edited 01-01-2013 03:33 AM
12-31-2012 06:37 AM - edited 01-01-2013 03:33 AM
Re: Substitute for pmap(1) in 11.23
>Is there any substitute of pmap in 11.23?
>I already tried ps command (in combination with some options) but not useful.
Any reason you need this level of detail? Won't ps(1) and top(1) give a good estimate?
Otherwise you can write your own pmap by calling the appropriate pstat(2) functions.
If you search in the HP-UX category, there may already be a source attached to one topic.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 02:01 AM
01-01-2013 02:01 AM
Re: Substitute of PMAP in 11.23
Hi Dennis
I have some processes that are eating up so much memory causing the component crash.
I found its a TAO process and consuming so much memory causing TAO crash ... so i want to know the memory usage of that TAO process so that I can re-start TAO before crash depending if memory usage reaches a certain limit..
top i s not usefull for my case as top wil list the top processes on the system and TAO process might not get listed in TAO output.
It would be very usefull if you can provide the code that you are refering to or link to that post
Thanks in advance
Regards
AbhishekJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 03:32 AM - edited 01-01-2013 03:34 AM
01-01-2013 03:32 AM - edited 01-01-2013 03:34 AM
Re: Substitute for pmap(1) in 11.23
>I have some processes that are eating up so much memory causing the component crash.
Then ps(1) will provide enough info on VM usage for that process.
Are you running out of total swap or just hitting maxdsiz?
>It would be very useful if you can provide a link to that post
Consulting the tag cloud shows some topics:
http://h30499.www3.hp.com/t5/tag/pstat/tg-p
http://h30499.www3.hp.com/t5/System-Administration/Tool-for-viewing-process-segments/td-p/3915813
http://h30499.www3.hp.com/t5/System-Administration/How-to-see-total-memory-usage/td-p/4164243
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Process-Memory-size/m-p/4603864
http://h30499.www3.hp.com/t5/Languages-and-Scripting/process-info/m-p/3895187
http://h30499.www3.hp.com/t5/General/doubt-regarding-pstat-h-and-RSS/m-p/4689153
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 05:28 AM
01-01-2013 05:28 AM
Re: Substitute for pmap(1) in 11.23
I could find some code at :
http://h30499.www3.hp.com/hpeb/attachments/hpeb/itrc-156/378200/1/357495.c
but i was looking for shell script to get the details fo process size...
i tried using ps but ps will only tell size in physical pages but i am looking to get Total virtual size of the process including virtual sizes of text, data, stack, mmap regions, shared memory regions and IO mapped regions as we got in TOP output.
Regards
AbhishekJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2013 06:49 AM
01-01-2013 06:49 AM
Solution>I could find some code at: 357495.c
You want to look at the code around pstat_getprocvm.
>I tried using ps but ps will only tell size in physical pages
There is the vsz field in KB.
Since your comparison is going to be fuzzy anyway, you are going to have to adjust your limits until your are happy.
What did you use for pmap?
>I am looking to get Total virtual size of the process including virtual sizes of text, data, stack, mmap regions, shared memory regions regions as we got in TOP output.
The text and stack sizes shouldn't be a limit. If you have a leak, the only one that counts is the data area.
And if you like top output, you can just use "-d 1 -n 10000 -f top.out" and look at that.