- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-11i: huge memory requested by a trivial Java ap...
Operating System - HP-UX
1753436
Members
4499
Online
108794
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
Go to solution
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
тАО09-05-2003 01:46 AM
тАО09-05-2003 01:46 AM
Hi folk,
I have a strange behaviour on HP11i machines (32-bit). When I run a very simple Java app (Hello world!), memory size listed by top command jumps immediately to 204MB!! Same Java main on another HP11i (same model and type but 64-bit) required just about 4 MB.... I applied all patches on 32-bit machines; I also had a look at Kernel configuration, but I did not find relevant differences... Furthermore, if I run java with different heap max size (via -Xmx option), memory size increases if I put big max heap size value, and decrease otherwise. If I run java with -classic option, memory size decreases (about one half), but it is still too much.... I tried also to change the JVM (1.3.1_02, 1.3.1_08, 1.3.0xx), but the issue remains... and on 64-bit machines everything works fine with every JVM a tested... It seems, all the space that could be needed by the app is allocated when the app starts, and some more else....why? Do you have any idea? Is there any parameter to set to avoid this big problem? Is the problem depending on 32-bit? Thank you in advance, ciao
Leda
I have a strange behaviour on HP11i machines (32-bit). When I run a very simple Java app (Hello world!), memory size listed by top command jumps immediately to 204MB!! Same Java main on another HP11i (same model and type but 64-bit) required just about 4 MB.... I applied all patches on 32-bit machines; I also had a look at Kernel configuration, but I did not find relevant differences... Furthermore, if I run java with different heap max size (via -Xmx option), memory size increases if I put big max heap size value, and decrease otherwise. If I run java with -classic option, memory size decreases (about one half), but it is still too much.... I tried also to change the JVM (1.3.1_02, 1.3.1_08, 1.3.0xx), but the issue remains... and on 64-bit machines everything works fine with every JVM a tested... It seems, all the space that could be needed by the app is allocated when the app starts, and some more else....why? Do you have any idea? Is there any parameter to set to avoid this big problem? Is the problem depending on 32-bit? Thank you in advance, ciao
Leda
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2003 03:03 AM
тАО09-05-2003 03:03 AM
Solution
Leda,
I believe the symptoms you see have nothing to do with different Java and/or OS revisions. It's the top command, that has changed its behaviour.
See also this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf8dd7a6067d9b24e907826100b9f38c3,00.html
Older top(1) versions only added Text, Data and Stack to get the process' SIZE. Now the complete VSS is printed including shared resources. Compare the what(1) strings of the commands you're using.
Especially Java processes appear to be huge with this approach. The reason for this is, that Java does some some huge mmap()'s using the MAP_NORESERVE option, which means they use lazy swap reservation. No real resources are used though... it's just the way how the VM's internal memory management is designed.
However, the processes _could_ demand more swap while they are running. So it's a good idea, not to be too thrifty with swap.
Best regards...
Dietmar.
I believe the symptoms you see have nothing to do with different Java and/or OS revisions. It's the top command, that has changed its behaviour.
See also this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf8dd7a6067d9b24e907826100b9f38c3,00.html
Older top(1) versions only added Text, Data and Stack to get the process' SIZE. Now the complete VSS is printed including shared resources. Compare the what(1) strings of the commands you're using.
Especially Java processes appear to be huge with this approach. The reason for this is, that Java does some some huge mmap()'s using the MAP_NORESERVE option, which means they use lazy swap reservation. No real resources are used though... it's just the way how the VM's internal memory management is designed.
However, the processes _could_ demand more swap while they are running. So it's a good idea, not to be too thrifty with swap.
Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2003 09:30 AM
тАО09-05-2003 09:30 AM
Re: HP-11i: huge memory requested by a trivial Java app
Dietmar,
thank you very much! Your answer resolved my problem! I run the ps -o vsz command and everyhting is ok! Actually I already tried to run ps -o command, but it did not work, I discovered on this forum I had to set variable UNIX95=1..!
Thanks again for your precious help, have a good weekend
Leda
thank you very much! Your answer resolved my problem! I run the ps -o vsz command and everyhting is ok! Actually I already tried to run ps -o command, but it did not work, I discovered on this forum I had to set variable UNIX95=1..!
Thanks again for your precious help, have a good weekend
Leda
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