TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.5k stars 2.58k forks source link

Java out of memory error at WebsocketImpl decodeHandshake #1090

Closed vikram-gopu closed 3 years ago

vikram-gopu commented 3 years ago

Java out of memory error at WebsocketImpl decodeHandshake We are using the library to run our websocket (ws only) backend on a docker running on a Virtual Machine the connection can be made over http which has resources of 1 vCPU and 2.7 GB of storage where EV Charging Point are connecting to. The backend ran for 8 weeks after then there was error Java out of memory error. The version of the websocket library is provided below. There is a screen shot of the Error which has the error stack trace.

To Reproduce Steps to reproduce the behavior:

  1. With version 1.4.0 ran the server for a period of 8 weeks with 3 websockets clients being connected.

Example application to reproduce the issue https://github.com/ChargeTimeEU/Java-OCA-OCPP is used as which inturn uses the websocket library.

Environment(please complete the following information):

Was this issue already addressed before on this version I am using? Should I need to update the library to latest stable release?

image (1)

marci4 commented 3 years ago

Please provide a full example application for me to reproduce the issue.

Best regards, Marcel

vikram-gopu commented 3 years ago

@marci4 Is this issue seen before on 1.4.0 version of this library, since we are using this library as a dependency in other library https://github.com/ChargeTimeEU/Java-OCA-OCPP.

marci4 commented 3 years ago

No, thats why I have to reproduce it.

vikram-gopu commented 3 years ago

okay then i will ask directky here: https://github.com/ChargeTimeEU/Java-OCA-OCPP and get back to you, here is the example server: https://github.com/ChargeTimeEU/Java-OCA-OCPP/blob/master/ocpp-v1_6-example/src/main/core_features/JSONServerSample.java

marci4 commented 3 years ago

I need both an example server and client..

marci4 commented 3 years ago

Closing this issue as there is no full example application provided to reproduce the issue