Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Good morning all, the answers are [inline]. With kind regards Frank Am Dienstag, den 31.03.2020, 15:47 +0100 schrieb Mark Thomas: > On 31/03/2020 07:26, Frank Tornack wrote: > > Hello all, > > > > I currently have a problem with Tomcat7, or rather a colleague has > > it. > > Personally I would

Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Good morning all, the answers are [inline]. With kind regards Frank Am Dienstag, den 31.03.2020, 10:08 -0400 schrieb Christopher Schultz: > Frank, > > On 3/31/20 02:26, Frank Tornack wrote: > > I currently have a problem with Tomcat7, or rather a colleague has > > it. > > Which exact version

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Guido Jäkel
On 2020-03-31 15:34, Mark Thomas wrote: > On 31/03/2020 13:49, Aditya Kumar wrote: >> Hi Mark, >> >> Sorry I'm not familiar with what a Selector is? However on one system I've >> noticed 28000 such connections. Are these caused by client connections? I'm >> not saying the connection originates

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread o haya
Hi, I think I figured out what is going on. I think that the parameters were working all right, but the memory that is shown by the "free" command isn't corresponding to the JVM memory. I put together a small JSP that uses Runtime.getRuntime().totalMemory() and .freeMemory() and and when I

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread o haya
Hi, BTW, in the catalina.out log file, I do see these lines: 01-Apr-2020 01:53:17.775 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8 01-Apr-2020 01:53:17.775 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread o haya
Hi, I have Tomcat installed in /apps/apache-tomcat-9.0.20/ In the /apps/apache-tomcat-9.0.20/bin/setenv.sh, I have: #!/bin/bash JAVA_HOME=/apps/jdk1.8.0_221 CATALINA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server \ -Xms4096m -Xmx4096m -XX:NewSize=256m -XX:MaxNewSize=256m

Re: Increase Transfer-Encoding limit in Apache Tomcat 9.0.14

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Suraj, On 3/31/20 13:44, Agrawal, Suraj (CORP) wrote: > Thanks for your response, yes the source application is not able > to handle "Chunked" response so we want to disable it or at least > increase the size. 臘‍♂️ This is a required part of HTTP

RE: Increase Transfer-Encoding limit in Apache Tomcat 9.0.14

2020-03-31 Thread Agrawal, Suraj (CORP)
Hi Mark, Thanks for your response, yes the source application is not able to handle "Chunked" response so we want to disable it or at least increase the size. We recently ,moved from IIS to apache tomcat as default webserver for application. Also, I tried adding below in server.xml in

Re: Tomcat 9.31 PUT/POST Request receiving Partial Data

2020-03-31 Thread Martin Grigorov
Hi, On Tue, Mar 31, 2020 at 8:17 PM wrote: > -Original Message- > > From: Bhavesh Mistry > > Sent: Wednesday, February 26, 2020 7:51 PM > > To: Tomcat Users List > > Subject: Re: Tomcat 9.31 PUT/POST Request receiving Partial Data > > > The response get truncated after 16321 bytes.

Re: Tomcat Connection Rest Error

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gary, On 3/31/20 13:20, Hua, Gary - Saint Louis, MO - Contractor wrote: > After we deploy our application to production in Tomcat server > 9.0.33, we got following error when multiple users login for some > time and the server hangs. Where does

Tomcat Connection Rest Error

2020-03-31 Thread Hua, Gary - Saint Louis, MO - Contractor
Experts: After we deploy our application to production in Tomcat server 9.0.33, we got following error when multiple users login for some time and the server hangs. When user click the "Login" button on the login form, it has a security realm that connect to the

RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31

2020-03-31 Thread jonmcalexander
Please ignore this. Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions Upcoming PTO: 11/8, 11/11, 11/15, 11/22, 11/28, 11/29, 12/2, 12/6, 12/13, 12/20 – 12/31 8080

RE: Tomcat 9.31 PUT/POST Request receiving Partial Data

2020-03-31 Thread jonmcalexander
-Original Message- > From: Bhavesh Mistry > Sent: Wednesday, February 26, 2020 7:51 PM > To: Tomcat Users List > Subject: Re: Tomcat 9.31 PUT/POST Request receiving Partial Data > The response get truncated after 16321 bytes. Please let me know what is > best way to wait and in >

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John, On 3/31/20 10:37, John Dale wrote: > I always appreciate your depth of knowledge, Chris. > > "hand-wavy device supporting NIO for Java" > > Could you write us a quick paragraph expanding on this idea? > > I'm happy to follow a pointer to a

