It's not a secret anymore!*
The moose likes Java in General and the fly likes Out of Memory Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Out of Memory Exception" Watch "Out of Memory Exception" New topic
Author

Out of Memory Exception

Sushil Sharma
Greenhorn

Joined: Nov 02, 2006
Posts: 22
I found an interesting difference between JVM on Windows vs SunOS.

I start java with a huge amount of memory say 1GB. I wrote a method which exhausts the heap. Interestingly Windows JVM throws OutOfMemoryException as soon as it runs out of heap space. Whereas on SunOS, it takes more than 15 seconds before getting OutOfMemoryException.

Has anyone seen this problem?

Thanks
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
which problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Out of Memory Exception
 
Similar Threads
garbage collection...
K&B Exception Handling
Garbage collect from javaprepare.com Exam
out of memory exception
java.lang.OutOfMemoryError