You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2017/10/17 21:27:02 UTC

[jira] [Commented] (BOOKKEEPER-1030) Better management of OutOfMemory errors

    [ https://issues.apache.org/jira/browse/BOOKKEEPER-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208366#comment-16208366 ] 

Ivan Kelly commented on BOOKKEEPER-1030:
----------------------------------------

Migrated to github https://github.com/apache/bookkeeper/issues/573

> Better management of OutOfMemory errors
> ---------------------------------------
>
>                 Key: BOOKKEEPER-1030
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-1030
>             Project: Bookkeeper
>          Issue Type: Wish
>          Components: bookkeeper-server
>    Affects Versions: 4.4.0
>            Reporter: Enrico Olivelli
>            Assignee: Enrico Olivelli
>            Priority: Critical
>              Labels: ghmigrated, iktriage0
>
> Some bookie in production run OutOfMemory and the Bookie became really unstable.
> 17-01-24-13-11-42 Unexpected exception while writing 0@91465 :
> 17-01-24-13-11-42 java.lang.OutOfMemoryError: Java heap space
> That error was inside "WriteEntryProcessorV3" class in a catch (Throwable ) clause.
> I'm running the Bookie inside a Java process not started with the "standard" scripts.
> My idea to handle this kind of errors is to add a global "System errors handler" to attach to any critical thread/operation and to pass any uncatched exception to it.
> In case of existing "catch Throwable" the code will call the system handler as well.
> Maybe we can provide a default implementation which only logs the error to the logger, a more invasive implementation which calls Runtime#halt.
> I'm trying in production with ExitOnOutOfMemoryError option but it does not give any chance to report the status of the JVM



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)