*
The moose likes Java in General and the fly likes Anyone have any ideas how to solve a memory leak that is not in the heap? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Anyone have any ideas how to solve a memory leak that is not in the heap?" Watch "Anyone have any ideas how to solve a memory leak that is not in the heap?" New topic
Author

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

Yar lag
Greenhorn

Joined: Apr 14, 2009
Posts: 10
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

Joined: Oct 21, 2008
Posts: 142
Do you use any native call in your application? That can cause problems like that.
Angel Taveras
Ranch Hand

Joined: Nov 13, 2008
Posts: 84

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

Joined: Apr 14, 2009
Posts: 10
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Anyone have any ideas how to solve a memory leak that is not in the heap?
 
Similar Threads
How to read memory usage for process running in Linux,
memory not releasing
Heap size and SoftReference
Excessive memory usage
java process memory and heap size