- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VM Size greater than allocated for a Java Heap
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-21-2004 02:49 AM
тАО12-21-2004 02:49 AM
We have an rp class box with 2 gig of RAM. The machine is extremely slow to work with.
As usual we started running glance and we see that memory utlisation is almost always at 95,99 or 100%. The system runs approximately 10 Java Virtual Machines of varying sizes but none exceeding 256 M.
The interesting part is that inspite of limiting the maximum amount of memory that can be consumed by a Java process say 256, the VSS column reports a consisten use of 450 M. I might be missing something elementary out here in explaining this phenomenon.
Any stab at explaining the behavior is greatly appreciated.
Thanks
Paddy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 02:56 AM
тАО12-21-2004 02:56 AM
Re: VM Size greater than allocated for a Java Heap
Are you doing that?? Check both sizes - initial heap size and max. heap size.
Also you should be up to date on java patches.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 03:11 AM
тАО12-21-2004 03:11 AM
Re: VM Size greater than allocated for a Java Heap
Yes. We use the java command line of -Xmn and -Xmx to set the initial and max heap size.The current values are 0 and 256.I experimented with increasing the minimum size which only reflected a change in the RSS but no effect on the VSS.
I am not sure of the lastest HotSpot Patch on HP.The following is my output of java -version
-----------------
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_17_15 PA2.0, mixed mode)
--------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 03:23 AM
тАО12-21-2004 03:23 AM
Re: VM Size greater than allocated for a Java Heap
ps -efx|grep [j]ava
This would show the values you used on command line.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 04:36 AM
тАО12-21-2004 04:36 AM
Re: VM Size greater than allocated for a Java Heap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 08:44 PM
тАО12-21-2004 08:44 PM
Re: VM Size greater than allocated for a Java Heap
U should use PRM and WLM and have one java-prosess stuck at a single cpu.
Java should NEVER swap.
One could also look at the Garbage collectors in the j2ee environment..
Typical for a badly written java application is that it collects objects until one reaches the memomory limit, and then it uses ALL resouces to delete the objects it has collected..
typical indication is running top and look at the load-average compared to idle.
if load-average is high and idle is good u have a GC problem.
paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 08:45 PM
тАО12-21-2004 08:45 PM
SolutionThe other three processes are old.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 02:03 AM
тАО12-22-2004 02:03 AM
Re: VM Size greater than allocated for a Java Heap
For the last process After the URL Protocols jar file you'll find the -Xmx directive of setting to 256M (I admit that visually its kinda confusing.
Meanhwile I have asked my system folks to upgrade the system with the attached list of patches. I have got this list after running HPjconfig.Some of them are present already but some missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 02:47 AM
тАО12-22-2004 02:47 AM
Re: VM Size greater than allocated for a Java Heap
I think what you're seeing is quite usual for JVMs. First of all VSS is the virtual set size... if you see memory bottlenecks then you should have a look at the resident set size (RSS)!
However, if you look at the memory regions in Glance you should see that the largest (VSS) regions are of type "MEMMAP/Priv". These memory mapped files are used for JVM internal memory management and they are allocated using mmap()'s MAP_NORESERVE flag... which means even no waste of swap due to layz swap allocation.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 03:04 AM
тАО12-22-2004 03:04 AM
Re: VM Size greater than allocated for a Java Heap
How come the same behavior isnt reflected in AIX ..(probably the jvm implementations, I guess)...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 10:47 PM
тАО12-22-2004 10:47 PM
Re: VM Size greater than allocated for a Java Heap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2006 05:25 AM
тАО10-04-2006 05:25 AM
Re: VM Size greater than allocated for a Java Heap
I am experiencing the same problem now. Have you got the answer to this problem.
For my case, I have JVM running on both 1.3.1.13 and 1.4.2.03. The problem happened to both JVM on itanium machine. Testing on an other HP machine does not show this behaviour. The memory is limited to 100m (-Xmx100m) but TOP show java is taking up to 900m. This cause the system to run out of memory and the application need to be restated periodically.
Please advise.
Thank you
Rgds,
jay