Re: Memory Issue



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
.



Relevant Pages

  • RE: Memory Error
    ... first time it shows the follwoing error message ... If you get Memory Cannot be read or written. ... Under General Tab clear your History, Internet Files and Cookies. ... You may have a bad RAM try to test your RAM by running Memtest by ...
    (microsoft.public.windowsxp.general)
  • Re: Getting started with SDK
    ... although I did have 'plenty' memory on it. ... > user launches the app, not just the very first time a program, or ...
    (microsoft.public.dotnet.general)
  • Re: Assembly.LoadFrom and machine restart
    ... Most probably your assembly is cached in memory by windows the first time, ... > dll xrt.dll for which I have not maintained versioning... ... > When I launch my application after a machine reboot (xrt.dll already ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Hardware Affect
    ... First time I ever saw somebody measure RAM in milligrams. ... RAM will only make visual effects faster if lack of memory was the ...
    (comp.os.linux.hardware)
  • Re: Advanced C
    ... Note that the topics are not necessarily mentioned the first time ... File I/O ... malloc/calloc/realloc/freeand detects access to a memory location after the allocated memory you own or, by option, access to memory which once belonged to you but has been freed. ... There are better tools but I was not aiming at making the students into professional programmers but give them a good overview over _possible_ tools -- I often had the revelation "oh, ...
    (comp.lang.c)