OutOfMemoryError Handleing ... "heap space"

Hello all,

I'm getting this java.lang.OutOfMemoryError, after I run a process... Normally, I can follow the stack dump to zero in exactly where these problems happen (as they are usually exceptions)

Does anyone havve any quick tips on handleing this type of thing when all I recieve for feedback is :

Exception in "Thread-3" java.lang.OutOfMemoryError "java heap space"

[395 byte] By [Curtis_Pastorea] at [2007-11-26 15:23:25]
# 1

You might try some of the external programs written to monitor java processes from the outside. They should allow you to take snapshots of memory usage and see what is building up.

Try googling for java, performance measurement, .....

In fact, I believe Sun ships some tools in the JDK. As I recall they were rather crude. Still...

bschauwejavaa at 2007-7-8 21:38:38 > top of Java-index,Java Essentials,Java Programming...
# 2

Ok I'll search around for something like that ...

any notes on what a "heap" is ... because I have gotten OutOfMemoryErrors before (where I was initializing something in an infinite loop) and it was a ... different kind of "OutOfMemoryError" ... like with a different supporting message. I can't recall exactly what it said... but I'm pretty sure it wasn't a "heap" thing

Curtis_Pastorea at 2007-7-8 21:38:38 > top of Java-index,Java Essentials,Java Programming...