Page MenuHomeSchine - Phabricator

Starmade | Memory Leak, Game taking more then JVM specified during Normal Gameplay
Closed, DuplicatePublic

Description

I am uncertain why, but Starmade takes all of my systems available memory, despite that I have it set to only 4 GB. (Up to 5.5 GB and beyond, I only have 8 available to my system.) I assume a lot of it is unmanaged in that the Java Runtime has no control over it, hence the reason it goes over the 4 GB limit set by JVM.

OS: Arch Linux x64 (Possibly OS specific)

On a side note: I am also experiencing a SigSegV every once in a while, which could also very well be from unmanaged code too.

Edit: I have not tested Single Player, am unsure if it is affected.

Details

Task Type
Bug
Testing Results
Affected Gamemode(s)
Multiplayer
Reproducible
Yes
Last tested (version)
0.199.402
Category
Engine
Hardware/Software/System
OS-Specific
No
Hardware-Specific
No
Video Card Vendor
uncertain
User/Reporter/Contact
Username on Registry
Sunkin351
Serverconfig (server.cfg)
<replace this line with the file content>
Clientconfig (settings.cfg)
<replace this line with the file content>

Event Timeline

17joshuanewcomb updated the task description. (Show Details)

I would definitely say that there is some memory leakage to the game. (Possibly) Unless it was your desire to keep some assets loaded when exiting a game to the main menu, in which case, that's fine. I try to load onto a server with a newly started instance of StarMade, my connection lags out, I'm back to the Main Menu, and suddenly it had gone from 500Mb to 1.5GB.

And every time I suffer an EOFException from bad connection on trying to connect, its using another 100-200Mb for nothing. Could you guys work on solving this?

17joshuanewcomb renamed this task from Possible Memory Leak, Game taking 5.5+ GB during Normal Gameplay to Memory Leak, Game taking more then JVM specified during Normal Gameplay.Jan 20 2017, 5:17 PM
SmilingDemon shifted this object from the S1 Public space to the S3 Starmade space.Jan 24 2017, 8:03 PM
SmilingDemon changed the visibility from "Custom Policy" to "Public (No Login Required)".
SmilingDemon changed the edit policy from "Task Author" to "Starmade (Project)".
SmilingDemon changed Category from none/unspecified to Engine.
SmilingDemon claimed this task.
SmilingDemon triaged this task as Normal priority.

-Feedback-

if you exit the game and restart through the launcher .. the memory is free again .. right ?
its only gobbling up memory when going back to the main menu and in game again?

Sorry for the delayed response, system drive started failing.

And yes, The memory leak is session specific.

AndyP added a subscriber: AndyP.Feb 1 2017, 10:34 PM

Well, slightly going over the maximum memory is part of measurement errors, but it should not go far beyond that.

By the way:
Leaving a game and joining a new one via main menu, does cause leaks and is known to cause trouble if jumping between games without proper restart of the game.
(We will address that, but takes quite a while to find all of those problems.)

Can you please upload a logstarmade.0.log from your starmade/logs directory, right after starting the game?
(This allows checking the actual startup parameters, and may reveal system override settings, that could influence that)

  • Andy

I am afraid that this leak can and has gone above JVM specified in a single game as well, not going back to the main menu at all. But sure, I will give you a log file of me playing for hours.

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
Restricted Application added projects: Waiting on Author, Engine. · View Herald TranscriptMar 10 2017, 5:41 PM
lancake claimed this task.

-rejected-

Going to main menu and back in-game several times in the same session will indeed result in a memory build up, although that should steadily decline after a while but usually at a too slow pace to help.
Frequently alt tabbing can make the GC go lazy too often and could also take a while for it to recover completely.

That doesn't exclude that there isn't a memory build up from some leak though, the test server recently had it run out of memory which needs to analyzed yet.
If it can't be fixed then, I'll make a new task about it. For now, I'll merge this one into the older task and update it a bit, if you have any extra useful information, leave it there.

Restricted Application edited projects, added Customer responded; removed Waiting on Author. · View Herald TranscriptJun 14 2017, 3:07 PM
Restricted Application changed the task status from Feedback to Open. · View Herald Transcript
Restricted Application removed a subscriber: AndyP. · View Herald Transcript
AndyP moved this task from Unclassed to Archived on the Starmade board.Jul 20 2017, 10:46 PM