- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Java RTE memory usage
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
Forums
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
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
11-30-2008 12:15 AM
11-30-2008 12:15 AM
Java RTE memory usage
I have an HP 11.31 ia64 machine which runs several Java based agents. The processes use ~200M memory. This is also reflected in the Runtime.totalMemory(). However in using `topas` command shows private memory usage is ~200M, but the the total memory usage is ~600M. How can this be?
- Tags:
- Java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2008 12:37 AM
11-30-2008 12:37 AM
Re: Java RTE memory usage
No topas on HP-UX, only top(1).
You shouldn't trust top(1) correct stats, only glance. 600 Mb maybe shared memory or text?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2008 01:35 AM
11-30-2008 01:35 AM
Re: Java RTE memory usage
You are right, I used top, not topas.
I understand that this is shared memory/text, but the question is why? Is this WAD that a java process which uses 200M (according to Runtime.totalMemory) consumes 600M?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2008 04:20 AM
11-30-2008 04:20 AM
Re: Java RTE memory usage
top(1) is notoriously inaccurate, don't look at it for accurate results.
What are you really trying to find out?
>Is this WAD that a java process which uses 200M consumes 600M?
You are going to have to explain WAD, Works As Designed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2008 04:50 AM
11-30-2008 04:50 AM
Re: Java RTE memory usage
WAD = Work as design
I am trying to find out is this a problem that each simple java based process uses 600M of (swap) memory. This was not the case in RTE 1.4.2 where each process used about 250M. Is this change in RTE? Is there a JVM argument I should change?
BTW - I've create empty loop test program and it also uses about 500M memory.
It seems weird to me that to run 10 simple java processes I need 5G swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2008 05:26 AM
11-30-2008 05:26 AM
Re: Java RTE memory usage
> I am trying to find out is this a problem that each simple java based process uses 600M of (swap) memory. This was not the case in RTE 1.4.2 where each process used about 250M. Is this change in RTE? Is there a JVM argument I should change?
Using 'glance' will provide the best metrics for a process since 'glance' is architected for the HP-UX kernel. Glance also better accounts for any ahared-memory than tools like 'top' as already noted.
I would read the release notes for the Java RTE you are currently running. Perhaps the default heap size has changed between the releases you are comparing.
> BTW - I've create empty loop test program and it also uses about 500M memory.
It seems weird to me that to run 10 simple java processes I need 5G swap.
Well, Java is a notorious memory hog :-}
Regards!
...JRF...