HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find available heap memory
Operating System - HP-UX
1829123
Members
2082
Online
109986
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
Forums
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
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
08-28-2002 11:46 AM
08-28-2002 11:46 AM
How to find available heap memory
Hi,
I have progrma which is allocating memory
from heap using malloc() and this memory
is not freed. I want to find out how much
heap is left out during this program executing?
Is there any command which helps me?
Thanx
I have progrma which is allocating memory
from heap using malloc() and this memory
is not freed. I want to find out how much
heap is left out during this program executing?
Is there any command which helps me?
Thanx
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 12:16 PM
08-28-2002 12:16 PM
Re: How to find available heap memory
Did you try GlancePlus? If installed check it:
# glance
# gpm
# glance
# gpm
learn unix ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 12:22 PM
08-28-2002 12:22 PM
Re: How to find available heap memory
If you are calling free() and are wondering why the process size does not shrink, this is normal behavior. Free() does not return memory to the system but rather simply pushes that memory back on the process'es free list for reuse by subsequent malloc()'s by the same process. If you want to return memory to the system then you must take control of memory allocation using sbrk() with a negative value BUT you cannot use malloc(), realloc(), calloc() or free. You must only use sbrk() and you can't use any library routines which call malloc() to allocate memory.
If it ain't broke, I can fix that.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP