Hunting Java memory. VSZ? 11.2 and 11.3


 
Thread Tools Search this Thread
Operating Systems HP-UX Hunting Java memory. VSZ? 11.2 and 11.3
# 1  
Old 04-09-2009
Data Hunting Java memory. VSZ? 11.2 and 11.3

We are running into what appears to be a memory leak in java with a program that we are developing.

The growth has been confirm on a 12day test. When we look at garbage collection with hpjtune, and jmeter, it appears to releasing the heap memory properly.



Does anyone have a good answer to why VSZ is so different than the rate of growth for all of the other metrics?



Have you seen a java leak like this before?



Is this the way the OS allocates memory, where we are not actually leaking memory, as seen by jmeter?



Here are some metrics after 12 hours on the situation:

This is data from HP/UX 11.2:



Top start size: 262mb
Top End size: 278mb



Top res: 78mb
Top res end: 91mb



VSZ Start: 25968k
VSZ end: 42352k



procinfo pages start: 67561
procinfo pages stop: 71675



glance RSS start: 81.2mb
glance RSS stop: 93.9mb





bash-3.2# ./java -version
java version "1.5.0.07-_20_mar_2007"
Java(TM) 2 Runtime Environment, Standard Edition (IBM build 1.5.0.07-_20_mar_2007-05_31 20070511)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0.07 jinteg:03.20.07-12:50 IA64W, mixed mode)
IBM Java ORB build orb50-20070501 (SR5)
XML build XSLT4J Java 2.7.7
XML build IBM JAXP 1.3.7
XML build XML4J 4.4.9
# 2  
Old 04-13-2009
Quote:
Originally Posted by craigclee
Is this the way the OS allocates memory, where we are not actually leaking memory, as seen by jmeter?
I don't use HP-UX so I am not sure about it. But on Linux I have seen virtual memory being consumed to nearly exhaustion at the OS level, but there was no apparent memory leak issue in the JVM. It was using JBoss AS.

As you use JVM 5.0+, I suggest you to use JConsole or similar tools to look at the memory space utilization in your JVM heap spaces and observe the dynamics of the spaces over time to look for possible signs of memory leak. Despite exhaustion of system memory, I did not observe noticeable heap growth and so I considered my installation a healthy one.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Java process showing high virtual memory

Hi All, I have a java process which is showing high virtual memory utilization in client server. But the same process is showing comparitively lesser virtual memory consumption. I understand that virtual memory shown is not of much importance for the general user in normal condition, my client... (2 Replies)
Discussion started by: mritusmoi
2 Replies

2. Red Hat

Memory conmsumption by Java server is very high on Linux compared to Soalris

Hello All, We have a jave server running on both linux and Solaris environments. On solaris,it consumes only 600-700MB whereas it goes upto 21G in Linux. I am monitoring the memory consumption through top command. Is this high memory consumption expected in Linux? (1 Reply)
Discussion started by: prasperl
1 Replies

3. Solaris

Solaris Memory usage by oracle, java

Hello Gurus, In Office, I have unix Solaris Server. Oracle and Java is installed on Solaris Server. Oracle when starts then oracle loads SGA, PGA memory and graps solaris server memory. In the same manner java and other applications grabs memory for them. I want memory distribution of... (4 Replies)
Discussion started by: get_chandrakant
4 Replies

4. Programming

Threads and VSZ memory

Delete (0 Replies)
Discussion started by: _thomas
0 Replies

5. UNIX for Dummies Questions & Answers

Checking heap memory size for java app

Hi I have one Java application installed in my Solaris system. Is there a way to find out the heap memory allocated size/used size/free size for the particular Java process? If anyone knows the command, please let me know. Even I appreciate if I have any scripts to find out the same. ... (0 Replies)
Discussion started by: nthiruvenkatam
0 Replies

6. UNIX for Advanced & Expert Users

hunting down for software interrupt causes

Hi, i have an rhel box with around 20 %soft every 2 seconds. The box is idle. How do i start hunting down what's causing this? i believe /proc/interrupts is hardware related, procinfo is basically the same. where else can i look? thanks, Marc (5 Replies)
Discussion started by: marcpascual
5 Replies

7. Advertise with Us

Job Hunting in Uganda

Hello I am thinking of packing up and moving to Uganda if I can, especially if I can track down some UNIX/Linux type roles there. Broadband has just come ashore in Mombasa and should soon make its way through to UG, I think this is going to trigger a surge in expansion for what is currently a small... (0 Replies)
Discussion started by: steadyonabix
0 Replies

8. Solaris

Java out of memory

Hi I am running a process on Solaris server having disk space is 31% and VMSTAT sersult is shown below: kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s1 s2 s3 s4 in sy cs us sy id 0 0 0 9424488 10718576 6 31 6 1 1 ... (1 Reply)
Discussion started by: helplineinc
1 Replies
Login or Register to Ask a Question