RE: [EXTERNAL] Re: Uploads breaking post upgrade to 9.0.31

2020-03-31 Thread jonmcalexander
Tomcat 9.0.33 is available in the SAML Software Library and in HPSA. I would recommend downloading that and seeing if that corrects the issue. Dream * Excel * Explore * Inspire Jon McAlexander Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware |

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread Mark Thomas
On 31/03/2020 17:42, o haya wrote: > Thanks for the infos. > > I was thinking the same thing you were thinking, that it might be 32-bit > JVM, but when I run "java -version" I am getting: > > java -version > java version "1.8.0_221" > Java(TM) SE Runtime Environment (build 1.8.0_221-b11) > Java

Re: Increase Transfer-Encoding limit in Apache Tomcat 9.0.14

2020-03-31 Thread Mark Thomas
On 31/03/2020 17:35, Agrawal, Suraj (CORP) wrote: > > Hi Team, > > We are getting webserver response failure when the response message is large > then 20 kb, I was reading and looks like Apache Tomcat set "Transfer-Encoding > = Chunked" when the size of message increases 8 kb by default. You

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread o haya
Thanks for the infos. I was thinking the same thing you were thinking, that it might be 32-bit JVM, but when I run "java -version" I am getting: java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11,

Increase Transfer-Encoding limit in Apache Tomcat 9.0.14

2020-03-31 Thread Agrawal, Suraj (CORP)
Hi Team, We are getting webserver response failure when the response message is large then 20 kb, I was reading and looks like Apache Tomcat set "Transfer-Encoding = Chunked" when the size of message increases 8 kb by default. Can you please help how we can disable "Transfer-Encoding =

Re: How to increase Memory available to Tomcat?

2020-03-31 Thread Olaf Kock
On 31.03.20 17:02, o haya wrote: > Hi, > > I am running Tomcat 9.02 under RHEL 7 (under Oracle JDK 1.8), and I would > like to increase the memory that is available to Tomcat when it is running. > > I have tried sourcing the following: > > JAVA_OPTS="-Djava.awt.headless=true

Re: cookie configurations for Tomcat 7

2020-03-31 Thread Lazar Kirchev
Chris, Did you managed to check the PR? Lazar On Tue, Mar 10, 2020 at 5:41 PM Lazar Kirchev wrote: > Chris, > > Any update on this? Did you have a chance to have a look on the PR? > > Lazar > > On Wed, Mar 4, 2020 at 10:55 AM Lazar Kirchev > wrote: > >> Chris, Martin, >> >> Here is the PR:

How to increase Memory available to Tomcat?

2020-03-31 Thread o haya
Hi, I am running Tomcat 9.02 under RHEL 7 (under Oracle JDK 1.8), and I would like to increase the memory that is available to Tomcat when it is running. I have tried sourcing the following: JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server \ -Xms4096m -Xmx4096m -XX:NewSize=256m

Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Mark Thomas
On 31/03/2020 07:26, Frank Tornack wrote: > Hello all, > > I currently have a problem with Tomcat7, or rather a colleague has it. > Personally I would like to help him, but I can't find the error myself. > We already asked the question on stackoverflow.com and got a good hint, > but unfortunately

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread John Dale
I always appreciate your depth of knowledge, Chris. "hand-wavy device supporting NIO for Java" Could you write us a quick paragraph expanding on this idea? I'm happy to follow a pointer to a well written article (something up to your standards). On 3/31/20, Christopher Schultz wrote: >

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread tomcat/perl
On 31.03.2020 15:30, Mark Thomas wrote: On 31/03/2020 13:29, André Warnier (tomcat/perl) wrote: On 31.03.2020 14:20, Mark Thomas wrote: On 31/03/2020 11:20, Aditya Kumar wrote: Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 I've noticed on a freshly installed version of tomcat 9, upon

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 3/31/20 09:30, Frank Tornack wrote: > Yes, these too are for communication between processes. Only you > don't use the network stack. This is a special feature of Unix-like > operating systems. > > DGRAM, unlike STREAM, does not know

Re: R: R: Support with error in launcher.log

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Luigi, On 3/31/20 04:50, Luigi Tagliafierro wrote: > Hi everybody, > > the question is, where is usually set the domain name? i've > checked all the HTTPD conf and it is correctly set without the "." in front of the domain. I've checked also the

Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 3/31/20 02:26, Frank Tornack wrote: > I currently have a problem with Tomcat7, or rather a colleague has > it. Which exact version of Tomcat 7? > Personally I would like to help him, but I can't find the error > myself. We already asked

