Java crash using ./AIOpsManagement.sh --exportImages
search cancel

Java crash using ./AIOpsManagement.sh --exportImages

book

Article ID: 281373

calendar_today

Updated On: 03-28-2024

Products

DX Application Performance Management

Issue/Introduction

I am tring to save all the images on a folder to provide them to my company to load on the Company Registry

command:

./AIOpsManagement.sh --exportImages

But I fail with the following error:

[0.023s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /dxi-installer/hs_err_pid1.log

Resolution

Use an updated podman/docker release 

Additional Information

Another issue is running out of temporary space. Simply change to another directory 

Podman 4.x temporarily stores the data when pulling and building the image and this location is defined by the parameter imageCopyTmpDir


# podman info | grep imageCopyTmpDir  imageCopyTmpDir: /var/tmp

This can temporarily be changed by running the below command,


# export TMPDIR=/var/tmp/testdir

Note that /var/tmp/testdir is mentioned as an example. Any location can be specified as per the requirement.
- To permanently change the location, a parameter needs to be added in /usr/share/containers/containers.conf file under [engine] section.


[engine]env = ["TMPDIR=/var/tmp/testdir"]

Verify the same from # podman info


[root@<host> ~]# podman info | grep imageCopyTmpDir  imageCopyTmpDir: /var/tmp/testdir

Note: This change applies for all the users(root and rootless) in the host.