Heap size compressed ordinary object pointers – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-2.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch is unable to allocate the specified heap size or when the JVM is unable to use compressed ordinary object pointers. This could be due to insufficient system memory or incorrect JVM settings. To resolve this, you can try increasing the system memory or adjusting the JVM settings. Ensure that the heap size is less than 50% of your total physical RAM and that the JVM is configured to use compressed ordinary object pointers. Also, check for any memory leaks in your application that could be consuming excessive memory.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” heap size [{}]; compressed ordinary object pointers [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: .

Log Context

Log “heap size [{}]; compressed ordinary object pointers [{}]” classname is NodeEnvironment.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

    private void maybeLogHeapDetails() {
        JvmInfo jvmInfo = JvmInfo.jvmInfo();
        ByteSizeValue maxHeapSize = jvmInfo.getMem().getHeapMax();
        String useCompressedOops = jvmInfo.useCompressedOops();
        logger.info("heap size [{}]; compressed ordinary object pointers [{}]"; maxHeapSize; useCompressedOops);
    }

    /**
     * scans the node paths and loads existing metadata file. If not found a new meta data will be generated
     */

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Get expert answers on Elasticsearch/OpenSearch