This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Simple question" Watch "Simple question" New topic
Author

Simple question

Manny Garcia
Greenhorn

Joined: Apr 04, 2007
Posts: 28
I know that a java application has it's "sandbox" of memory allocated for it but what happens when an app uses up all of this memory? Does it freeze up, start using virtual memory, or something else?

Regards,

MG
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Usually the JVM throws an OutOfMemoryError.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Simple question
 
Similar Threads
object references and memory space requirements
Concurrent user testing - File Upload
Java Heap Space Error, OutofMemory Exception while writing large data to excel sheet.
WA #1.....word association
JVM memeory allocation