开发者

Windows Task Manager shows process memory keeps growing even though there are no memory leaks

My application keeps consuming more and more memory as seen in the Windows Task Manager and eventually crashes due to OutOfMemory. However when i check for leaks using MemoryValidator (from www.softwareverify.com) no leaks 开发者_开发问答are detected. Why is this happening?


Just because there is a growing amount of memory usage doesn't mean it is necessarily 'leaking'. You could simply be accumulating a large number of live objects and/or very large ones (containing lots and lots of data).

If you can provide more information about what language(s) you are using and what the application is doing I can perhaps help out with some more specific information!

UPDATE AS PER COMMENTS Well, you'll just want to make sure the garbage collection is happening correctly. I'd suggest the libgc library to help with that perhaps. http://developers.sun.com/solaris/articles/libgc.html

The only other thing I could think of as being the cause of this is that you are maintaining references to the objects somewhere unintentionally so they are just piling up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