File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Out of Memory Exception

Sushil Sharma

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?

Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
which problem?
I agree. Here's the link:
subject: Out of Memory Exception
It's not a secret anymore!