This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Memory Leakage  RSS feed

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is memory leakage possible in Java? If yes, can you describe a case in which memory leaks may occur, and do you know a way to avoid that?

Thank you
 
Vijay Dogra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Well there is one such case where in you call using JNI code. In the called code you forget to cleanup. In that case there is memory leakage.
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vallabhaneni Suresh Kumar:
Is memory leakage possible in Java? If yes, can you describe a case in which memory leaks may occur, and do you know a way to avoid that?

Thank you


First of all, you have to be clear in saying what you mean by "memory leakage". Do you mean to say that, memory not being deallocated by JVM/garbage collector hasnt collected unused objects and released memory?
If yes, this is the right link foryou. Java World Memory Link Q & A
[ September 30, 2005: Message edited by: Sripathi Krishnamurthy ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!