Re: World.update gets stuck
Posted: Sat Nov 19, 2016 4:19 pm
It's a bit tricky but you can set up remote JMX connections so you run JVisualVM or JConsole on your dev-computer and connect to the headless-server.
Java Collision Detection and Physics Engine
zoom wrote:It's a bit tricky but you can set up remote JMX connections so you run JVisualVM or JConsole on your dev-computer and connect to the headless-server.
William wrote:So does it ever resume after it hangs or is it stuck forever? Just want to confirm. It's common to see a memory profile like that. I think the default collector tries to do small collections frequently and then large ones every so often. Could be wrong though.
Is there anyway you can log certain key stats (on an interval like every 10 mins) as the simulation progresses. For example, the number of bodies in the world, the number of bodies in the broadphase, or any other health check type information?
Can you post some code that we might be able to look at?
soylomass wrote:I hooked JVisualVM from start until in halted (and some minutes more):
What's strange is that even if the memory usage grows, it's still far from the limit. Maybe the bodies amount could be a problem, but it doesn't seem that the world is looping over 75k bodies every step either, because the process doesn't become much slower than at the begining.