You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2024/08/12 21:06:00 UTC

[jira] [Created] (CASSANDRA-19831) JVMStabilityInspector error message reports a msg with 'heap' when OOM occurs with with direct buffer memory

Brad Schoening created CASSANDRA-19831:
------------------------------------------

             Summary: JVMStabilityInspector error message reports a msg with 'heap' when OOM occurs with with direct buffer memory 
                 Key: CASSANDRA-19831
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19831
             Project: Cassandra
          Issue Type: Task
            Reporter: Brad Schoening


When we see Direct buffer memory errors, the JVMStabilityInspector appears to suggest it's a heap OOM.  This can confuse users who think that increasing the heap may help solve the problem. A vendors support staff suggested increasing the heap in this scenario.

A more clear error message could be something like:

Off-heap OOM will forcing heap space OutOfMemoryError after OutOfMemoryError: Direct buffer memory
{quote}2024-08-01 17:00:00,16 [ERROR] [Messaging-EventLoop-3-6] cluster_id=001 ip_address=172.0.0.1  JVMStabilityInspector.java:151 - Force heap space OutOfMemoryError in the presence of
java.lang.OutOfMemoryError: Direct buffer memory
  at java.base/java.nio.Bits.reserveMemory(Bits.java:175)
  at java.base/java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118)
  at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:318)
  at org.apache.cassandra.utils.MerkleTree.allocate(MerkleTree.java:742)
  at org.apache.cassandra.utils.MerkleTree.deserializeOffHeap(MerkleTree.java:780)
{quote}
The comment in the code is clear, but 
{quote}  /**
     * Intentionally produce a heap space OOM upon seeing a non heap memory OOM.
     * Direct buffer OOM cannot trigger JVM OOM error related options,
     * e.g. OnOutOfMemoryError, HeapDumpOnOutOfMemoryError, etc.
     * See CASSANDRA-15214 and CASSANDRA-17128 for more details
     */
{quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org