Elasticsearch crash after minutes

  • Used Zammad version: 3.2
  • Used Zammad installation source: Package
  • Operating system: Ubuntu 18.4
  • Browser + version: Firefox 72

### Expected behavior:

● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-02-22 11:19:46 CET; 35s ago
Docs: http://www.elastic.co
Process: 417 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=127)
Main PID: 417 (code=exited, status=127)
Tasks: 0 (limit: 105)
CGroup: /system.slice/elasticsearch.service

Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.lang.Thread.start0(Native Method)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.lang.Thread.start(Thread.java:799)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:937)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1005)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Feb 22 11:19:45 h2865221.stratoserver.net elasticsearch[417]: at java.base/java.lang.Thread.run(Thread.java:830)
Feb 22 11:19:46 h2865221.stratoserver.net systemd[1]: elasticsearch.service: Main process exited, code=exited, status=127/n/a
Feb 22 11:19:46 h2865221.stratoserver.net systemd[1]: elasticsearch.service: Failed with result ‘exit-code’.

Actual behavior:

Steps to reproduce the behavior:

Hi,
after start and search something in Zammad the Elasticsearch Service crashes
Anyone can help about this?

greats
Peter

fresh installed?

check your elasticsearch version… 3.2 zammad is only supported 7.5.x elasticsearch version…

try to find other titorial how to installed 7.5 es then installed again zammad…

if you follow official documentation its lead you to install es 7.6 version

Rather looks like you don’t have enough memory available.

Provide more information about the machine you have there and if you followed the documentation step by step without changing one of those steps.

elasticsearch version is 7.5 now

The server have 16 gb ram

i have set in the etc/elasticsearch/yvm.options -Xms4g -Xmx4g and ulimit -u is 62987

any ideas?

Is the log output the same or did it change…?

yes. log output still the same.
I think I haven’t set the right limits but down know how

    indent preformatted text by 4 spaces
    :/etc/systemd/system/elasticsearch.service.d$ sudo systemctl status elasticsearch
    elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/elasticsearch.service.d
       └─override.conf
    Active: failed (Result: exit-code) since Thu 2020-02-27 22:52:25 CET; 10s ago
      Docs: http://www.elastic.co
    Process: 1791 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p           ${PID_DIR}/elasticsearch.pid --quiet (code=exited, statu
Main PID: 1791 (code=exited, status=127)
Tasks: 0 (limit: 105)
  CGroup: /system.slice/elasticsearch.service

 Feb 27 22:51:14.stratoserver.net systemd[1]: Starting Elasticsearch...
 Feb 27 22:51:14.stratoserver.net elasticsearch[1791]: OpenJDK 64-Bit Server VM warning: Option      UseConcMarkSweepGC was d
 Feb 27 22:51:29.stratoserver.net systemd[1]: Started Elasticsearch.
 Feb 27 22:52:25.stratoserver.net systemd[1]: elasticsearch.service: Main process exited, code=exited, status=127/n/a
 Feb 27 22:52:25.stratoserver.net systemd[1]: elasticsearch.service: Failed with result 'exit-code'

Please provide the elasticsearch.log from the moment you’re starting ES until it crashes. The reason will be living inside that logfile.

Thanks.
I was able to solve the problem. On the Strato Server I couldn’t set the vm.max_map_count = 262144
After changing the server it works.

1 Like

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