RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Charl Gerber
> Concurrent GC are in use. You can try to force a > garbage collection, > but that's a rather expensive action to take just to > see a number. If you do it maybe once or twice a day, it will be ok... purely to (initially) determine the memory requirements of the webapps. > > - Chuck > > >

RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Caldarale, Charles R
> From: Charl Gerber [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat and Runtime.freeMemory() > > So there is no way to determine how much memory you > *really* have free? The base of the sawtooth shown by a heap profiler is it. Programattically, it can be a bit tricky when capab

Re: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Charl Gerber
> > <[EMAIL PROTECTED]> wrote: > > > > > >>>From: Charl Gerber [mailto:[EMAIL PROTECTED] > > >>>Subject: Tomcat and Runtime.freeMemory() > >>> > >>>But why does the free memory not remain > consistant > >> > >

Re: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Mark Thomas
ermine how much memory you *really* have free? --- "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: From: Charl Gerber [mailto:[EMAIL PROTECTED] Subject: Tomcat and Runtime.freeMemory() But why does the free memory not remain consistant if there is no server activity?

RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Charl Gerber
So there is no way to determine how much memory you *really* have free? --- "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Charl Gerber [mailto:[EMAIL PROTECTED] > > Subject: Tomcat and Runtime.freeMemory() > > > > But why does the free mem

RE: Tomcat and Runtime.freeMemory()

2005-06-14 Thread Caldarale, Charles R
> From: Charl Gerber [mailto:[EMAIL PROTECTED] > Subject: Tomcat and Runtime.freeMemory() > > But why does the free memory not remain consistant if > there is no server activity? There is _always_ some server activity, if for nothing else than listening for comm traffic and

Tomcat and Runtime.freeMemory()

2005-06-14 Thread Charl Gerber
In a follow-up to my previous thread, I have now made a small jsp that prints the free memory using Runtime.freeMemory(). This however runs down to 0 quite quickly with no users connected (just my one session) and then jumps up to somewhere about have the allocated memory runs down to 0 and ju