Hello All, Maybe this behavior is caused by the fact defaultMaxSessionIdleTimeout is not set for websockets?
Can be updated as follows final WsServerContainer sc = (WsServerContainer)getServletContext().getAttribute(SERVER_CONTAINER_SERVLET_CONTEXT_ATTRIBUTE); if (sc != null) { sc.setDefaultMaxSessionIdleTimeout(60 * 1000L); } On Mon, 25 Feb 2019 at 22:04, Иналь Кятов <kyatov1...@gmail.com> wrote: > > I retest with > > > <tomcat-embedded.version>*8.5.38*</tomcat-embedded.version> > > ... > > <dependency> > <groupId>org.apache.tomcat.embed</groupId> > <artifactId>tomcat-embed-websocket</artifactId> > <version>${tomcat-embedded.version}</version> > </dependency> > <dependency> > <groupId>org.apache.tomcat.embed</groupId> > <artifactId>tomcat-embed-core</artifactId> > <version>${tomcat-embedded.version}</version> > </dependency> > <dependency> > <groupId>org.apache.tomcat.embed</groupId> > <artifactId>tomcat-embed-el</artifactId> > <version>${tomcat-embedded.version}</version> > </dependency> > <dependency> > <groupId>org.apache.tomcat</groupId> > <artifactId>tomcat-annotations-api</artifactId> > <version>${tomcat-embedded.version}</version> > </dependency> > > > The result is the same > > I also checked status of the sockets on server with the netstat command. > > The number of ESTABLISHED is constantly and rapidly growing. > > Note, the problem is reproduced as a result of load testing. > > > ср, 20 февр. 2019 г. в 01:40, Christopher Schultz < > ch...@christopherschultz.net>: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA256 > > > > Иналь, > > > > On 2/19/19 12:12, Иналь Кятов wrote: > > > I encountered a problem with embedded tomcat 8.5.29 (part of spring > > > boot 1.5). > > > > Can you retest with the current version of 8.5.x? Current version is > > 8.5.38, released 2019-02-11. > > > > - -chris > > -----BEGIN PGP SIGNATURE----- > > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlxshcsACgkQHPApP6U8 > > pFgaVg//TF4/DVpFjtTLk+d6Z/AOcFX7SEYg/0SEKjpKtxaUr5+19umt5mMi+Zqk > > UkkCSB19KRpqLUY8o53xlgqL9SqqBF14Wh0T2FYqpXtKSfV/Nv6tvsEV6Bd9LqTz > > /RSFcAmCTL+SDIwXQ4FzmW55aaPfous9lKgPYdZlYy4UwVvG7PP/EOD7swR470eU > > DmvjkkOKPJ87mSFra3LJ5MxrvLAw+9PgEACLc4nF6Tkceisn7kTIP/s7SGKb4Few > > PWXYKy7NfcBASMYfikS/SAdCHNbjD9Za+L6okTuUjjvlNwAQvM7BWnG2CurpX8wQ > > oEinp/4OsXaD0yZ/pi+dmUOUS/AwSuaxD4YZWembSEvTW658bc+5YgpfcOLivcO+ > > iB4/erdLHW8dLW07Nl2EafTXvKTOXHNlL4HIrTLzoi8SlJ2b+j4U3/9b5LBke2TG > > HpQSo7MxqVfllhDTiwsYMRIkPupZEqR41x8wG4CpcfpQjXJMmAvaeFpBQA0ZnVyn > > OkbYDi3IF9C8uAd0sbEx2npZ05ptb8zyHmU0mTawBDSL/e+3xbcFvZ2v0LNujgVB > > VqJdtXOJKRA66l6dN+nS377guMeL5BQJS4PeRMIapWotJbuCE2nYgcjcie3ipClq > > SP00v4Vd85g4D5XPAWewoWJXRiOPMp1dc5pTYwviTgG6FNGtoCE= > > =wHth > > -----END PGP SIGNATURE----- > > -- WBR Maxim aka solomax --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org