- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Relation between ResidentSetSize of a java app...
Operating System - HP-UX
1753834
Members
8226
Online
108806
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
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
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
тАО06-05-2009 02:21 AM
тАО06-05-2009 02:21 AM
Relation between ResidentSetSize of a java application and its wrapper.java.maxmemory value
How is the ResidentSetSize of a java process related to the maxmemory setting for the java application.
Can the Resident Set Size value for the java process be more than the maxMemory setting? I am seeing that the Resident Set Size for a java application on a non-server class machine is more than its maxMemory setting which is 64MB while the Resident Set Size is more than 150MB?
Should not this kind of scenario give an "OutOfMemory" error?
Can the Resident Set Size value for the java process be more than the maxMemory setting? I am seeing that the Resident Set Size for a java application on a non-server class machine is more than its maxMemory setting which is 64MB while the Resident Set Size is more than 150MB?
Should not this kind of scenario give an "OutOfMemory" error?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 02:55 AM
тАО06-05-2009 02:55 AM
Re: Relation between ResidentSetSize of a java application and its wrapper.java.maxmemory value
Shalom,
Can the Resident Set Size value for the java process be more than the maxMemory setting?
maxMemory implies not.
This is something that does not seem to be clearly documented.
I would test this out as part of the quality assurance process. Maybe in the prototype stage.
SEP
Can the Resident Set Size value for the java process be more than the maxMemory setting?
maxMemory implies not.
This is something that does not seem to be clearly documented.
I would test this out as part of the quality assurance process. Maybe in the prototype stage.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО06-05-2009 05:12 AM
тАО06-05-2009 05:12 AM
Re: Relation between ResidentSetSize of a java application and its wrapper.java.maxmemory value
No, it doesn't imply that at all.
From:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#maxMemory()
maxMemory is the max that the JVM will use. I would have to interpret that as the maximum the JVM will allocate *itself* from heap, etc. RSS includes things that the JVM doesn't know about (like Kernel stack, shared library pages, Text pages, etc.) While the JVM could query this from time to time, it would be a moving target. (If someone else links to a shared library and faults in pages because they call a different function set... the JVM RSS shows part of the pages -- but it can't control this nor even know about it).
As such, maxMemory is more of a maxdsiz+local_shmmax type limit, not a hard cap on RSS.
From:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#maxMemory()
maxMemory is the max that the JVM will use. I would have to interpret that as the maximum the JVM will allocate *itself* from heap, etc. RSS includes things that the JVM doesn't know about (like Kernel stack, shared library pages, Text pages, etc.) While the JVM could query this from time to time, it would be a moving target. (If someone else links to a shared library and faults in pages because they call a different function set... the JVM RSS shows part of the pages -- but it can't control this nor even know about it).
As such, maxMemory is more of a maxdsiz+local_shmmax type limit, not a hard cap on RSS.
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