cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
Date Wed, 06 Apr 2016 11:57:25 GMT

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

Benjamin Lerer edited comment on CASSANDRA-9861 at 4/6/16 11:56 AM:
--------------------------------------------------------------------

The new patch try to use Sigar for retrieving the pid and default to parsing the JVM name
if Sigar is not initialized (which is the case on my machine).

It also tries to resolve the path to jmap from JAVA_HOME and default to jmap if the file cannot
be found.

After the heap as been dumped an heap histogram will be writting to the log file. 


was (Author: blerer):
The new patch try to use Sigar for retrieving the pid and default to parsing the JVM name
if Sigar is not initialized (which is the case on my machine).

It also try to resolve the path to jmap from JAVA_HOME and default to jmap if the file cannot
be found.

After the heap as been dumped an heap histogram will be writting to the log file. 

> When forcibly exiting due to OOM, we should produce a heap dump
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-9861
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9861
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Lifecycle
>            Reporter: Benedict
>            Assignee: Benjamin Lerer
>            Priority: Minor
>              Labels: lhf
>             Fix For: 2.2.x
>
>         Attachments: 9861-2.2-V2.txt, 9861-2.2.txt
>
>
> CASSANDRA-7507 introduced earlier termination on encountering an OOM, due to lack of
certainty about system state. However a side effect is that we never produce heap dumps on
OOM. We should ideally try to produce one forcibly before exiting.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message