tyrus icon indicating copy to clipboard operation
tyrus copied to clipboard

[Question] Why a lot of threads are created

Open lost22git opened this issue 3 years ago • 8 comments

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

image

lost22git avatar May 19 '22 06:05 lost22git

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?

jansupol avatar Jun 06 '22 19:06 jansupol

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: https://github.com/jansupol/tyrus/commit/4ed2ec7a7059c2dbe4b18be4ebf0cb2c7c300494 Before that commit, there was an optimization in TyrusSession#restartIdleTimeoutExecutor and a new IdleTimeoutCommand was not scheduled if maxIdleTimeout was less than 1.

alexisnouvel avatar Jan 16 '25 14:01 alexisnouvel

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

alexisnouvel avatar Jan 24 '25 14:01 alexisnouvel

@alexisnouvel #917.

jansupol avatar Apr 03 '25 16:04 jansupol

@jansupol thank you for the fix, when a new version will be released?

alexisnouvel avatar May 12 '25 07:05 alexisnouvel

This month, hopefully

jansupol avatar May 12 '25 08:05 jansupol