OutOfMemoryError is caught by Hazelcast threads, this method is called for ALL HazelcastInstances knows by current JVM (actually ClassLoader). User can shutdown HazelcastInstance, call System.exit(), just log the error etc. Default handler tries to close socket connections to other nodes and shutdown HazelcastInstance.
Warning: OutOfMemoryHandler may not be called although JVM throws OutOfMemoryError. Because error may be thrown from an external (user thread) thread and Hazelcast may not be informed about OutOfMemoryError.
@see OutOfMemoryHandler#inactivate(HazelcastInstance) @see OutOfMemoryHandler#tryCloseConnections(HazelcastInstance) @see OutOfMemoryHandler#tryStopThreads(HazelcastInstance) @see OutOfMemoryHandler#tryShutdown(HazelcastInstance) @param oom OutOfMemoryError thrown by JVM @param hazelcastInstances All HazelcastInstances known by JVM,can include inactive or NULL instances. | |
| |
| |
| |