Skip to content

[openj9+jdk21] OutOfMemoryError: native memory exhausted #23041

@looyo

Description

@looyo

My application is running in docker. It occurs OutOfMemoryError when creat new UnitOfWorkAwareProxyFactory repeatedly, but, there is 40% free memory in docker. How to obtain the value of MaxMetaSpace(I don't know what to call it in OpenJ9) ?

The following is part of javacore-dump:

/openj9jdk/jre/bin/java -Xms921m -Xmx3686m -Xdump:heap:events=systhrow+user,filter=java/lang/OutOfMemoryError,request=exclusive+prepwalk+compact,label=/home/dump/dump-2025-10-05-12-16-55.phd -Xdump:none -Xdump:system:events=gpf+abort+traceassert,range=1..0,priority=999,request=serial,label=/home/dump/core-dump-2025-10-05-12-16-55.%seq.dmp -Xdump:heap:events=systhrow,filter=java/lang/OutOfMemoryError,range=1..1,priority=500,request=exclusive+compact+prepwalk,label=/home/dump/dump-dump-2025-10-05-12-16-55.%seq.phd -Xdump:heap:events=user,priority=500,request=exclusive+compact+prepwalk,label=/home/dump/dump-dump-user-2025-10-05-12-16-55.%seq.phd -Xdump:java:events=systhrow,filter=java/lang/OutOfMemoryError,range=1..1,priority=400,request=exclusive+preempt,label=/home/dump/javacore-dump-2025-10-05-12-16-55.%seq.txt -Xdump:java:events=gpf+abort+traceassert+user,priority=400,request=exclusive+preempt,label=/home/dump/javacore-dump-2025-10-05-12-16-55.%seq.txt -Xdump:snap:events=systhrow,filter=java/lang/OutOfMemoryError,range=1..1,priority=300,request=serial,label=/home/dump/snap-dump-2025-10-05-12-16-55.%seq.trc -Xdump:snap:events=gpf+abort+traceassert,priority=300,request=serial,label=/home/dump/snap-dump-2025-10-05-12-16-55.%seq.trc -Xverbosegclog:/home/gclog/gc-2025-10-05-12-16-55.log,1,10000 -Xquickstart -Dfile.encoding=UTF-8 -Djava.locale.providers=COMPAT,CLDR -Xlp:objectheap:pagesize=4K -Xlp:codecache:pagesize=4K -XX:+UseContainerSupport --add-opens java.base/java.lang=ALL-UNNAMED -Xshareclasses:name=ZenapWarmCache,cacheDir=/sharedclasscache,readonly -Xgcpolicy:gencon -Xgcthreads4 application.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions