Tomcat behind Apache web server ProxyPass settings for WebSocket

2018-12-04 Thread richard
I'm trying to see the WebSocket examples that ship with Tomcat 9 in action. If I point my browser directly at tomcat on 8080, they work. However, Tomcat is behind an Apache2 webserver and I can't seem to get the ProxyPass settings right. Other Tomcat applications work if I access them via Apa

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread tomcat
On 04.12.2018 17:55, Frank Schullerer wrote: Hello @all, After searching the web many many times and reading all this here, it seems that there is no real good solution for this. In my example server.xml are 4 services but we have 25 and more to come. So we need maybe a management solution like

Re: Connector protocol and request handling in Tomcat 8

2018-12-04 Thread Saurav Sarkar
Thanks a lot Mark again. Actually i made mistake in getting the correct thread dump from my server when it was not accepting any further requests. We make blocking network I/O calls which blocks the threads . I see that the current threads go to park state when expecting to read from the input st

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Mark Thomas
On 04/12/2018 15:10, Jan Vávra wrote: > Hello, >  I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 > R2 and at Complete Server Status page I can see list of all http-nio > threads and I can see a header of ajp-nio threads. But there is > displayed only a label Max threads: > a

RE: Help debugging stream error

2018-12-04 Thread Eduardo Quintanilla
Thanks Mark, I will keep the changelog in mind for future references. Eduardo Quintanilla Software Developer Block Networks  -Original Message- From: Mark Thomas Sent: martes, 4 de diciembre de 2018 11:00 a. m. To: users@tomcat.apache.org Subject: Re: Help debugging stream error On 04

Re: Help debugging stream error

2018-12-04 Thread Mark Thomas
On 04/12/2018 15:24, Eduardo Quintanilla wrote: Hi, I am having an sporadic error with our app that slows a lot the responses of the server. Any suggestions about how to find the cause of the error will be appreciated. Tomcat version: Apache Tomcat/8.5.20 Java: JDK 1.8.0_191-b12 VM Options: -

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello @all, After searching the web many many times and reading all this here, it seems that there is no real good solution for this. In my example server.xml are 4 services but we have 25 and more to come. So we need maybe a management solution like the Tcat server or I don't know . That's a litt

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 12/4/18 10:10, Jan Vávra wrote: > Hello, I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows > Server 2012 R2 and at Complete Server Status page I can see list of > all http-nio threads and I can see a header of ajp-nio threads. But >

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 12/4/18 06:09, Frank Schullerer wrote: > Thanks! > > Ok let me know if I can achive things in a better way. Now I have > a server.xml like this: > > name="Catalina"> defaultHost="localhost"> > > > keyAlias="" /> name

Help debugging stream error

2018-12-04 Thread Eduardo Quintanilla
Hi, I am having an sporadic error with our app that slows a lot the responses of the server. Any suggestions about how to find the cause of the error will be appreciated. Tomcat version: Apache Tomcat/8.5.20 Java: JDK 1.8.0_191-b12 VM Options: -Xms200m -Xmx7g -XX:PermSize=256m -XX:MaxPermSize=5

manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Jan Vávra
Hello,  I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 R2 and at Complete Server Status page I can see list of all http-nio threads and I can see a header of ajp-nio threads. But there is displayed only a label Max threads: and nothing more. In the localhost.log is an

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello, thanks for the answer. That is exactly the way how we do this today (all via a shell script and via Jenkins). But I thought the "official" way to start/stop/deploy/reload applications via e.g. "curl http://localhost:8080/manager/text/reload?... " is better Greetings Am Di., 4. Dez. 20

RE: Using tomcat manager to deploy to several services

2018-12-04 Thread Jäkel , Guido
Dear Frank, I guess you have configured autodeployment of the WARs. And it seems to me that you want to use a tree in a filesystem to place your deployments. Given that, you may use an arbitrary way to place the WARs to that location, because it's not the Tomcat Manager application that actuall

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Thanks! Ok let me know if I can achive things in a better way. Now I have a server.xml like this: Please note that we need different ports and different configurations (like clientAuth or keyAlias) for the applications. If there is a better way and have

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Mark Thomas
On 04/12/2018 10:19, Frank Schullerer wrote: > Hello, > > I think this question is independent from the tomcat version but I tried it > with Tomcat 9.0.13 on Windows. > We have several "service" tags in our server.xml because we have several > applications > running in one tomcat with several port

Re: Using tomcat manager to deploy to several services

2018-12-04 Thread tomcat
On 04.12.2018 11:19, Frank Schullerer wrote: Hello, I think this question is independent from the tomcat version but I tried it with Tomcat 9.0.13 on Windows. We have several "service" tags in our server.xml because we have several applications running in one tomcat with several ports and differ

Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello, I think this question is independent from the tomcat version but I tried it with Tomcat 9.0.13 on Windows. We have several "service" tags in our server.xml because we have several applications running in one tomcat with several ports and different configuration (clientAuth etc). I tried to