system-memory-objects

Retrieves information about objects allocated in JVM off-heap memory.

Command properties

PropertyDescription
Command typeDriver query
Required permissionNone
License usageNot counted
Parallel executionNot supported
Distributed executionNot supported

Syntax

system-memory-objects

Options

None

Output fields

FieldTypeDescription
typestringMemory type. Always returns offheap.
namestringName of the object allocated in off-heap memory
usinglongMemory size currently used by the object (unit: bytes)

Error codes

Parsing errors

N/A

Runtime errors

N/A

Description

The system-memory-objects command retrieves the names and memory usage of objects allocated in JVM off-heap memory (outside the JVM heap). Logpresso uses off-heap memory to reduce JVM heap pressure when processing large volumes of data.

Examples

  1. Retrieve all off-heap memory objects

    system-memory-objects
    

    Retrieves the names and memory usage of all objects allocated in off-heap memory.

  2. Sort by memory usage

    system-memory-objects | sort -using
    

    Sorts objects from highest to lowest memory usage.

  3. Sum total off-heap memory usage

    system-memory-objects | stats sum(using) as total_offheap_bytes
    

    Calculates the total off-heap memory usage across all objects.