tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat and Runtime.freeMemory()
Date Tue, 14 Jun 2005 16:48:03 GMT
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"
> <Chuck.Caldarale@unisys.com> wrote:
> 
> 
>>>From: Charl Gerber [mailto:charlgerber@yahoo.com] 
>>>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:
>>tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message