• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory leak

 
Mariya Antony christopher
Ranch Hand
Posts: 49
Hibernate Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

config.JPG
Tomcat 6.6 screenshot
[Thumbnail for config.JPG]
 
ravi grk
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
Hibernate Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic