Out of RAM while running server and 2 clients
ericlemerdy opened this issue · comments
I ran the server with 'mvn clean install -f elevator-server/pom.xml'
I rand two local clients from eclipse :
- ParticipantServer (default elevator.engine.scan.ScanElevator implementation, default port 1981)
- ParticipantServer (elevator.engine.crazy.CrazyElevator implementation, port 1982)
With additionnal human participants clients implementations (from 1 to 3)
After 1 hour, my ubuntu randomly killed java processes for free resources : first time the server itself, second time eclipse
I think your memory issue is coming from your navigator displaying leaderboard. Please see screenshot attached where you can see that each java virtual machine are consuming normal amount of memory in regards to 3,42 Go by Safari. Test have been running during more than one hour. Sounds like a memory leak when javascript draw each elevator onto the navigator.
🆗 Since my computer was in fire , I think I closed the firefox tab...
By the way, thanks for calling me crazy in the board 😉
Now, we must fix this memory consumption in the angular app ! We need @paulgreg help 😄
The problem is not Angular. It's KineticJS ... I have not found a correct way to clear the "canvas" and redraw elements in it. The actual way has a memory leak.
I have to try http://svgjs.com/ asap :)
fixed by 56c638c