Java Heap Size Errors
Posted: Sun Dec 31, 2017 4:36 pm
Every few days my devices cannot see UMS. I have UMS running on a Linux server.
When I check my server, UMS is still actually running.
The UMS logs always show a Java error when this happens:
DEBUG 2017-12-27 20:19:12.159 [HTTPv2 Request Worker 4] Caught exception: Java heap space
INFO 2017-12-27 20:21:05.341 [cling-2380] Exception in thread "cling-2380" java.lang.OutOfMemoryError: Java heap space
INFO 2017-12-27 20:21:07.284 [cling-2376] Exception in thread "cling-2376" java.lang.OutOfMemoryError: Java heap space
INFO 2017-12-27 20:21:20.611 [SocketListener(satan-itsbiz-com-au.local.)] Exception in thread "SocketListener(satan-itsbiz-com-au.local.)" java.lang.IllegalStateException: Timer already cancelled.
My Java heap space was previously 512M and now I have set it to 1024M to see if it resolves the issue.
What is the general consensus:
heap space - 512M was to small
Or
UMS has a memory leak
Interested to hear thoughts.
Thanks
When I check my server, UMS is still actually running.
The UMS logs always show a Java error when this happens:
DEBUG 2017-12-27 20:19:12.159 [HTTPv2 Request Worker 4] Caught exception: Java heap space
INFO 2017-12-27 20:21:05.341 [cling-2380] Exception in thread "cling-2380" java.lang.OutOfMemoryError: Java heap space
INFO 2017-12-27 20:21:07.284 [cling-2376] Exception in thread "cling-2376" java.lang.OutOfMemoryError: Java heap space
INFO 2017-12-27 20:21:20.611 [SocketListener(satan-itsbiz-com-au.local.)] Exception in thread "SocketListener(satan-itsbiz-com-au.local.)" java.lang.IllegalStateException: Timer already cancelled.
My Java heap space was previously 512M and now I have set it to 1024M to see if it resolves the issue.
What is the general consensus:
heap space - 512M was to small
Or
UMS has a memory leak
Interested to hear thoughts.
Thanks