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

[Question] Why a lot of threads are created #787

Open
lost22git opened this issue May 19, 2022 · 3 comments
Open

[Question] Why a lot of threads are created #787

lost22git opened this issue May 19, 2022 · 3 comments

Comments

@lost22git
Copy link

lost22git commented May 19, 2022

66 connections are established using websocket client, but 800+ threads are created, is this normal for tyrus-client

image

@jansupol
Copy link
Contributor

jansupol commented Jun 6, 2022

Hmm... this might be related to #778. If the 66 connections are executed multiple times.

800 threads is wrong. How did you achieve it? Can you create a reproducer?

@alexisnouvel
Copy link

Hi, I have the same kind of issue on my side with version 1.21. It was better with older version 1.12.
I think it's because of that commit: jansupol@4ed2ec7
Before that commit, there was an optimization in TyrusSession#restartIdleTimeoutExecutor and a new IdleTimeoutCommand was not scheduled if maxIdleTimeout was less than 1.

@alexisnouvel
Copy link

@jansupol do you think the optimization can be put back?

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

No branches or pull requests

3 participants