This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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!