Re: Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Mark Thomas
On 30 March 2017 20:53:06 BST, Laurent Perez wrote: >Thank you Mark. > >h2c is enabled : 30-Mar-2017 21:30:33.373 INFOS [main] >org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol >The ["http-nio-8080"] connector has been configured to support HTTP >upgrade >to [h2c] > >Howeve

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Olaf Kock
Am 30.03.2017 um 21:51 schrieb Utkarsh Dave: > Hi Andre, > > I suppose we should read 1.2 GB here ? Yes > Anyway, why do you say "which is enough" ? How do you know ? By the past > test results. that we have been doing on each application > And do not top-post. How do we know what you are respondi

Re: Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Olaf Kock
Am 30.03.2017 um 21:53 schrieb Laurent Perez: > Client is Chrome 56. Where could I check in tomcat source to see if the > client is sending the h2c upgrade token ? >>> I managed to run the servlets/serverpush/simpleimage HTTP/2 push example >>> from Tomcat 9 trunk with the SSL Http11AprProtocol c

Intercepting WebSocket ping messages

2017-03-30 Thread Robert Lewis
Is there a way to intercept a ping message to send a pong? I need to do this synchronize sends to the endpoint. I tried session.addMessageHandler(new javax.websocket.MessageHandler.Whole() { @Override public void onMessage(PongMessage message) { Sy

Re: Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Laurent Perez
Thank you Mark. h2c is enabled : 30-Mar-2017 21:30:33.373 INFOS [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["http-nio-8080"] connector has been configured to support HTTP upgrade to [h2c] However org.apache.catalina.connector.Request#newPushBuilder returns

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Utkarsh Dave
Hi Andre, I suppose we should read 1.2 GB here ? Yes Anyway, why do you say "which is enough" ? How do you know ? By the past test results. that we have been doing on each application And do not top-post. How do we know what you are responding to ? By scrolling up and down ? On Thu, Mar 30, 2017

Re: how to access HTTPServletRequest in RealmBase

2017-03-30 Thread tomcat
On 30.03.2017 20:10, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 3/30/17 4:19 AM, Konstantin Kolinko wrote: 2017-03-30 11:02 GMT+03:00 Jan Vávra : Hello, I have written a custom Realm and I need to access to the request headers. The authentication

Re: LDAP authentication for Tomcat's webapp 'Opengrok'

2017-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alfie, On 3/27/17 7:07 AM, Alfie Patolilic wrote: >> Tomcat Version : 6.0.36 You need to upgrade. Current 6.0.x version if 6.0.51. Current stable version is (IMO) 8.0.42. >> I have a question on how I am able to set the following, >> regarding the

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Utkarsh Dave
Hi Chris What makes you say that? Past cases, I saw where implementation or not using the JSESSION was making the connection over and over again for multiple transactions What JVM are you using? We using Orcale JDK 1.7.0.131 Yes, 58 applications. On Thu, Mar 30, 2017 at 12:01 PM, Christopher Sch

Re: Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Mark Thomas
On 30/03/17 18:02, Laurent Perez wrote: > Hi > > I managed to run the servlets/serverpush/simpleimage HTTP/2 push example > from Tomcat 9 trunk with the SSL Http11AprProtocol connnector and > className="org.apache.coyote.http2.Http2Protocol"/>. > > Now I would like to enable HTTP/2 but without S

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Utkarsh, On 3/29/17 7:33 PM, Utkarsh Dave wrote: > Hello all, > > My tomcat (7.0.72) hosts several web aplications in the server > (based in linux 6.8). There are many clients or 3rd party > applications working as client to my server (having tomca

Re: how to access HTTPServletRequest in RealmBase

2017-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 3/30/17 4:19 AM, Konstantin Kolinko wrote: > 2017-03-30 11:02 GMT+03:00 Jan Vávra : >> Hello, I have written a custom Realm and I need to access to the >> request headers. The authentication should be computed from >> client certifica

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread tomcat
On 30.03.2017 19:36, Utkarsh Dave wrote: Thanks Olaf and Suvendu for the response. We are using 1.2 MB of heap size which is enough and haven't created an issue so far. I suppose we should read 1.2 GB here ? Anyway, why do you say "which is enough" ? How do you know ? And do not top-post. How d

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Utkarsh Dave
Thanks Olaf and Suvendu for the response. We are using 1.2 MB of heap size which is enough and haven't created an issue so far. On Thu, Mar 30, 2017 at 9:51 AM, Suvendu Sekhar Mondal wrote: > >Memory heap dump generated is of > >Size: 787.3 MB Classes: 139k Objects: 19.3m Class Loader: 1.6k > >

Re: Tracking down a Basic.sendBinary() issue

2017-03-30 Thread Robert Lewis
Ok. We do lock all our calls to Basic.sendBinary(), also it seems like moving to Tomcat 8.5 fixes the issue. No proof yet why. Since it always happens on our last write out to a client which should trigger a client ack, the client will immediately send an ack back to us (which seems to trigger the

Re: Tracking down a Basic.sendBinary() issue

2017-03-30 Thread Mark Thomas
On 29/03/17 04:04, Robert Lewis wrote: > Thanks Mark. I will take a look at the test you linked in (seems like Clint > already is). > > I have a question regarding your previous note "The short version is that > it is possible that there are two threads". On 8.0.38, doWrite() sets it's > scoped ha

Setting up HTTP/2 with no SSL connector ?

2017-03-30 Thread Laurent Perez
Hi I managed to run the servlets/serverpush/simpleimage HTTP/2 push example from Tomcat 9 trunk with the SSL Http11AprProtocol connnector and . Now I would like to enable HTTP/2 but without SSL : my certificates are either hosted under my load balancer or Apache itself, and I do not require SSL b

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Suvendu Sekhar Mondal
>Memory heap dump generated is of >Size: 787.3 MB Classes: 139k Objects: 19.3m Class Loader: 1.6k >Overview shows 580.9 MB occupied by remainder's. >Problem suspect:- >465 MB occupied by remainder Remainder section has retained a good chunk of memory. That indicates lots of small objects are bei

Re: Websocket & Logging

2017-03-30 Thread Mark Thomas
On 30/03/17 16:56, Addy D wrote: > On Thu, Mar 30, 2017 at 8:49 PM, Konstantin Kolinko > wrote: > >> 2017-03-30 12:15 GMT+03:00 Addy D : >>> I can see following in log, while starting tomcat: >>> >>> Mar 30, 2017 2:33:22 PM >>> org.springframework.web.socket.server.support.WebSocketHandlerMapping

Re: Websocket & Logging

2017-03-30 Thread Konstantin Kolinko
2017-03-30 18:56 GMT+03:00 Addy D : > On Thu, Mar 30, 2017 at 8:49 PM, Konstantin Kolinko > wrote: > >> 2017-03-30 12:15 GMT+03:00 Addy D : >> > I can see following in log, while starting tomcat: >> > >> > Mar 30, 2017 2:33:22 PM >> > org.springframework.web.socket.server.support.WebSocketHandlerM

Re: Websocket & Logging

2017-03-30 Thread Addy D
On Thu, Mar 30, 2017 at 8:49 PM, Konstantin Kolinko wrote: > 2017-03-30 12:15 GMT+03:00 Addy D : > > I can see following in log, while starting tomcat: > > > > Mar 30, 2017 2:33:22 PM > > org.springframework.web.socket.server.support.WebSocketHandlerMapping > > registerHandler > > INFO: Mapped UR

Re: Websocket & Logging

2017-03-30 Thread Konstantin Kolinko
2017-03-30 12:15 GMT+03:00 Addy D : > I can see following in log, while starting tomcat: > > Mar 30, 2017 2:33:22 PM > org.springframework.web.socket.server.support.WebSocketHandlerMapping > registerHandler > INFO: Mapped URL path [/call] onto handler of type [class > org.springframework.web.socket

Re: Websocket & Logging

2017-03-30 Thread Addy D
I can see following in log, while starting tomcat: Mar 30, 2017 2:33:22 PM org.springframework.web.socket.server.support.WebSocketHandlerMapping registerHandler INFO: Mapped URL path [/call] onto handler of type [class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler] Sam

Re: Ways to identify poorly designed client aplications sending request to Tomcat !

2017-03-30 Thread Olaf Kock
Am 30.03.2017 um 01:33 schrieb Utkarsh Dave: > Hello all, > > My tomcat (7.0.72) hosts several web aplications in the server (based in > linux 6.8). [...] > Memory heap dump generated is of > Size: 787.3 MB Classes: 139k Objects: 19.3m Class Loader: 1.6k The combination of "hosts several web applic

Re: how to access HTTPServletRequest in RealmBase

2017-03-30 Thread Konstantin Kolinko
2017-03-30 11:02 GMT+03:00 Jan Vávra : > Hello, > I have written a custom Realm and I need to access to the request headers. > The authentication should be computed from client certificate + id from > custom http header X-IdUser. Can I somehow access to the HTTPServletRequest > instance ? Not po

how to access HTTPServletRequest in RealmBase

2017-03-30 Thread Jan Vávra
Hello, I have written a custom Realm and I need to access to the request headers. The authentication should be computed from client certificate + id from custom http header X-IdUser. Can I somehow access to the HTTPServletRequest instance ? Jan.