Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

heap size vs memory usage  RSS feed

 
Rob Conklin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to find the source of a memory leak in a fairly large set of servlets running on Tomcat 4.1.18 on JDK 1.4.2_02
I am using optimizeIt to try and track it down, but I have run into an interesting problem. The java heap size in optimize it is running very steady at 58,980K, and doesn't seem to ever go above this. However, the java.exe process (on Windows XP) is slowly yet surely creeping up, until I run out of memory, then it crashes the java process. The java.exe process is currently using 416,488K, so it is a fairly significant gap between the two sets of numbers.

Any advise would be greatly appreciated.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sort of sounds like there are chunks of memory being grabbed outside the Java memory management system. Do these servlets do any image processing that might be holding graphics contexts - how about unreleased native method calls? unreleased database structures?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!