RE: Re: Embedded Tomcat common classloader

2024-06-08 Thread Terence M. Bandoian
navigate through > myDir and construct a classpath containing every jar (approx 100 > files). This enabled the embedded Tomcat instance to resolve all > referenced classes > > thanks again > Dave Breeze > Linkedin:https://uk.linkedin.com/in/dabreeze > > On Fri, 7 Jun

Re: Embedded Tomcat common classloader

2024-06-08 Thread Dave Breeze
files). This enabled the embedded Tomcat instance to resolve all referenced classes thanks again Dave Breeze Linkedin:https://uk.linkedin.com/in/dabreeze On Fri, 7 Jun 2024 at 15:02, Chuck Caldarale wrote: > > > > On Jun 7, 2024, at 08:11, Christopher Schultz > > wrote: >

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
Chuck, On 6/7/24 10:02, Chuck Caldarale wrote: On Jun 7, 2024, at 08:11, Christopher Schultz wrote: On 6/7/24 01:49, Mark Thomas wrote: On 06/06/2024 18:48, Dave Breeze wrote: Thanks Mark appreciate that the url was for 8.0 With regards to classpath that was my first attempt - unfortunat

Re: Embedded Tomcat common classloader

2024-06-07 Thread Chuck Caldarale
> On Jun 7, 2024, at 08:11, Christopher Schultz > wrote: > > On 6/7/24 01:49, Mark Thomas wrote: >> On 06/06/2024 18:48, Dave Breeze wrote: >>> Thanks Mark >>> appreciate that the url was for 8.0 >>> >>> With regards to classpath that was my first attempt - unfortunately it >>> would seem tha

Re: Embedded Tomcat common classloader

2024-06-07 Thread Christopher Schultz
issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html Those are the Tomcat 8.0.x docs. You are using Tomcat 9.0.x. Tomcat embedded does not set up

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
Thomas wrote: On 06/06/2024 17:52, Dave Breeze wrote: I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html Those are the Tomcat 8.0.x

Re: Embedded Tomcat common classloader

2024-06-06 Thread Dave Breeze
/dabreeze On Thu, 6 Jun 2024 at 17:23, Mark Thomas wrote: > > On 06/06/2024 17:52, Dave Breeze wrote: > > I have an issue with embedded Tomcat and classloaders. > > > > I have a java servlet application that runs in an embedded > > Tomcat(9.0.70) instance. > > &g

Re: Embedded Tomcat common classloader

2024-06-06 Thread Mark Thomas
On 06/06/2024 17:52, Dave Breeze wrote: I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html Those are the Tomcat 8.0.x docs. You are

Embedded Tomcat common classloader

2024-06-06 Thread Dave Breeze
I have an issue with embedded Tomcat and classloaders. I have a java servlet application that runs in an embedded Tomcat(9.0.70) instance. When the application is packaged into a single war file – the application loads and performs as expected (classes are fond in WEB-INF/lib. Due to some

Re: SpringBoot Embedded Tomcat Server RateLimitFilter

2024-03-04 Thread Christopher Schultz
Ved, On 2/28/24 00:56, Ved wrote: Hi, I am using spring boot and wanted to use Rate Limit. I can find it in package org.apache.catalina.filters; //in embedded tomcat But this RateLimitFilter is never called. I want to understand when this filter is called and how I can customize it. Have you

SpringBoot Embedded Tomcat Server RateLimitFilter

2024-02-27 Thread Ved
Hi, I am using spring boot and wanted to use Rate Limit. I can find it in package org.apache.catalina.filters; //in embedded tomcat But this RateLimitFilter is never called. I want to understand when this filter is called and how I can customize it. Regards, Ved Prakash

Re: Performance tuning embedded Tomcat 10.1.7: High requests/second, HTTPs and a lot of keep alive connections

2023-11-28 Thread Daniel Andres Pelaez Lopez
Thanks chris for your thoughts. > This is obviously a "big" question whose answer likely take months to > really determine. But we can get started :) I am aware the question is too broad but better to ask than to be silent. Will try to go for increasing maxKeepAliveRequests first and see where th

Re: Performance tuning embedded Tomcat 10.1.7: High requests/second, HTTPs and a lot of keep alive connections

2023-11-27 Thread Christopher Schultz
Daniel, This is obviously a "big" question whose answer likely take months to really determine. But we can get started :) On 11/27/23 08:59, Daniel Andres Pelaez Lopez wrote: We are facing some challenges with performance tunning for embedded Tomcat using Spring Boot 3 (Tomcat vers

Performance tuning embedded Tomcat 10.1.7: High requests/second, HTTPs and a lot of keep alive connections

2023-11-27 Thread Daniel Andres Pelaez Lopez
Hi community, We are facing some challenges with performance tunning for embedded Tomcat using Spring Boot 3 (Tomcat version 10.1.7) and we would like to ask for advice. The following is an overview of how our workload looks like: - The client is a CDN distributed around the world - Tomcat serves

Re: Upgrading Embedded Tomcat 7.x to 10.x

2023-08-31 Thread Mark Thomas
On 30/08/2023 23:58, Matthew Robinson wrote: Please may I have some assistance to upgrade a JAVA Maven project which uses embedded Tomcat 7 to use embedded Tomcat 10? I’m having extreme difficulty determining the appropriate versions of the various components such that they play nice together

Upgrading Embedded Tomcat 7.x to 10.x

2023-08-30 Thread Matthew Robinson
Please may I have some assistance to upgrade a JAVA Maven project which uses embedded Tomcat 7 to use embedded Tomcat 10? I’m having extreme difficulty determining the appropriate versions of the various components such that they play nice together. I am also planning to upgrade from JAVA 7 to

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-23 Thread Mark Thomas
On 23/12/2022 03:28, Tim N wrote: Do you think this thread is useful info for any Tomcat-embedded Java 17 migration guide/how-to? I'm happy to tidy it up and contribute if there's an official Tomcat-embedded place for it. It is on the mailing list so it shoudl alreayd be findable. The wiki is

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-22 Thread Tim N
> This should be unnecessary. The classes in that package should be > included in tomcat-embed-core Nice - thanks. I was reading and using the catalina code, but after trimming down my code it no longer needs that dependency. Do you think this thread is useful info for any Tomcat-embedded Java 17

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-22 Thread Mark Thomas
On 21/12/2022 22:37, Tim N wrote: This was fixed by adding "--add-opens=java.base/java.lang=ALL-UNNAMED". Now all applications are running, and various other issues have been fixed by other "--add-opens" arguments. So these and the last couple of issues are related to Java 17 and not the classloa

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-21 Thread Tim N
oks closer to working, but still something major wrong. >>> >>> On Wed, Dec 21, 2022 at 11:02 AM Tim N wrote: >>> >>>> > The custom class loader approach described in one of the answers is a >>>> > viable option. >>>> >>>

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
gt;> > viable option. >>> >>> Thanks. >>> >>> > No. The same class loader hierarchy isn't constructed when running in >>> > embedded mode. >>> >>> It looks like I would need to replicate all the classloading >>> c

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
edded mode. >>> >>> It looks like I would need to replicate all the classloading >>> capabilities of Tomcat (e.g. loading classes from files and JARs). Any tips >>> for implementing this? >>> >>> It looks like the Tomcat classloader code is availab

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
looks like the Tomcat classloader code is available via >> https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina. >> This isn't a tomcat-embedded module, but looks like it might be compatible. >> Could these classes be used to achieve what I'm after? If I coul

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
cat-catalina. > This isn't a tomcat-embedded module, but looks like it might be compatible. > Could these classes be used to achieve what I'm after? If I could get this > working, I could maybe contribute back with "how-to" documentation. > Thoughts? > > Also, ho

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-20 Thread Tim N
e used to achieve what I'm after? If I could get this working, I could maybe contribute back with "how-to" documentation. Thoughts? Also, how do I make embedded Tomcat use my classloader? On Wed, Dec 14, 2022 at 9:19 PM Mark Thomas wrote: > On 14/12/2022 03:20, Tim N wrote:

Re: Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-14 Thread Mark Thomas
On 14/12/2022 03:20, Tim N wrote: I'm currently using embedded Tomcat 9.0.68 and have encountered the infamous compatibility issue with ClassLoader.getSystemClassLoader when upgrading from Java 8 to Java 17. See https://stackoverflow.com/questions/46694600/java-9-compatability-issue

Embedded Tomcat 9.0.x Classpath Modification Migrating From Java 8 to 17

2022-12-13 Thread Tim N
I'm currently using embedded Tomcat 9.0.68 and have encountered the infamous compatibility issue with ClassLoader.getSystemClassLoader when upgrading from Java 8 to Java 17. See https://stackoverflow.com/questions/46694600/java-9-compatability-issue-with-classloader-getsystemclassloader for a

JNDI bind in embedded Tomcat for "java:app"

2022-01-26 Thread Thomas Rohde
Hello Tomcat users! I'm using an embedded Tomcat (9.0.54) with Spring Boot. I have to execute some legacy code of an Java EE application which uses local EJBs an makes JNDI look for "java:app/foo/bar". Now I want to create an instance as Spring Bean an register it in the JN

RE: Embedded Tomcat 9.0.33

2021-03-21 Thread S Abirami
Thanks Christopher for detailed explanation with testing tools. -Original Message- From: Christopher Schultz Sent: Sunday, March 21, 2021 9:02 AM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.33 Abirami, On 3/20/21 11:36, S Abirami wrote: > We have deployed embed

Re: Embedded Tomcat 9.0.33

2021-03-20 Thread Christopher Schultz
Abirami, On 3/20/21 11:36, S Abirami wrote: We have deployed embedded tomcat in RHEL 7 with jdk 1.8. For sweet32 vulnerability, we have configured jdk.tls.disabled.algorithm to remove the encryption cipher have 64bit block size. I need a clarification whether JDK configuration is enough for

Embedded Tomcat 9.0.33

2021-03-20 Thread S Abirami
Hi ALL, We have deployed embedded tomcat in RHEL 7 with jdk 1.8. For sweet32 vulnerability, we have configured jdk.tls.disabled.algorithm to remove the encryption cipher have 64bit block size. I need a clarification whether JDK configuration is enough for embedded tomcat to avoid sweet32

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-15 Thread Mark Thomas
On 11/03/2021 20:01, Doug Whitfield wrote: I am working on a fix which I expect to be in the releases due out in ~1 month's time. Thanks Mark! Is there any chance of a patch being available before then that we might be able to backport locally? It is fixed in 10.0.x, 9.0.x and 8.5.x now. I

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
> It exists in all 8.5.x, 9.0.x and 10.0.x versions. It has been there > since the beginning of HTTP/2 support. Based on our testing the issue was introduced in 9.0.19 and 8.5.55 (we haven’t done any testing on the 10.x branch), which is slightly after the beginning of HTTP/2 support. I don’t

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
>I am working on a fix which I expect to be in the releases due out in ~1 > month's time. Thanks Mark! Is there any chance of a patch being available before then that we might be able to backport locally? This e-mail may contain information that is privileged or confidential. If you are not t

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Mark Thomas
On 11/03/2021 19:09, Doug Whitfield wrote: Just FYI: I was able to reproduce this issue on 8.5.64 and 9.0.44. I’m going to start doing some testing in earlier versions of 8.5 to see if the issue exist there as well as far as regressions. It exists in all 8.5.x, 9.0.x and 10.0.x versions. I

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-11 Thread Doug Whitfield
-Original Message- From: Mark Thomas Sent: Wednesday, March 10, 2021 6:28 PM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url On 10/03/2021 05:26, Arshiya Shariff wrote: > Hi All, > We are

RE: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-10 Thread Arshiya Shariff
Thank you Mark . Please keep us posted regarding the fix . -Original Message- From: Mark Thomas Sent: Wednesday, March 10, 2021 6:28 PM To: users@tomcat.apache.org Subject: Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url On 10/03/2021

Re: Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-10 Thread Mark Thomas
On 10/03/2021 05:26, Arshiya Shariff wrote: Hi All, We are using embedded tomcat version 9.0.43 in our application to transport http/2 packets between 2 systems (h2c connection). All parameters used are the tomcat defaults. We are facing the below issue : 1. Tomcat is not sending

Embedded Tomcat 9.0.43 : WINDOW_UPDATE not sent when receiving http2 requests over unknown url

2021-03-09 Thread Arshiya Shariff
Hi All, We are using embedded tomcat version 9.0.43 in our application to transport http/2 packets between 2 systems (h2c connection). All parameters used are the tomcat defaults. We are facing the below issue : 1. Tomcat is not sending WINDOW_UPDATE when a request(payload > 65K) is lan

Re: embedded tomcat and context.xml

2020-12-04 Thread Christopher Schultz
Rob, On 12/3/20 17:46, Rob Sargent wrote: Again, much appreciated feedback.  (I never think what I'm doing is all that special) At this point, the fact that you are using embedded Tomcat is really just a detail that doesn't affect the greater question of how to manage your comple

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
ng way to explaining why there is so little specific information on embedding tomcat. Only programmers are interested in using embedded Tomcat, so having "Tomcat Embedded For Dummies" isn't terribly useful. (I don't mean to be insulting; I'm just trying to get my point acr

Re: embedded tomcat and context.xml

2020-12-03 Thread Christopher Schultz
Rob, On 12/3/20 11:03, Rob Sargent wrote: Thanks for you time. Your response goes a long way to explaining why there is so little specific information on embedding tomcat. Only programmers are interested in using embedded Tomcat, so having "Tomcat Embedded For Dummies" isn't

Re: embedded tomcat and context.xml

2020-12-03 Thread Rob Sargent
Chris, Thanks for you time. Your response goes a long way to explaining why there is so little specific information on embedding tomcat. Really, just as I said. I had convinced myself from several items encountered on the web that an embedded tomcat instance would not read the standard conf

Re: embedded tomcat and context.xml

2020-12-03 Thread Christopher Schultz
Rob, On 12/2/20 13:31, Rob Sargent wrote: I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./ Using tomcat 9.0.40    embeddedTomcat =new Tomcat();    embeddedTomcat.setPort(tomca

Re: embedded tomcat and context.xml

2020-12-02 Thread Rob Sargent
typo: should read "none of which are named in the web.xml" (not "which are NOT" as below) On 12/2/20 11:31 AM, Rob Sargent wrote: I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out ther

embedded tomcat and context.xml

2020-12-02 Thread Rob Sargent
I'm old and easily confused: does an embedded tomcat server read (any) context.xml file?  I find conflicting answers /out there./ Using tomcat 9.0.40 embeddedTomcat =new Tomcat(); embeddedTomcat.setPort(tomcatPort); embeddedTomcat.enableNaming(); embeddedTomcat.getConnector();

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

2020-10-27 Thread Arshiya Shariff
Subject: Re: FW: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) Arshiya, On 10/21/20 00:34, Arshiya Shariff wrote: > Hi, > > Christopher, Please find the answer in-line: > How... exactly? > private String getRequestBody(HttpServ

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

2020-10-21 Thread Christopher Schultz
-Original Message- > From: Christopher Schultz > Sent: Thursday, October 15, 2020 12:01 AM > To: users@tomcat.apache.org > Subject: Re: FW: HTTP2: memory filled up fast on increasing the connections > to 1000/2000 (Embedded tomcat 9.0.38) > > Arshiya, > > On 10/1

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

2020-10-20 Thread Arshiya Shariff
al Message- From: Christopher Schultz Sent: Thursday, October 15, 2020 12:01 AM To: users@tomcat.apache.org Subject: Re: FW: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) Arshiya, On 10/14/20 01:23, Arshiya Shariff wrote: > Please find t

Re: GraalVM native image for embedded Tomcat

2020-10-16 Thread Martin Grigorov
On Fri, Oct 16, 2020 at 3:43 PM Martin Grigorov wrote: > Hi, > > I am trying to create a GraalVM native image for an application that uses > tomcat-embed-core but it fails with the following error: > > [INFO] --- native-image-maven-plugin:20.2.0:native-image (default) @ > tomcat-embedded --- > [I

GraalVM native image for embedded Tomcat

2020-10-16 Thread Martin Grigorov
Hi, I am trying to create a GraalVM native image for an application that uses tomcat-embed-core but it fails with the following error: [INFO] --- native-image-maven-plugin:20.2.0:native-image (default) @ tomcat-embedded --- [INFO] ImageClasspath Entry: org.apache.tomcat.embed:tomcat-embed-core:ja

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

2020-10-14 Thread Christopher Schultz
Arshiya, On 10/14/20 01:23, Arshiya Shariff wrote: > Please find the answers in-line Mark. > > Http2 requests with message payload of 34KB are pumped from JMeter > at 20 TPS with 700 connections to an application with Embedded tomcat > - 9.0.39 (max-Threads : 200, all other

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

2020-10-13 Thread Arshiya Shariff
Hi , Please find the answers in-line Mark. Http2 requests with message payload of 34KB are pumped from JMeter at 20 TPS with 700 connections to an application with Embedded tomcat - 9.0.39 (max-Threads : 200, all other values are the tomcat defaults) What does that URL do with the POSTed

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

2020-10-12 Thread Mark Thomas
.org > Subject: Re: HTTP2: memory filled up fast on increasing the connections to > 1000/2000 (Embedded tomcat 9.0.38) > > On 09/10/2020 12:32, Arshiya Shariff wrote: >> Hi, >> >> Mark , with the test runs that I performed over clean 9.0.x branch I was not >> able to

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

2020-10-12 Thread Arshiya Shariff
:31 PM To: users@tomcat.apache.org Subject: Re: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) On 09/10/2020 12:32, Arshiya Shariff wrote: > Hi, > > Mark , with the test runs that I performed over clean 9.0.x branch I was not > able

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

2020-10-09 Thread Mark Thomas
ue is fixed. If we know which commit to look at that should help track down the root cause. Mark > > Thanks and Regards > Arshiya Shariff > > -Original Message- > From: Mark Thomas > Sent: Monday, October 5, 2020 9:52 PM > To: users@tomcat.apache.org > S

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

2020-10-09 Thread Martin Grigorov
ling list: It can be obtained from: https://dist.apache.org/repos/dist/dev/tomcat/tomcat-9/v9.0.39/ The Maven staging repo is: https://repository.apache.org/content/repositories/orgapachetomcat-1281/ Give it a try and vote! > Thanks and Regards > Arshiya Shariff > > -Origina

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

2020-10-09 Thread Arshiya Shariff
ober 5, 2020 9:52 PM To: users@tomcat.apache.org Subject: Re: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) On 05/10/2020 10:56, Arshiya Shariff wrote: > Hi All, > > Thank you so much Mark . > We tested the jars built from late

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-08 Thread Garret Wilson
On 10/7/2020 10:12 AM, Garret Wilson wrote: … But anyway, let me tell you the idea I had this morning. In a way, you hinted at it in your reply. Why do I need to use S3 as a store if my application is running on AWS, and AWS already has the AWS Certificate Manager which already manages an SSL

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-08 Thread Christopher Schultz
Garret, On 10/7/20 13:12, Garret Wilson wrote: > As always thanks for the discussion, Chris. More replies and a new idea > below: > > On 10/6/2020 2:45 PM, Christopher Schultz wrote: >> … >> What if your Docker container would just run certbot on launch? > > But then I'm back to being a sysadmin

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-07 Thread Garret Wilson
As always thanks for the discussion, Chris. More replies and a new idea below: On 10/6/2020 2:45 PM, Christopher Schultz wrote: … What if your Docker container would just run certbot on launch? But then I'm back to being a sysadmin, because the Docker container is like a little OS and I have

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-06 Thread James H. H. Lampert
On 10/6/20 2:48 PM, Christopher Schultz wrote: Thanks for mentioning LEGO. Any time I've been mentioning certbot, you can replace that with $your-favorite-acme-client. You're welcome. LEGO definitely cut my Gordian Knot on that particular project, wherein Certbot absolutely, positively, refus

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-06 Thread Christopher Schultz
James, On 10/5/20 19:59, James H. H. Lampert wrote: > I'm coming into this conversation late, so what I say could be > completely irrelevant, but when I recently set up an independent (i.e., > not behind httpd) Tomcat server on one of our AWS EC2 instances, and > could not get certbot to function

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-06 Thread Christopher Schultz
o Tomcat, but Tomcat is not >> likely to ship with an Amazon-specific feature built-into it. > > > Read my original email. I never intended to put this directly into > standalone Tomcat (although if you want to put it into Tomcat you're > welcome to). I want to use

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-05 Thread James H. H. Lampert
I'm coming into this conversation late, so what I say could be completely irrelevant, but when I recently set up an independent (i.e., not behind httpd) Tomcat server on one of our AWS EC2 instances, and could not get certbot to function at all, to save my life, I ended up using something calle

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-05 Thread Garret Wilson
you could put that directly into Tomcat, but Tomcat is not likely to ship with an Amazon-specific feature built-into it. Read my original email. I never intended to put this directly into standalone Tomcat (although if you want to put it into Tomcat you're welcome to). I want to use th

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-05 Thread Christopher Schultz
gine a LifecycleListener which has been written with this kind of thing in mind. (I'm not sure that a LifecycleListener would be able to intervene early enough in the process of a non-embedded Tomcat startup to do this, btw; just an idea.) Another idea would be to use embedded Tomcat (or, at

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-05 Thread Garret Wilson
etely in the application without shelling out to openssl or keytool? I'm hoping Bouncy Castle and/or acme4j-util will allow me to do that. 3. Once I have the PKCS12, how do I feed it to the embedded Tomcat? Chris, where can I get more information on the latter questions about getting th

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

2020-10-05 Thread Mark Thomas
On 05/10/2020 10:56, Arshiya Shariff wrote: > Hi All, > > Thank you so much Mark . > We tested the jars built from latest 9.0.x with 2000 / 5000 users > (connections) from JMeter , We see a very good improvement with the heap > usage Good news. As is the fact that the other errors have been

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-05 Thread Christopher Schultz
ed that zero nodes are required), what do clients contact to make that initial connection for the orchestrator to spin-up that first instance? > For this reason libraries like Spring Boot allow you to deploy your Java > application as a standalone JAR with embedded Tomcat. The JAR represents > t

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

2020-10-05 Thread Arshiya Shariff
mas Sent: Thursday, October 1, 2020 2:59 PM To: users@tomcat.apache.org Subject: Re: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) On 30/09/2020 18:47, Martin Grigorov wrote: > On Wed, Sep 30, 2020 at 7:47 PM Mark Thomas wrote: >>

Re: completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-04 Thread Martynas Jusevičius
r an orchestrator) > spins up others. > > For this reason libraries like Spring Boot allow you to deploy your Java > application as a standalone JAR with embedded Tomcat. The JAR represents > the completely independent application. You just throw it on a node and > it runs and provides

completely automated (for real) Let's Encrypt on embedded Tomcat

2020-10-04 Thread Garret Wilson
have a bunch of service/worker/agent application that are identical and redundant. You spin up as many as you need; if some go down, you (or an orchestrator) spins up others. For this reason libraries like Spring Boot allow you to deploy your Java application as a standalone JAR with embedded

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

2020-10-01 Thread Arshiya Shariff
(Embedded tomcat 9.0.38) On 30/09/2020 18:47, Martin Grigorov wrote: > On Wed, Sep 30, 2020 at 7:47 PM Mark Thomas wrote: >> On 30/09/2020 16:17, Mark Thomas wrote: >>> That is helpful. Looks like you have found a way to reproduce the >>> buffer issues reported in

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

2020-10-01 Thread Martin Grigorov
On Thu, Oct 1, 2020 at 12:29 PM Mark Thomas wrote: > On 30/09/2020 18:47, Martin Grigorov wrote: > > On Wed, Sep 30, 2020 at 7:47 PM Mark Thomas wrote: > >> On 30/09/2020 16:17, Mark Thomas wrote: > > > > >>> That is helpful. Looks like you have found a way to reproduce the > buffer > >>> issue

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

2020-10-01 Thread Mark Thomas
On 30/09/2020 18:47, Martin Grigorov wrote: > On Wed, Sep 30, 2020 at 7:47 PM Mark Thomas wrote: >> On 30/09/2020 16:17, Mark Thomas wrote: >>> That is helpful. Looks like you have found a way to reproduce the buffer >>> issues reported in https://bz.apache.org/bugzilla/show_bug.cgi?id=64710 >>

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

2020-09-30 Thread Martin Grigorov
On Wed, Sep 30, 2020 at 7:47 PM Mark Thomas wrote: > On 30/09/2020 16:17, Mark Thomas wrote: > > On 30/09/2020 13:53, Martin Grigorov wrote: > >> On Wed, Sep 30, 2020 at 12:50 PM Martin Grigorov > > > > > > > > > >> When I load test HTTP2 with POST (with big bodies) there are many errors > >> l

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

2020-09-30 Thread Mark Thomas
On 30/09/2020 16:17, Mark Thomas wrote: > On 30/09/2020 13:53, Martin Grigorov wrote: >> On Wed, Sep 30, 2020 at 12:50 PM Martin Grigorov > > > > >> When I load test HTTP2 with POST (with big bodies) there are many errors >> like: >> >> 1) >> Exception in thread "https-jsse-nio-8080-exec-5" >>

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

2020-09-30 Thread Mark Thomas
20 12:25 AM > To: users@tomcat.apache.org > Subject: Re: HTTP2: memory filled up fast on increasing the connections to > 1000/2000 (Embedded tomcat 9.0.38) > > On 28/09/2020 17:58, Arshiya Shariff wrote: >> Hi All, >> With 200 threads(users) , ramp up duration of 2

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

2020-09-30 Thread Mark Thomas
On 30/09/2020 13:53, Martin Grigorov wrote: > On Wed, Sep 30, 2020 at 12:50 PM Martin Grigorov > When I load test HTTP2 with POST (with big bodies) there are many errors > like: > > 1) > Exception in thread "https-jsse-nio-8080-exec-5" > java.nio.BufferOverflowException > at java.base/java.ni

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

2020-09-30 Thread Martin Grigorov
35373 } , i.e. just a small portion of the requests fail. If I tell Vegeta to use HTTP1.1 (-http2=f) then everything is OK. It could be a problem in Vegeta too. The memory usage is just fine (as in the chart for GET). Martin > Martin > > >> >> Mark >> >&g

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

2020-09-30 Thread Martin Grigorov
- there I get GOAWAY+ENHANCE_YOUR_CALM for very low load. Martin > > Mark > > > > > > Thanks and Regards > > Arshiya Shariff > > > > -Original Message- > > From: Martin Grigorov > > Sent: Monday, September 28, 2020 11:44 PM > >

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

2020-09-30 Thread Mark Thomas
back-port to 9.0.x and 8.5.x later today that should significantly reduce the heap requirements. Mark > > Thanks and Regards > Arshiya Shariff > > -Original Message- > From: Martin Grigorov > Sent: Monday, September 28, 2020 11:44 PM > To: Tomcat Users List

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

2020-09-30 Thread Arshiya Shariff
ge- From: Mark Thomas Sent: Tuesday, September 29, 2020 12:25 AM To: users@tomcat.apache.org Subject: Re: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) On 28/09/2020 17:58, Arshiya Shariff wrote: > Hi All, > With 200 threads(users) , ram

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

2020-09-30 Thread tomcat/perl
ginal Message- From: Martin Grigorov Sent: Monday, September 28, 2020 11:44 PM To: Tomcat Users List Subject: Re: HTTP2: memory filled up fast on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) Hi Arshiya, On Mon, Sep 28, 2020 at 7:59 PM Arshiya Shariff wrote: Hi All,

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

2020-09-29 Thread Arshiya Shariff
st on increasing the connections to 1000/2000 (Embedded tomcat 9.0.38) Hi Arshiya, On Mon, Sep 28, 2020 at 7:59 PM Arshiya Shariff wrote: > Hi All, > With 200 threads(users) , ramp up duration of 2 seconds , loop count > 80 and by sending 1000 http2 requests/sec from JMeter Client to an >

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

2020-09-28 Thread Mark Thomas
On 28/09/2020 17:58, Arshiya Shariff wrote: > Hi All, > With 200 threads(users) , ramp up duration of 2 seconds , loop count 80 and > by sending 1000 http2 requests/sec from JMeter Client to an embedded tomcat > application we did not observe any memory issue , but on sendin

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

2020-09-28 Thread Martin Grigorov
Hi Arshiya, On Mon, Sep 28, 2020 at 7:59 PM Arshiya Shariff wrote: > Hi All, > With 200 threads(users) , ramp up duration of 2 seconds , loop count 80 > and by sending 1000 http2 requests/sec from JMeter Client to an embedded > tomcat application we did not observe any memory is

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

2020-09-28 Thread Christopher Schultz
Arshiya, On 9/28/20 12:58, Arshiya Shariff wrote: > With 200 threads(users) , ramp up duration of 2 seconds , loop count > 80 and by sending 1000 http2 requests/sec from JMeter Client to an > embedded tomcat application we did not observe any memory issue , but > on sending 1000 ht

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

2020-09-28 Thread Arshiya Shariff
Hi All, With 200 threads(users) , ramp up duration of 2 seconds , loop count 80 and by sending 1000 http2 requests/sec from JMeter Client to an embedded tomcat application we did not observe any memory issue , but on sending 1000 http2 requests/sec with 2000 or 1000 users from JMeter , the

Re: Classloading Behavior in Embedded Tomcat

2020-07-25 Thread Chirag Dewan
your scenario works in a stand alone Tomcat >>> first and once you have that working, transfer it to embedded with >>> particular attention to class loader configuration. >>> >>> Mark >>> >>> >>> > >>> > Chirag >>&g

Re: Classloading Behavior in Embedded Tomcat

2020-07-23 Thread Chirag Dewan
t >> first and once you have that working, transfer it to embedded with >> particular attention to class loader configuration. >> >> Mark >> >> >> > >> > Chirag >> > >> > On Wed, 22 Jul, 2020, 4:03 pm Mark Thomas, wrote: >&g

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
g Dewan wrote: > >>> Hi, > >>> > >>> Due to some backward compatibility concerns, I need to support both > >>> Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded > >>> tomcat which runs inside a JVM application. &g

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Mark Thomas
lass loader configuration. Mark > > Chirag > > On Wed, 22 Jul, 2020, 4:03 pm Mark Thomas, wrote: > >> On 22/07/2020 11:18, Chirag Dewan wrote: >>> Hi, >>> >>> Due to some backward compatibility concerns, I need to support both >>> Jerse

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
lity concerns, I need to support both > > Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded > > tomcat which runs inside a JVM application. > > > > Since, Jersey-1 and Jersey-2 have different JAXRS versions, I tried to > > remove both jsr311 an

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Mark Thomas
On 22/07/2020 11:18, Chirag Dewan wrote: > Hi, > > Due to some backward compatibility concerns, I need to support both > Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded > tomcat which runs inside a JVM application. > > Since, Jersey-1 and Jersey-2

Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
Hi, Due to some backward compatibility concerns, I need to support both Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded tomcat which runs inside a JVM application. Since, Jersey-1 and Jersey-2 have different JAXRS versions, I tried to remove both jsr311 and javax.ws.rs-2

