If you have to know and don't care about the performance impact you can
always do:
System.gc();
Runtime.freeMemory();
It's not pretty and I don't recommend doing it but it should give you
the answer you are looking for.
Mark
Charl Gerber wrote:
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 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 various timing
operations. If you turn
off things like development and autoDeploy, you can
reduce this
background activity, but you can never completely
eliminate it.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended
recipient. If you
received this in error, please contact the sender
and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]