cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-218) exit if OOM occurs
Date Fri, 05 Jun 2009 15:46:07 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716648#action_12716648
] 

Jonathan Ellis commented on CASSANDRA-218:
------------------------------------------

attached fix as outlined.

> exit if OOM occurs
> ------------------
>
>                 Key: CASSANDRA-218
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-218
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jonathan Ellis
>         Attachments: 218.patch
>
>
> The drawbacks to continuing running (generating internal errors in strange places) outweigh
the benefits (maybe having the thread that OOM'd freed will allow us to serve some other requests
successfully).
> I'm guessing that adding if (e instanceof OOME) { system.exit() } in our DefaultUncaughtExceptionHandler
would do the trick.
> Only question is, would that happen before or after the XX:+HeapDumpOnOutOfMemoryError
gets to fire?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message