Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Out of Memory Exception

 
Sushil Sharma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic