File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory Leakage

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic