Hi Biju,
When u start a java program, you can pass options
to the jvm. There is an option "-verbose:gc" which
gives you the output on the console when the garbage
collector runs. There you an output like
[GC 900k->250k (1416k), 0.0033920s]
(this is just an example, sorry for any typos)
Now th
Hi gurus,
Many Thanks again for helping me with the problem...
Alexander , Hong Zhou, Veda Narayanan, Vladimir, Man
Chi Ly, Uncle George.. thanks to all.
I have finally managed to solve the problem. The
shared memory was not getting detached. The pointer to
the shared memory was being type cas
Hi Uncle George,
I also tried with the same thing of top and GC
output. I had earlier noticed only on GC output,
because top was not ported on my environment. However,
after i observed both of them now, I have found that
top output goes on increasing while GC remains the
same (at around 300-700
my out of mem error is/was due to the failure of GZIPOutputStream to
release its memory fetched outside of GC.
I used "top" to display the amount of mem used by the active process. If
that grows larger as your GC stays the same, then u have a mem leak
outside of GC.
I then looked at the contents
Hi Alexander,
I have traced through my code thoroughly and there
is no memory leak. I
have also printed the Garbage Collector's output. The
heap used never goes
beyond 1 Mb (I tried with setting the initial heap
size as well but no
solution). Also i read about the stack size per thread
and set
o uname -a to get the version (for newbeeies)
Reg
Ved
-Original Message-
From: Man Chi Ly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: RE: java.lang.OutOfMemroyError
On Thu, 15 Nov 2001, Veda Narayanan wrote:
> Try these environ
tantinou [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 15, 2001 7:50 AM
> To: kulkarni sourabh
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: java.lang.OutOfMemroyError
>
>
> Sounds like you have a memory leak in your program. Yes, it is possible
> to ha
]
Subject: Re: java.lang.OutOfMemroyError
Sounds like you have a memory leak in your program. Yes, it is possible
to have memory leaks even in Java programs. All you have to do is to
add objects to a collection type (map, set, list, etc) and then forget
to remove them, or null all references to the
Sounds like you have a memory leak in your program. Yes, it is possible
to have memory leaks even in Java programs. All you have to do is to
add objects to a collection type (map, set, list, etc) and then forget
to remove them, or null all references to the collection.
There are several software