This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
K&B Exception Handling
garbage collection...
out of memory exception
Garbage collect from javaprepare.com Exam
java.lang.OutOfMemoryError