Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modpack with memory variables crashing #2496

Closed
jpcarpanezi opened this issue Nov 17, 2023 · 3 comments
Closed

Modpack with memory variables crashing #2496

jpcarpanezi opened this issue Nov 17, 2023 · 3 comments
Labels
discussion status/stale No recently activity has been seen and will be closed soon.

Comments

@jpcarpanezi
Copy link

jpcarpanezi commented Nov 17, 2023

Describe the problem

I'm trying to create a Minecraft server with the modpack "Create and Guns" from Curseforge. But, when creating the server i'm struggling with memory usage, because obviously with the default memory, server is having memory heap problems.

But when i use the variables INIT_MEMORY and MAX_MEMORY to define a higher usage, the server is crashing on final steps and i don't know why.

Container definition

version: "3.8"

services:
  mc:
    image: itzg/minecraft-server:java17-jdk
    ports:
      - "25565:25565"
    tty: true
    stdin_open: true
    environment:
      EULA: "TRUE"
      ONLINE_MODE: "FALSE"
      INIT_MEMORY: "4G"
      MAX_MEMORY: "6G"
      TYPE: "AUTO_CURSEFORGE"
      CF_MODPACK_ZIP: "/opt/create-and-guns.zip"
      CF_API_KEY: "MY-API-KEY"
      CF_SLUG: "create-and-guns"
    restart: unless-stopped
    volumes:
      - ./create-and-guns.zip:/opt/create-and-guns.zip
      - ./Structory_1.20.2_v1.3.3.jar:/downloads/Structory_1.20.2_v1.3.3.jar
      - ./data:/data
    container_name: curseforge

Container logs

/data/./run.sh: line 6:   434 Killed                  java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.2.1/unix_args.txt "$@"
@itzg
Copy link
Owner

itzg commented Nov 17, 2023

Can you set the following environment variable and provide the full startup logs?

  DEBUG_MEMORY: "true"

@jpcarpanezi
Copy link
Author

@itzg

[init] Memory usage and availability (in MB)
Linux 9821c131f184 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
              total        used        free      shared  buff/cache   available
Mem:           7961        2888        2730        1270        2342        3523
Swap:          2047        2047           0
[init] Setting initial memory to 4G and max to 6G

@itzg itzg added discussion and removed bug labels Nov 17, 2023
Copy link

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

@github-actions github-actions bot added the status/stale No recently activity has been seen and will be closed soon. label Dec 18, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion status/stale No recently activity has been seen and will be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants