Re: Memory Issue
- From: "Jason.Herald@xxxxxxxxx" <Jason.Herald@xxxxxxxxx>
- Date: Thu, 14 Feb 2008 05:01:19 -0800 (PST)
On Feb 13, 5:54 pm, Mark Space <marksp...@xxxxxxxxxxxxxx> wrote:
Jason.Her...@xxxxxxxxx wrote:
Pass 1: (before gc) 231.4797 (after gc) 242.2315
Pass 2: (before gc) 232.2050 (after gc) 241.6035
Pass 3: (before gc) 231.8197 (after gc) 241.2478
First pass, memory went up. First time you use this object more memory
is needed. Second and third pass, memory use went down. So I don't see
that memory is increasing here. I don't think there are any errors in
the program.
Let this app run for a long time. Monitor it. Is it actually
increasing in memory use over the long haul? Do objects eventually time
out and get released and memory reclaimed? (Make sure your session
objects all time out.) Does the GC continue to run with increasing
frequency and less results? Do you eventually get an Out of Memory Error?
Need more info here. Looks ok to me.
Look up some debugging info for Java, especially JMX. Use that. Get
rid of the gratuitous call to the GC, it isn't needed.
I will post more passes (fyi the number is the current available
memory so it is going to go down).
If I let the app run for 20 minutes it runs out of memory.
And no there are no errors aside from the java.lang.OutofMemory
.
- Follow-Ups:
- Re: Memory Issue
- From: Mark Space
- Re: Memory Issue
- References:
- Memory Issue
- From: Jason.Herald@xxxxxxxxx
- Re: Memory Issue
- From: Mark Space
- Memory Issue
- Prev by Date: Re: Java Newbie challenge
- Next by Date: Re: Java with Windows CE
- Previous by thread: Re: Memory Issue
- Next by thread: Re: Memory Issue
- Index(es):
Relevant Pages
|
|