Hi,

Thank you for your reply.

Yes we did a custom install on Tomcat6.  

No there wasn't any java processes running when we stopped Tomcat, so it
appears from the OS level to be shutting down, but it's not releasing the
memory space back to the OS.  

running the free command after stopping Tomcat shows all the memory still
being held:

# free
             total       used       free     shared    buffers     cached
Mem:       3921884    3326672     595212          0     317044    1528544
-/+ buffers/cache:    1481084    2440800
Swap:      2048152     316244    1731908


What I'm doing now is looking into the sysctl.conf parameters that will
flush the cache, sort of like Oracle.

Regards,

Marc Sweeney



Maurizio Rottin wrote:
> 
> 2009/5/28 msweeney <whiterockbi...@gmail.com>:
>>
>> Tomcat version 6
>> Apache 2.2.3
>> Centos 5.2
>> VMware 2.5
>> 2 VPU's
>> 4G Memory
>>
>> Guest Memory usage is on a avg 122 MB and Host Memory is at 3.31 G so we
>> know it's not the balloon driver.
>>
>> Problem statement:
>>
>> I understand as a SysAdmin that the JVM loves to grab all the memory
>> resources as it can, sort of like Oracle.  However when we stop and then
>> attempt to restart Tomcat it fails and the server needs to be restarted.
>> Also it seems that this memory is being held in the Linux Cache system
>> and
>> to release it we run the following:
>> echo 3 > /proc/sys/vm/drop_caches
> 
> tomcat6 is not included in Centos, then i assume you take source file
> from apache tomcat website.
> 
> If this is the case, when you stop tomcat, then you have to kill the
> process.
> try a "ps -ef | grep j" and you will probably see that java is still
> running.
> 
> if you are succesful in killing the process, then try to start tomcat.
> 
> -- 
> mr
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Centos-5-OS-not-releasing-memory-Tomcat6-tp23761076p23769904.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to