danwinkler / tacticshooter

tacticshooter.com
1 stars 0 forks source link

Horrible memory leak. #65

Closed danwinkler closed 11 years ago

danwinkler commented 11 years ago

memory usage spikes up to 2 gigs in 60 secs. Not sure if client or server

danwinkler commented 11 years ago

Turns out its not a memory leak, for some reason it's not doing a GC often enough.

danwinkler commented 11 years ago

The current fix is just telling the GC to run whenever memory usage gets too high. I really should cut down on the creation of new objects to lower how often the gc runs. right now the GC has to run every 20-30 secs