[Enhancment] Add headroom for the container #9

Closed
opened 2026-02-05 16:38:43 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @MiguVT on GitHub (Jan 13, 2026).

Currently the server use the full ram, making it crash because out of memory, fix it giving a little of headroom like 1GB or 512MB

Originally created by @MiguVT on GitHub (Jan 13, 2026). Currently the server use the full ram, making it crash because out of memory, fix it giving a little of headroom like 1GB or 512MB
Author
Owner

@MiguVT commented on GitHub (Jan 13, 2026):

here is an example part that I removed 1024MB it could also be made as a variable and adjustable

if [ -n "${SERVER_MEMORY}" ] && [ "${SERVER_MEMORY}" -gt 1024 ] 2>/dev/null; then
    JAVA_MEMORY=$((SERVER_MEMORY - 1024))
    JAVA_CMD="${JAVA_CMD} -Xms${JAVA_MEMORY}M -Xmx${JAVA_MEMORY}M"
fi
@MiguVT commented on GitHub (Jan 13, 2026): here is an example part that I removed 1024MB it could also be made as a variable and adjustable ```bash if [ -n "${SERVER_MEMORY}" ] && [ "${SERVER_MEMORY}" -gt 1024 ] 2>/dev/null; then JAVA_MEMORY=$((SERVER_MEMORY - 1024)) JAVA_CMD="${JAVA_CMD} -Xms${JAVA_MEMORY}M -Xmx${JAVA_MEMORY}M" fi ```
Author
Owner

@MrLuckyGamer commented on GitHub (Jan 13, 2026):

Just set your ram yourself in your panel

@MrLuckyGamer commented on GitHub (Jan 13, 2026): Just set your ram yourself in your panel
Author
Owner

@MiguVT commented on GitHub (Jan 13, 2026):

Just set your ram yourself in your panel

Ik we set it but the container have a overhead making it go out of memory

@MiguVT commented on GitHub (Jan 13, 2026): > Just set your ram yourself in your panel Ik we set it but the container have a overhead making it go out of memory
Author
Owner

@NATroutter commented on GitHub (Jan 13, 2026):

Are you using pelican or pterodactyl ?

@NATroutter commented on GitHub (Jan 13, 2026): Are you using pelican or pterodactyl ?
Author
Owner

@MiguVT commented on GitHub (Jan 13, 2026):

Are you using pelican or pterodactyl ?

pterodactyl

@MiguVT commented on GitHub (Jan 13, 2026): > Are you using pelican or pterodactyl ? pterodactyl
Author
Owner

@NATroutter commented on GitHub (Jan 13, 2026):

it should be now fixed in the newest release
update your egg and reinstall the server

@NATroutter commented on GitHub (Jan 13, 2026): it should be now fixed in the newest release update your egg and reinstall the server
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/egg-hytale#9