System.exit(121) triggers a restart in Carbon. This was there in Carbon 4, but we can add it to Carbon 5 as well.
On Tue, May 10, 2016 at 2:18 PM, Srinath Perera <srin...@wso2.com> wrote: > +1, when server hits an issue it cannot recover and continue to work > meaningfully, it is best to shut down or restart. That approximate crash > failure behaviour ( which is a good thing). > > On Tue, May 10, 2016 at 11:40 AM, Ramith Jayasinghe <ram...@wso2.com> > wrote: > >> HI Azeez/Sameera, >> >> Having encountered some OOM issues (relating to HZ) I looked at what >> Hazelcast does in face of GC errors [1]. It will drop all connections, >> threads, and shuts it self down. >> >> Now, Think about one of our server's ( say MB) face a OOM and embedded HZ >> instance shuts it self down. I propose when this happens entire server >> should stop its processing intelligently ( if not shutting down). >> Rational is one of the sub-system in the server shutdown while other >> parts of the server don't care, which is wrong. As for MB, it tries to stop >> processing in a meaningful manner and I argue this should be something any >> server should do if they use HZ clustering. >> >> thoughts? >> >> >> [1] >> https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/instance/DefaultOutOfMemoryHandler.java >> >> -- >> Ramith Jayasinghe >> Technical Lead >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> E: ram...@wso2.com >> P: +94 772534930 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > ============================ > Srinath Perera, Ph.D. > http://people.apache.org/~hemapani/ > http://srinathsview.blogspot.com/ > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>* *email: **az...@wso2.com* <az...@wso2.com> * cell: +94 77 3320919blog: **http://blog.afkham.org* <http://blog.afkham.org> *twitter: **http://twitter.com/afkham_azeez* <http://twitter.com/afkham_azeez> *linked-in: **http://lk.linkedin.com/in/afkhamazeez <http://lk.linkedin.com/in/afkhamazeez>* *Lean . Enterprise . Middleware*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev