RE: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38)

2020-09-29 Thread Arshiya Shariff
Hi Martin , Thank you for the response. With a payload of 200 bytes we were able to send 20K requests/sec with 200 users from Jmeter without any memory issue . On increasing the payload to 5Kb and the number of users to 1000 in Jmeter and sending 1000 requests per second , the heap of 20GB

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Nicolò Boschi
Yes I also need to keep headers derived from included/forwarded servlet Thank you Tim, I already thought your solution and it should work, but it is a bit tricky I was wondering if there is a more elegant solution I'm not strictly bound to forward method if there is a better solution Il Mar 29

Re: Enabling FIPS for Tomcat

2020-09-29 Thread Mark Thomas
On 29/09/2020 16:25, Amit Pande wrote: > Dear all, > > The link below documents how to enable FIPS (using Bouncy Castle) for Tomcat. > > https://github.com/amitlpande/tomcat-9-fips > > Kindly let me know your inputs if this needs any corrections, enhancements. > > Also, a request to Tomcat

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
Forward needed to be used due to this in the original email > I also tried using RequestDispatcher#include but I need to keep response > headers, added during the forward And include() is not allowed to set headers. -Tim On Tue, Sep 29, 2020 at 2:27 PM Christopher Schultz wrote: > > If you

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Christopher Schultz
Nicolò, On 9/29/20 05:31, Nicolò Boschi wrote: > I would like to know how to append (or prepend) some content in a Servlet, > after RequestDispatcher#forward is called. > > Example code: > > class MyServlet extends HttpServlet { > > > @Override > public void doGet(HttpServletRequest

Enabling FIPS for Tomcat

2020-09-29 Thread Amit Pande
Dear all, The link below documents how to enable FIPS (using Bouncy Castle) for Tomcat. https://github.com/amitlpande/tomcat-9-fips Kindly let me know your inputs if this needs any corrections, enhancements. Also, a request to Tomcat leads: It is possible for these steps to be part of

RE: Virtual event focussed on Tomcat Security

2020-09-29 Thread jonmcalexander
I really like the idea of this. Something similar to the ApacheCon, or a series of ZOOM meetings or such. Dream * Excel * Explore * Inspire Jon McAlexander Infrastructure Engineer Asst Vice President Middleware Product Engineering Enterprise CIO | Platform Services | Middleware |

Virtual event focussed on Tomcat Security

2020-09-29 Thread Mark Thomas
Hi all, We (the Tomcat community) have some funding from Google to help us improve Tomcat security. Our original plan was to use the funding to support an in-person security focussed hackathon. As you would expect, those plans are on hold for now. We would, therefore, like to explore the

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
Advice: Redesign since this will be a support nightmare for you in the future since the design is not in the spirit of how the spec works. Now onto the real solution (over simplified .. but google can expand on each sub-idea) Create a ServletResponseWrapper and pass that to the forward() method

Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Nicolò Boschi
Hi all, I would like to know how to append (or prepend) some content in a Servlet, after RequestDispatcher#forward is called. Example code: class MyServlet extends HttpServlet { @Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws

Re: ApacheCon @ Home Tomcat Track Schedule

2020-09-29 Thread Martin Grigorov
Hi, A friendly reminder: the conference already started and the Tomcat sessions will start in less than 6 hours from now! On Fri, Aug 14, 2020 at 6:49 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > All, > > I'm happy to

Re: Some functions not working when using a particular dns after tomcat upgrade from 6.x to 8.5.x

2020-09-29 Thread Larvi Boy
Hi Chris, Yes, When I did $ host [hostname], I get the IP address that I am trying to use. Below are the Engine and Host configurations from server.xml. On Mon, Sep 28, 2020 at