View a heapdump file?

I have a tomcat application (running on JDK 1.4.2) that is producing a heapdump file. It's probably an OutOfMemory Error but...What tool can I use to analyze a 1.4.2 heapdump file? I would really like to know how many objects of class X are currenly in the system etc.Thanks
[296 byte] By [SamOttoa] at [2007-11-26 16:37:04]
# 1

What do you mean by a "heapdump file? If the file is named java_pid<pid>.hprof then it will be a heap dump generated when OutOfMemoryError is thrown (but you'd need a special switch to make that happen). If this is the file then jhat (from Java SE 6), HAT, and some of the commerical profilers support that format. Alternatively, maybe you mean a core file or error log. Can you say what the name of the file is (and which operating system)?

alan.batemana at 2007-7-8 23:02:02 > top of Java-index,Core,Monitoring & Management...
# 2
Alan,Even I want to extract head dump on Linux.How do I do it? I want to take a head dump of tomcat process on linux .I have Optimize IT. Will this be able to analyze the dump file that I obtain?Thanks.
Thotaa at 2007-7-8 23:02:02 > top of Java-index,Core,Monitoring & Management...