Re: HttpServletRequest.getRemoteAddr() sometimes returns NULL on Tomcat 9.0.30 and HTTP/2 secure requests

2020-03-31 Thread Mark Thomas
On 31/03/2020 14:36, Manuel Dominguez Sarmiento wrote: > Thanks, so we would be able to log this with AccessLogValve using the > following patterns, right? > %{org.apache.coyote.connectionID}r > %{org.apache.coyote.streamID}r Correct. Mark > > *Manuel Dominguez Sarmiento* > > On 31/03/2020

Re: HttpServletRequest.getRemoteAddr() sometimes returns NULL on Tomcat 9.0.30 and HTTP/2 secure requests

2020-03-31 Thread Manuel Dominguez Sarmiento
Thanks, so we would be able to log this with AccessLogValve using the following patterns, right? %{org.apache.coyote.connectionID}r %{org.apache.coyote.streamID}r *Manuel Dominguez Sarmiento* On 31/03/2020 10:28, Mark Thomas wrote: On 29/03/2020 16:16, Mark Thomas wrote: On 29/03/2020 15:58,

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Mark Thomas
On 31/03/2020 13:49, Aditya Kumar wrote: > Hi Mark, > > Sorry I'm not familiar with what a Selector is? However on one system I've > noticed 28000 such connections. Are these caused by client connections? I'm > not saying the connection originates from a client, but does the type of > socket get

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Frank Tornack
Yes, these too are for communication between processes. Only you don't use the network stack. This is a special feature of Unix-like operating systems. DGRAM, unlike STREAM, does not know connection states. Therefore STREAM is comparable to a local TCP connection. Unix domain sockets exist in the

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Mark Thomas
On 31/03/2020 13:29, André Warnier (tomcat/perl) wrote: > On 31.03.2020 14:20, Mark Thomas wrote: >> On 31/03/2020 11:20, Aditya Kumar wrote: >>> Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 >>> >>> I've noticed on a freshly installed version of tomcat 9, upon startup >>> there >>> are several

Re: HttpServletRequest.getRemoteAddr() sometimes returns NULL on Tomcat 9.0.30 and HTTP/2 secure requests

2020-03-31 Thread Mark Thomas
On 29/03/2020 16:16, Mark Thomas wrote: > On 29/03/2020 15:58, Manuel Dominguez Sarmiento wrote: >> >>> Do the streams with errors all share the same connection ID? I suspect >>> an error on one stream is triggering the closure of the connection and >>> what you are seeing is the fallout of

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Aditya Kumar
Hi Mark, Sorry I'm not familiar with what a Selector is? However on one system I've noticed 28000 such connections. Are these caused by client connections? I'm not saying the connection originates from a client, but does the type of socket get create because of client connections? On Tue, Mar

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread tomcat/perl
On 31.03.2020 14:20, Mark Thomas wrote: On 31/03/2020 11:20, Aditya Kumar wrote: Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 I've noticed on a freshly installed version of tomcat 9, upon startup there are several connections to and from localhost on different ports For example on my

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Mark Thomas
On 31/03/2020 11:20, Aditya Kumar wrote: > Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 > > I've noticed on a freshly installed version of tomcat 9, upon startup there > are several connections to and from localhost on different ports > > For example on my tomcat server there are 4

Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Frank Tornack
Hi Aditya, I'm not quite sure, but it could be a replacement for the sockets that a Linux system provides for inter-process communication. But it's just a guess, because I don't see this behavior on Linux. kindly Frank Am Dienstag, den 31.03.2020, 11:20 +0100 schrieb Aditya Kumar: > Tomcat

Why does Tomcat open connections on localhost?

2020-03-31 Thread Aditya Kumar
Tomcat 9.0.30 on Windows Server 2012 / Java 1.8 I've noticed on a freshly installed version of tomcat 9, upon startup there are several connections to and from localhost on different ports For example on my tomcat server there are 4 connections to and from localhost (output from netstat) TCP

R: R: Support with error in launcher.log

2020-03-31 Thread Luigi Tagliafierro
Hi everybody, the question is, where is usually set the domain name? i've checked all the HTTPD conf and it is correctly set without the "." in front of the domain. I've checked also the conf of the applications (confluence,jira ecc) and in the proxy name is set correctly. Also, how can we

tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Hello all, I currently have a problem with Tomcat7, or rather a colleague has it. Personally I would like to help him, but I can't find the error myself. We already asked the question on stackoverflow.com and got a good hint, but unfortunately no solving. So I would like to ask for help and