Tomcat websocket server onclose failed( Tomcat 8.5)

2018-04-08 Thread Funian Li
Dear All, A problem happen when tomcat websocket server was used. A sensor data chart with sampling freqency 50Hz is drawn. Tomcat websocket server( Version 8.5) is used to push the data with 20ms interval. The server code is as following: @ServerEndpoint("/websocketendpoint")public class

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-08 Thread Christopher Schultz
Mark, On 4/7/18 6:57 AM, Mark Thomas wrote: > On 06/04/18 22:10, dharmon wrote: >> environment: >> tomcat 8.5.23 >> CentOS 6.9 >> jdk8u162 b12 >> >> I recently upgraded from tomcat 7.0.61/jdk8u92 to tomcat 8.5.23/jdk8u162. >> Our application war file on tomcat7 has cpu >75% idle per vmstat several

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-08 Thread Mark Thomas
On 08/04/2018 21:29, Christopher Schultz wrote: Does Tomcat do its own UTF-8 decoding because the JVM doesn't have a facility to convert from ByteBuffer to CharBuffer? That seems like something the JVM really should be providing... No. It does it because the JRE UTF-8 decoder is buggy. Some

Using CLIENT-CERT

2018-04-08 Thread Amit Pande
I am trying to setup Tomcat (8.5.28) and the web-app correctly in order to get the mutual authentication (using client certificates) done but only for some recourses and not all. For instance, I have a “authenticate” API for which I want to enable the client certificate authentication. So, I w