ArchaicQuest / ArchaicQuest-II

ArchaicQuest II :dragon: is a multiplayer text based RPG known as a Multi User Dungeon (MUD) that is playable from your browser.
https://www.archaicquest.com
MIT License
132 stars 22 forks source link

Potential Memory Leak #74

Closed ariesninjadev closed 1 year ago

ariesninjadev commented 1 year ago

I was attempting to run Archaic on 3 Repl.it projects, but the memory useage for building the client went up way too high and didn't work. Is there already a fix for this?

NaughtyMoleGames commented 1 year ago

Do you have any logs, or additional info? Clean build? Was this high memory usage only on the client build? Did you build it for production or development?

LiamKenneth commented 1 year ago

Hey I had a look, you don't start with much free memory and you have to run 2 projects to get it to work locally.

With just a simple hello world app you're almost using half the allocated ram

The .net project runs fine but even running the build for that exceeds the 512mb memory limit. With the web client I was hitting over 900mb with the .net project running and obviously the client build process gets killed.

To be honest there is nothing we can do to solve that, the client build is part of angular which uses webpack and is known to be a memory hog. Best to run it locally but if you can't you will need to use a service that gives you at least 1.5gb of ram

image

image