- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gdb, to profile heap usage of an app
Operating System - HP-UX
1757752
Members
2052
Online
108863
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-15-2009 06:19 AM
10-15-2009 06:19 AM
gdb, to profile heap usage of an app
Hi,
There is a process, a stub basically, which further loads up a zillion shared libs while in execution.
To profile the heap usage(growth/decline) of this process over a period of time and upon certain critical points, gdb seems to be a better option.
Need pointers, to how one could have gdb attached to this process in execution, made to dump heap reports periodically (to a file), also, dump heap reports on reaching specific breakpoints (a list of critical functions, simply); all while the process still being alive.
Even a simple script that invokes gdb, attaches it to a pid, dumps a heap profile report and then detaches gdb, letting the process run as it was; would help. Please provide pointers to gdb options / possibilities in this regard.
Will attaching gdb to this process have any kind of impact on the exe in execution?
Please provide pointers/details for the above query.
Thanks && regards!
_raghava_
There is a process, a stub basically, which further loads up a zillion shared libs while in execution.
To profile the heap usage(growth/decline) of this process over a period of time and upon certain critical points, gdb seems to be a better option.
Need pointers, to how one could have gdb attached to this process in execution, made to dump heap reports periodically (to a file), also, dump heap reports on reaching specific breakpoints (a list of critical functions, simply); all while the process still being alive.
Even a simple script that invokes gdb, attaches it to a pid, dumps a heap profile report and then detaches gdb, letting the process run as it was; would help. Please provide pointers to gdb options / possibilities in this regard.
Will attaching gdb to this process have any kind of impact on the exe in execution?
Please provide pointers/details for the above query.
Thanks && regards!
_raghava_
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009 08:21 PM
10-15-2009 08:21 PM
Re: gdb, to profile heap usage of an app
You could use gdb for application heap/leak
profiling.
Please visit www.hp.com/go/wdb
please go through the white paper
http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/memdebug-updated_081109.pdf
please go through the section "Supported Modes of Memory-debugging in WDB"
and "Debugging in Attach Mode" in the white paper.
profiling.
Please visit www.hp.com/go/wdb
please go through the white paper
http://h21007.www2.hp.com/portal/download/files/unprot/devresource/Tools/wdb/doc/memdebug-updated_081109.pdf
please go through the section "Supported Modes of Memory-debugging in WDB"
and "Debugging in Attach Mode" in the white paper.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP