Can the JVM recover from an OutOfMemoryError without a restart
        Posted  
        
            by askullhead
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by askullhead
        
        
        
        Published on 2010-06-17T00:45:53Z
        Indexed on 
            2010/06/17
            2:32 UTC
        
        
        Read the original article
        Hit count: 347
        
- Can the JVM recover from an OutOfMemoryError without a restart if it gets a chance to run the GC before more object allocation requests come in? 
- Do the various JVM implementations differ in this aspect? 
EDIT: My question was about the JVM recovering and not the user program trying to recover by catching the error. In other words if an OOME is thrown in an application server (jboss/websphere/..) do I have to restart it? Or can I let it run if further requests seem to work without a problem.
Sorry if that wan't clear.
© Stack Overflow or respective owner