https://bz.apache.org/bugzilla/show_bug.cgi?id=59431
Bug ID: 59431 Summary: Websocket memory leak org.apache.tomcat.websocket.server.WsFrameServer Product: Tomcat 7 Version: 7.0.69 Hardware: All OS: Linux Status: NEW Severity: normal Priority: P2 Component: WebSocket Assignee: dev@tomcat.apache.org Reporter: hugo.lar...@yahoo.com Created attachment 33826 --> https://bz.apache.org/bugzilla/attachment.cgi?id=33826&action=edit image Hello, I have been struggling with memory problem for a while. For some reason the memory (1,3 GB) get full after some days of usage. Im using websocket to send and receive queries to client connected with Tyrus with the following function. The WsPayload is stored in the session userproperties and later ofcourse removed. I have a dump file of the heap and I see with Mat abnormal amount org.apache.tomcat.websocket.server.WsFrameServer objects each occupying 5MB. There is no relations between amount of objects and sessions. The sessions are about 30-70. The dump file is 30 MB so its not possible to attache it but will attach a screenshot of MAT @OnMessage public void onMessage(Session session, final ByteBuffer message) { try (ByteArrayInputStream ins = new ByteArrayInputStream(message.array()); ObjectInputStream in = new ObjectInputStream(new GZIPInputStream(ins))){ WsPayLoad sPayLoad = (WsPayLoad) in.readObject(); WsHelper.putRespWsPayloadsSess(session, sPayLoad, message); } catch (IOException | ClassNotFoundException e) { e.printStackTrace(); } } BR, Hugo Larson -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org