tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Andress Martini <777u...@gmail.com>
Subject Re: Java.lang.out.of.memory not clearly....
Date Mon, 30 Jan 2012 16:44:34 GMT
2012/1/30, Luciano Andress Martini <777user@gmail.com>:
> 2012/1/30, Caldarale, Charles R <Chuck.Caldarale@unisys.com>:
>>> From: David kerber [mailto:dckerber@verizon.net]
>>> Subject: Re: Java.lang.out.of.memory not clearly....
>>
>>> Java can have memory leaks just as easily as C can
>>
>> Not really; leaks in C are much easier to create.
>>
>>> if the app is standalone, it will release them when the app
>>> closes and the JRE shuts down.
>>
>> That's true for C and any other language as well.
>>
>>> if the app is running under tomcat, the JRE never shuts down
>>> since tomcat is using it.  That means the JRE can not free up
>>> memory that your app has left allocated, as it would be able
>>> to in a standalone app.
>>
>> Although that's true, it's not really relevant.  Memory leaks in Java
>> occur
>> when some program logic hangs onto references it no longer needs (e.g., in
>> a
>> static HashMap).  These objects won't be discarded by the garbage
>> collector
>> since they are reachable - the program logic failed to remove them from
>> the
>> structure when it was done with them.  Restarting the webapp will release
>> these objects.
>>
>> The more subtle leaks that occur when reloading a webapp are typically
>> due
>> to references to the webapp's classes or classloader being held by some
>> component outside of the webapp, such as a shared logger.  Those are the
>> ones that require restart of Tomcat.
>>
>> Regardless, we still have no real evidence of what's going on at
>> Luciano's
>> site.
>>
>>  - 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: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> I am the maintainer of the Server nothing more.
> But you are helping me cause, now i have a response, and a prove that
> i am not the only that think this system can have a memory leak.
>

I am the maintainer of the Server nothing more.
But you are helping me cause, now i have a response, and a prove that
i am not the only that think this system can have a memory leak.

About the memory leak, I am saying that, not from a hour, but from the
Genesis time here. ehhehehe.

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


Mime
View raw message