As stated in the title, I am consistently crashing on my server due to an out of memory error. I have tried to run a few test cases to figure out the problem and these have been my results so far:
Server will crash within +/- 1 minute after 60 minutes of runtime.
Doesn’t appear to be caused by client/server messages back and forth, crash is consistent whether 6 clients are connected and communicating thoroughly or if the server has had no clients connect the entire session.
Run time before crash is directly based on how much memory is allocated…if I double the memory, ~double the runtime before a crash, but that doesn’t seem like a solution and I feel like there’s some GC that can/should be getting done.
Details of error are as follows:
java.lang.OutOfMemoryError: Java heap space
I don’t see anything in the error referencing the main class specifically (ServerMain in this instance). I am a bit new to jmonkey and java in general, but am I correct in assuming the server is doing some sort of periodic update on all geometries in the scene, and this just happens to be the Nth iteration where a limit is reached?
Any thoughts/advice towards helping me understand the problem is greatly appreciated! Thanks!