Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the default values for input/output buffers #846 #1058

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

jpires
Copy link
Contributor

@jpires jpires commented Feb 15, 2023

This pull request fixes the excessive memory usage when a new websocket message is received.
For more details, check the issue #846.

Before it was using a buffer of 8Mb.
This meant that for every message received/sent, a buffer of 8Mb was
being allocated.
This in turn were causing a log of memory pressure and the service would
crash with Out of Memory.
After this change, the IO buffers have a 4Kb size that doesn't create
the same memory pressure.
Even if the buffer is only 4Kb, it still works for messages that are
bigger than 4Kb.
@goekay
Copy link
Member

goekay commented Feb 16, 2023

thanks @jpires

@goekay goekay merged commit 34dab45 into steve-community:master Feb 16, 2023
@rdc-Green
Copy link

thanks @jpires for working this out. @goekay is it possible to merge the pull request into 3.4.9 (before the api functionality was added)?

@jpires
Copy link
Contributor Author

jpires commented Feb 24, 2023

@rdc-Green You should be able to add this changes to your local copy.
Let me know if you need some help with that.

@goekay
Copy link
Member

goekay commented Feb 26, 2023

@rdc-Green the newest release is 3.5.0 and it does not contain the api functionality yet. i did not make a release including the api yet.

@rdc-Green
Copy link

Hi @goekay it does have api settings in the main.properties file though and our api has stopped working. We have resolved our issue however so there is no issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants