arcadedb
arcadedb copied to clipboard
Arcade does not start properly on M1 Mac
ArcadeDB Version: 22.2.1
JDK Version: 11.0.13_8
OS: MacOS 12.4 Apple M1 Pro
Expected behavior
I wanted to start the docker image of arcadedb on an M1 Mac. The Image starts normally and I can access the studio with port 2480.
Actual behavior
The image just fills the ram till the docker limit and gets killed by the oom killer (exit code 137). I tried to build the image with an arm linux image. That was successful but when i tried to start the image it just prints that I need to set the root password or use the generated one. This message gets printed every second. Setting the env vars does not seem to change this behaviour.
I use the following compose file to start the arcadedb:
---
version: '3.7'
arcadedb:
image: arcadedata/arcadedb:22.2.1
container_name: relate-arcade
restart: 'no'
environment:
arcadedb.server.defaultDatabases: 'Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}'
arcadedb.server.rootPassword: 'playwithdata'
ports:
- '127.0.0.1:2480:2480'
- '127.0.0.1:2424:2424'
Steps to reproduce
On an M1 Mac just use the docker compose file above. The ram gets filled and the application will be terminated with exit code 137.
I guess with M1 the docker-compose uses, by default, some settings with smaller RAM. @arcade-player any idea about how to increase the RAM?
Our docker image is targeted to amd64, we don't provide an arm64 or multiplatform one. AFAIU, such images are executed in emulation mode and I don't really know what can go wrong in this case. The idea is to enhance our build pipeline to emit a multiplatform image. I'm going to open a dedicated issue for that and link it here
#412
Alright thanks for creating the issue.
I've found a solution. Has still a problem no more related with CPU arch. I'll open PR in a couple of days.
please, read this comment https://github.com/ArcadeData/arcadedb/pull/455#issuecomment-1192977710
closing: pr is merged