Projects tigase _server server-core Issues #1280
Improve handling of OOMs (#1280)
wojciech.kapcia@tigase.net opened 3 years ago

Currently when the OOM happens, the functioning of the server would most likely be severely impacted (i.e. it won't be working properly in one way or another). What's more, usually ConnectionManagers would not be impacted in the sense they would still be listening on the ports (and accepting simple network connections), thus external monitoring tools may be unaware that something is off.

One solution would be to configure JVM with -XX:OnOutOfMemoryError option that would kill the process thus forcing the restart, but that conflicts with -XX:+HeapDumpOnOutOfMemoryError option, which is quite useful for the purpose of troubleshooting.

Alternatively try {} catch (OutOfMemoryError oome) { TigaseRuntime.getTigaseRuntime().shutdownTigase(…) } could be used with delayed shutdown and OOME re-thrown.

wojciech.kapcia@tigase.net batch edited 7 months ago
Name Previous Value Current Value
Iterations
empty
Candidate for next minor release
issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Version
Candidate for next minor release
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/server-core#1280
Please wait...
Page is in error, reload to recover