Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anyone have any ideas how to solve a memory leak that is not in the heap?

 
Yar lag
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a java process running as a server here on linux. The problem is, the VIRT usage of this process is ever growing. And eventually the linux system runs out of SWAP and the system dies. However, the profiler shows that

1) The number of threads does not grow
2) The heap usage does not grow

I'm at a lost as to what is using all that memory outside of heap. Any ideas what might be the cause and what tools I might be able to use?
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use any native call in your application? That can cause problems like that.
 
Angel Taveras
Ranch Hand
Posts: 84
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Do you have too much static data in the application? because that memory it's only recovered when the class that owns the static data
it's unloaded from the classloader

Regards,
 
Yar lag
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the suggestions! But no, I don't have static data and no native calls. Any ideas? Maybe some tools that I can use?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic