'Spring Stomp: Memory leak in websocket

I have been working with springboot and stomp with sockjs for frontend.The broker used with stomp server is ActiveMQ Artemis. My application is having memory leak and an analysis of heap dump shows following problem.

One instance of org.apache.coyote.http11.upgrade.upgradeGroupInfo class is occupying almost 20% of memory which is loaded by org.springframework.boot.loader.LaunchedURLClassLoader.Can anyone help me figureout why this problem might be occuring. The issue seems similar with the issue mentioned here.

Can someone help me figure out the issue. Currently 3 errors are logged in the websocket service as shown below.

12:17:18.677 ERROR org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler - Received ERROR {message=[AMQ229014: Did not receive data from /127.0.0.6:53495 within the 20,000ms connection TTL. The connection will now be closed.]} session=aa3r0ae9

12:17:29.905 ERROR org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler - Failed to forward DISCONNECT session=1byq2yk3

12:14:32.625  WARN org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class java.util.LinkedHashMap] with preset Content-Type 'application/javascript;charset=UTF-8']

Could any of the errors above could be a reason for the problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source