HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: C heap size
Operating System - HP-UX
1833759
Members
2424
Online
110063
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
02-26-2002 10:56 AM
02-26-2002 10:56 AM
C heap size
Hi
If a Java program includes native methods ( in C ), how can we find the memory being used by the native part of the program.
And also how can we find the memory being used by the JVM itself. Does the glance metric
PROC_REGION_RES_DATA show the memory used by JVM.
...BPK...
If a Java program includes native methods ( in C ), how can we find the memory being used by the native part of the program.
And also how can we find the memory being used by the JVM itself. Does the glance metric
PROC_REGION_RES_DATA show the memory used by JVM.
...BPK...
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 01:56 AM
02-27-2002 01:56 AM
Re: C heap size
It depends. If the native methods are simply using malloc() to allocate the memory, then you should look at the size of the data segment. This corresponds to the glance metrc PROC_REGION_VIRT_DATA, which is the total amount of virtual memory used by the processes data segment. The PROC_REGION_RES_DATA gives the amount of physical memory used, ie it is the subset of the virtual region that is resident in physical memory.
The JVM does not use the data segment for its heap. Instead, it allocates an anonymous mmap() segment. This is a bit trickier because a process usually has a number of such segments. If you look at the PROC_REGION_TYPE and PROC_REGION_VIRT metrics, focussing on those which are of type MEMMAP, you will have a list of regions, the java heap being one of these. Usually you can tell by its size (its usually the biggest).
Hope this makes sense.
Regards,
Steve
The JVM does not use the data segment for its heap. Instead, it allocates an anonymous mmap() segment. This is a bit trickier because a process usually has a number of such segments. If you look at the PROC_REGION_TYPE and PROC_REGION_VIRT metrics, focussing on those which are of type MEMMAP, you will have a list of regions, the java heap being one of these. Usually you can tell by its size (its usually the biggest).
Hope this makes sense.
Regards,
Steve
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