Page MenuHomeSchine - Phabricator

Starmade | Server allocating too much memory
Closed, InvalidPublic

Description

When starting a server on debian 7 and 8 it allocates 21.0GB of memory, regardless of how much you declare as the Java xmx. This is a problem because the swap of a machine is filled very quickly.
Once the swap is used StarMade never stops using it until you restart the server, causing huge performance issues.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
none/unspecified
Reproducible
Yes
Last tested (version)
0.199.152
Category
none/unspecified
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
Steps to reproduce

Start StarMade server from command line, use a tool like htop to check VIRT memory allocation.

Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>
Java Version (64bit)

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Event Timeline

lancake assigned this task to AndyP.Aug 22 2016, 12:36 PM
AndyP shifted this object from the S1 Public space to the S3 Starmade space.Aug 22 2016, 8:46 PM
AndyP changed the visibility from "Custom Policy" to "Public (No Login Required)".
AndyP changed the edit policy from "Task Author" to "Starmade (Project)".
AndyP moved this task from New / Unconfirmed to Feedback on the Issue Navigation board.

-Feedback-

Okay, there is some overhead in the JVM, but several GB over the set limit is unusual, and may be not physical memory being used, but rather swap memory that for some reason exceeds the size of our testserver by several times.

What are the exact memory arguments passed to the server?
(xmx, and xms value)

java -Xms4608M -Xmx8704M -jar StarMade.jar -server

AndyP added a comment.Aug 23 2016, 9:17 PM

please try proper powers of 2 for the values.

xms2048M and Xmx8192
would be good values.

Any non-power of too can cause issues in the behaviour of the memory mangement and overshoot to the next power of two.

AndyP changed the task status from Open to Feedback.Feb 21 2017, 8:53 PM
Restricted Application added a project: Waiting on Author. · View Herald TranscriptFeb 21 2017, 8:53 PM
AndyP closed this task as Invalid.

-Invalid-

Problem solved by increasing available ram.
Not the optimal solution but worked.

AndyP moved this task from Unclassed to Archived on the Starmade board.Mar 29 2017, 1:26 PM