Job for opensearch.service failed because the control process exited the error code

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!

1. Describe your incident:
Installing graylog on Ubuntu 64-bit Arm and ran into an issue. Any help with be very much appreciated

System is a Mac Studio M1 Chip running VMware
This is what I get: sudo systemctl start opensearch
Job for opensearch.service failed because the control process exited the error code.
See “systemctl status opensearch.service” and “journalctl -xeu opensearch.service” for details

systemctl status opensearch.service = (code=exited, status=1/FAILURE)
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.

journalctl -xeu opensearch.service = Main process exited, code=exited, status=1/FAILURE

2. Describe your environment:

  • OS Information: System is a Mac Studio M1 Chip running VMware running Ubuntu 64-bit Arm Server 23.03 lunar

  • Package Version:

java version: openjdk version 17.0.7
java installed directory: /usr/lib/jvm/java-17-openjdk-arm64/bin/java
mongo version: 6.0.7
Ubuntu 23.04 lunar

  • Service logs, configurations, and environment variables:
    Clean OS install

3. What steps have you already taken to try and solve the problem?
Google - could not find anything

I’m following the directions from How to Install Graylog on Ubuntu and around 7:05 is where I’m at.

4. How can the community help?

Hey @Nate

How much memory do you have for this instance?

The VM unit has 9G of RAM

sudo nano /etc/opensearch/jvm.options

-Xms512m
-Xmx1024m

-Xms1g: 512m
-Xmx1g: 1024m

Made the change for both to
-Xms1g
-Xmx1g
And it’s working!

Hey @Nate Awesome :+1:

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