snowride icon indicating copy to clipboard operation
snowride copied to clipboard

Memory leak. Reloading project increases ram usage.

Open Nyral opened this issue 6 years ago • 3 comments

I've tried reloading a large project several times. After the 5th time, the java app was using around 6GB of memory. This bug is also present in RIDE. I'm curious if you can fix it.

Nyral avatar Jun 24 '19 18:06 Nyral

It's possible it's a true memory leak but it's also possible that the JVM is just not releasing free memory. Could you please try running Snowride with java -XX:+UseG1GC -XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10 -Xmx2g -jar snowride-1.8-jar-with-dependencies.jar and tell me if Snowride limits itself to 2 GB, regardless of how many times you reload the project?

Soothsilver avatar Jun 24 '19 18:06 Soothsilver

@Soothsilver It limits itself to 2GB with that.

Nyral avatar Jun 24 '19 19:06 Nyral

Good, then I think it's fine. Although maybe Snowride should launch itself with those JVM parameters by default or add an option for this, because most users won't want to add custom parameters into a launcher.

Soothsilver avatar Jun 24 '19 19:06 Soothsilver