OpenJDK 'not enough space' during update

Infos:

  • Used Zammad version: 6.1.0
  • Used Zammad installation type: package
  • Operating system: Debian 10
  • Browser + version: not relevant

Expected behavior:

  • Zammad update runs without any errors.

Actual behavior:

# Configuring Elasticsearch...
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8413773824 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /var/log/elasticsearch/hs_err_pid2395.log
error:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005ca800000, 8413773824, 0) failed; error='Not enough space' (errno=12)
	at org.elasticsearch.tools.launchers.JvmOption.flagsFinal(JvmOption.java:119)
	at org.elasticsearch.tools.launchers.JvmOption.findFinalOptions(JvmOption.java:81)
	at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:38)
	at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:135)
	at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:86)
-> removing [ingest-attachment]...
-> Installing ingest-attachment
-> Downloading ingest-attachment from elastic
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.security.SecurityPermission createAccessControlContext
See https://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

-> Installed ingest-attachment
-> Please restart Elasticsearch to activate any plugins installed

Elasticsearch is running and seems to work, so maybe this is nothing to worry about—I still wanted to post it here, just in case anyone. Anything else I should check?

Hmm don’t know.
free -h to that moment the issue came up could have been interesting.

I know, too late, but:

              total        used        free      shared  buff/cache   available
Mem:           31Gi        19Gi       728Mi       676Mi        11Gi        11Gi
Swap:            0B          0B          0B

Again when upgrading to a newer 6.1 I got the same error today.

Unpacking zammad (6.1.0-1701845240.5a81e629.buster) over (6.1.0-1700492762.96ac5a60.buster) ...

Will let you know if that also comes up when upgrading to 6.2 later this week…

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.