• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

heap size vs memory usage

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic