This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Memory leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Memory leak" Watch "Memory leak" New topic
Author

Memory leak

Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49

How to avoid memory leakage in Apache tomcat server6.0

Iam using tomcat 6.6
changed the following values
intial memory pool =256 MB &
maximum memory pool=1024 MB
by changing the values
is't possible to avoid memory leakage




[Thumbnail for config.JPG]

ravi grk
Greenhorn

Joined: Aug 19, 2009
Posts: 7
As per my experience memory leakage will avoid application coding level not by setting up the min and max memories.

It may help not sure. There are multiple scenarios for this.
Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49

ravi grk wrote:As per my experience memory leakage will avoid application coding level not by setting up the min and max memories.

It may help not sure. There are multiple scenarios for this.


How to implement in coding level
kindly suggest your comments
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
This http://wiki.apache.org/tomcat/MemoryLeakProtection may help. Do you already have an issue or jsut trying to avoid it in the future?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15661
    
  15

Memory doesn't "just leak". It takes a program bug to cause memory leaks. No amount of VM configuration tweaking will change that. To avoid memory leaks, don't hack and slash the fastest-cheapest code you can. Take the time and effort to do the job professionally.

Tomcat 6 does have its own way of "leaking memory", which is the infamous PermGenSpace problem. If you repeatedly deploy a webapp in Tomcat without restarting it, some of the old webapp's static resources are not freed up by Tomcat and eventually you will run out of PermGen memory, which is a distinct memory pool from the primary heap/stack space. As far as I'm concerned that one is a deficiency in Tomcat, but it's something that can be managed by restarting Tomcat when re-deploying, unlike application-bug memory leaks which can happen with little or no warning.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory leak
 
Similar Threads
How can I found which class and method has memory leakage?
Memory Leakage
Memory Leakage
Memory Leakage!
What is Memory Leakage