[jira] [Commented] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
[ https://issues.apache.org/jira/browse/CASSANDRA-9861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15270821#comment-15270821 ] Benjamin Lerer commented on CASSANDRA-9861: --- Thanks for the review. > 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: Bug > 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)
[jira] [Commented] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
[ https://issues.apache.org/jira/browse/CASSANDRA-9861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15268557#comment-15268557 ] Aleksey Yeschenko commented on CASSANDRA-9861: -- Looks all right to me. Only got some trivial syntactic nits, feel free to ignore them or change on commit: - in {{HeapUtils}} there is no need to wrap all the things in the try/catch block, only the two {{logProcessOutput()}} calls should be in the block - new lines incorrect/missing in {{getProceddIdFromJvmName()}} try/catch block > 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: Bug > 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)
[jira] [Commented] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
[ https://issues.apache.org/jira/browse/CASSANDRA-9861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222974#comment-15222974 ] Robert Stupp commented on CASSANDRA-9861: - Adding the jmap option to also print the heap histogram as proposed in CASSANDRA-9604 sounds like a good option. > 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.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)
[jira] [Commented] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
[ https://issues.apache.org/jira/browse/CASSANDRA-9861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222973#comment-15222973 ] Robert Stupp commented on CASSANDRA-9861: - There's {{org.hyperic.sigar.Sigar#getPid}} to get the process ID. Maybe we should use {{jmap}} from {{System.getProperty("java.home") + "/bin/jmap"}} (resp. {{jmap.exe}}) and only use {{map}}/{{jmap.exe}} as a fallback. > 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.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)
[jira] [Commented] (CASSANDRA-9861) When forcibly exiting due to OOM, we should produce a heap dump
[ https://issues.apache.org/jira/browse/CASSANDRA-9861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15204111#comment-15204111 ] Benjamin Lerer commented on CASSANDRA-9861: --- I guess the simplest way would be to use the {{-XX:+HeapDumpOnOutOfMemoryError}} command line argument to our startup scripts. > 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 >Reporter: Benedict >Priority: Minor > Labels: lhf > Fix For: 2.2.x > > > 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)