Re: keepAliveTimeout/connectionTimeout not working with configured values - Embedded Tomcat 9.0.35

2020-05-29 Thread Mark Thomas
On 29/05/2020 05:49, Arshiya Shariff wrote: > Hi Mark , > >   > > *We have upgraded the Embedded tomcat version from 9.0.22 to 9.0.35 *and > tried setting the *keepAliveTimeout/connectionTimeout* to *4ms / -1 > *, via the IntrospectionUtils by extendin

keepAliveTimeout/connectionTimeout not working with configured values - Embedded Tomcat 9.0.35

2020-05-28 Thread Arshiya Shariff
Hi Mark , We have upgraded the Embedded tomcat version from 9.0.22 to 9.0.35 and tried setting the keepAliveTimeout/connectionTimeout to 4ms / -1 , via the IntrospectionUtils by extending the Connector class: IntrospectionUtils.setProperty( this, "keepAliveTimeout", Stri

Re: [E] Re: Official documentation for running an embedded Tomcat server

2019-11-25 Thread Bauer, Margaret M (Peggy)
Ease of deployment and build in the AWS world. On Mon, Nov 25, 2019 at 3:56 PM Behrang Saeedzadeh wrote: > For an example use case, see Spring Boot. It can use an embedded Tomcat and > build an executable Uber Jar. Then you can start your Web app by running > java -jar app.jar. >

  1   2   3   4   5   6   7   >