RE: Tomcat 9.0.65 suspected memory leak

2023-02-10 Thread Chen Levy
Thanks Mark, workaround seem to be working Chen > -Original Message- > From: Mark Thomas > Sent: Thursday, February 9, 2023 12:41 > To: users@tomcat.apache.org > Subject: Re: Tomcat 9.0.65 suspected memory leak > > On 09/02/2023 13:25, Mark Thomas wrote: > >

Re: Tomcat 9.0.65 suspected memory leak

2023-02-09 Thread Mark Thomas
On 09/02/2023 13:25, Mark Thomas wrote: On 09/02/2023 13:04, Mark Thomas wrote: On 04/02/2023 22:06, Chen Levy wrote: Mark, I believe a change in Tomcat 9.0.65 causes it to accumulate open connections: I took a fresh Tomcat, unzipped and modified server.xml with only the following: 1

Re: Tomcat 9.0.65 suspected memory leak

2023-02-09 Thread Mark Thomas
On 09/02/2023 13:04, Mark Thomas wrote: On 04/02/2023 22:06, Chen Levy wrote: Mark, I believe a change in Tomcat 9.0.65 causes it to accumulate open connections: I took a fresh Tomcat, unzipped and modified server.xml with only the following: 1. Changed port 8080 to port 80 2. Changed port

Re: Tomcat 9.0.65 suspected memory leak

2023-02-09 Thread Mark Thomas
On 04/02/2023 22:06, Chen Levy wrote: Mark, I believe a change in Tomcat 9.0.65 causes it to accumulate open connections: I took a fresh Tomcat, unzipped and modified server.xml with only the following: 1. Changed port 8080 to port 80 2. Changed port 8443 to port 443 3. Uncommented the nio

RE: Tomcat 9.0.65 suspected memory leak

2023-02-04 Thread Chen Levy
> -Original Message- > From: Mark Thomas > Sent: Monday, September 19, 2022 13:02 > To: users@tomcat.apache.org > Subject: Re: Tomcat 9.0.65 suspected memory leak > > On 15/09/2022 14:11, Chen Levy wrote: > > Hello Experts > > > > We’ve recently

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Mark Thomas
On 12/01/2023 10:50, Simon Matter wrote: On 12/01/2023 05:08, Fedor Makarov wrote: lundase and vvsguiden webapps used on different domains My recommendation would be to configure Tomcat for virtual hosting as well. [1] For example, configure the following hosts in the local hosts file: lund

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Simon Matter
> On 12/01/2023 05:08, Fedor Makarov wrote: >> >> lundase and vvsguiden webapps used on different domains > > My recommendation would be to configure Tomcat for virtual hosting as > well. [1] > > For example, configure the following hosts in the local hosts file: > > lundase-local > vvsguiden-local

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-12 Thread Mark Thomas
On 12/01/2023 05:08, Fedor Makarov wrote: lundase and vvsguiden webapps used on different domains My recommendation would be to configure Tomcat for virtual hosting as well. [1] For example, configure the following hosts in the local hosts file: lundase-local vvsguiden-local Then the http

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-11 Thread Fedor Makarov
lundase and vvsguiden webapps used on different domains   <-->ServerName new.vvsguiden-dev.gridnine.com <-->ServerAlias localhost <-->ServerAdmin webmaster@localhost <-->DocumentRoot /var/www/html   <-->RewriteEngine on   <-->ProxyPreserveHost on                       Ord

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-10 Thread Mark Thomas
On 10/01/2023 04:37, Fedor Makarov wrote: Also I tried to write a filter to manually redirect, but tomcat intercepts the request before it gets into the filter. Can I disable this behavior for tomcat and do it manually? That isn't the way to solve this problem. The problem is in the reverse

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Fedor Makarov
Also I tried to write a filter to manually redirect, but tomcat intercepts the request before it gets into the filter. Can I disable this behavior for tomcat and do it manually?   >Понедельник, 9 января 2023, 11:43 +03:00 от Fedor Makarov >: >  > > >We have to webapps lundase and vvsguiden th

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Christopher Schultz
Fedor, On 1/9/23 03:43, Fedor Makarov wrote: We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable Why not? on debug I saw that RequestURI in request looks like lundase/lundase/... Probably because of this: >>> RewriteRule ^(.*)$ http://

Re: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread Fedor Makarov
We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable on debug I saw that RequestURI in request looks like lundase/lundase/...   >Вторник, 27 декабря 2022, 22:06 +03:00 от Christopher Schultz >: >  >Fedor, > >On 12/27/22 05:55, Fedor Makarov

RE: Problems with requests without trailing slash Tomcat 9.0.65

2023-01-09 Thread alik alikov
We have to webapps lundase and vvsguiden therefore, the options you have suggested do not look applicable on debug I saw that RequestURI in request looks like lundase/lundase/... 27.12.2022, 22:07, Christopher Schultz < mailto:ch...@christopherschultz.net ch...@christopherschultz.net > Fedor, O

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Christopher Schultz
Fedor, On 12/27/22 05:55, Fedor Makarov wrote: proxy for local environment we use the js conf: proxy: {     '/api/': {       target: 'http://localhost:8080/',       changeOrigin: false,     },     '/': {       target: 'http://localhost:8080/lundase',       changeOrigin: false     }   }

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Fedor Makarov
"         import="com.gridnine.platform.common.lundase.model.content.*" %><% MetaVO meta = SiteMetadataHelper.getStaticMeta(MainSitePage.LUNDA_ONLINE); %>               >Вторник, 27 декабря 2022, 13:42 +03:00 от Mark Thomas : >  > >On 27/12/2022 06:25, Fedo

Re: Problems with requests without trailing slash Tomcat 9.0.65

2022-12-27 Thread Mark Thomas
On 27/12/2022 06:25, Fedor Makarov wrote: Tomcat 9.0.65 Hello I have some problems with redirects by requests without trailing slashes. When I try to get to the page for example: "about/page" tomcat understands that it is necessary to add a slash and adds it, however, he als

Problems with requests without trailing slash Tomcat 9.0.65

2022-12-26 Thread Fedor Makarov
  Tomcat 9.0.65 Hello I have some problems with redirects by requests without trailing slashes.   When I try to get to the page for example: "about/page" tomcat understands that it is necessary to add a slash and adds it, however, he also adds the name of the root folder to this, th

RE: Tomcat 9.0.65

2022-12-26 Thread alik alikov
Mark please answer me I really can't see your message when I open it, and how can I send you needed information with normally formatting bec yours mail bot formating it with escaping line breaks 21.12.2022, 13:38, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >

RE: Tomcat 9.0.65

2022-12-26 Thread alik alikov
Can you help me with my problem? 21.12.2022, 13:38, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >

RE: Tomcat 9.0.65 trailing slashes redirects

2022-12-22 Thread alik alikov
private Context addWebapp(final Host host, final String url, final String name, final String path, final PluginDescriptor pluginDescriptor, final AddContextListener contextAddListened) { silence(host, url); final PluginManager manager = PluginManager.lookup(getClass().getClassLoader()); final C

RE: Tomcat 9.0.65

2022-12-22 Thread alik alikov
. 21.12.2022, 13:38, Tomcat Users List < mailto:users@tomcat.apache.org users@tomcat.apache.org > Main lundagrossisten site lundagrossisten.se web application 1 0 client-error-logging-servlet com.gridnine.platform.server.lundase.web.servlet.ClientErrorLoggingServlet

RE: Tomcat 9.0.65

2022-12-22 Thread alik alikov
And sometimes I don't see your message when I opened them 21.12.2022, 13:38, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >

RE: Tomcat 9.0.65

2022-12-22 Thread alik alikov
Hello can I attach the files to these messages? 21.12.2022, 13:38, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >

Re: Tomcat 9.0.65

2022-12-21 Thread Mark Thomas
The information you posted is missing line breaks and is extremely difficult to parse. Please re-post with line breaks. Mark On 21/12/2022 08:02, alik alikov wrote: Main lundagrossisten site lundagrossisten.se web application 1 0client-error-logging-servlet com.gridnine.platform.server

RE: Tomcat 9.0.65

2022-12-21 Thread alik alikov
Main lundagrossisten site lundagrossisten.se web application 1 0 client-error-logging-servlet com.gridnine.platform.server.lundase.web.servlet.ClientErrorLoggingServlet client-error-logging-servlet /client-error/* warehouses-servlet com.gridnine.platform.server.lundase.web.ser

RE: Tomcat 9.0.65

2022-12-20 Thread alik alikov
for local lunch we use proxy on js: proxy: {'/api/': { target: 'http://localhost:8080/', changeOrigin: false, },'/': { target: 'http://localhost:8080/lundase', changeOrigin: false } }, for normal lunch we use apache2.conf: RewriteCond %{REQUEST_URI} ^(/api/|/mapi/|/binary/|/rpc/invoker/) Rewrit

RE: Tomcat 9.0.65

2022-12-20 Thread alik alikov
private Context addWebapp(final Host host, final String url, final String name, final String path, final PluginDescriptor pluginDescriptor, final AddContextListener contextAddListened) { silence(host, url); final PluginManager manager = PluginManager.lookup(getClass().getClassLoader()); final C

Re: Tomcat 9.0.65

2022-12-20 Thread Mark Thomas
You'll need to provide: - The httpd proxy configuration - the context path - the servlet mapping(s) - the code that generates the problematic link - the URL of the request that triggers the problem Mark On 20/12/2022 07:37, alik alikov wrote: Hello I have some problems with trailing slashes.

Tomcat 9.0.65

2022-12-19 Thread alik alikov
Hello I have some problems with trailing slashes. When I try to get to the page for example: "about/page" tomcat understands that it is necessary to add a slash and adds it, however, he also adds the name of the root folder to this, that is, the url "lundase/about/page/" turns out, and any reque

RE: Tomcat 9.0.65 Failed stop jpf application in shell mode

2022-12-12 Thread alik alikov
nternal > INFO: Starting service [Tomcat] > dec 08, 2022 12:59:48 PM org.apache.catalina.core.StandardEngine startInternal > INFO: Starting Servlet engine: [Apache Tomcat/9.0.65] > dec 08, 2022 12:59:48 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["http-nio2-8080"]

RE: Tomcat 9.0.65 Failed stop jpf application in shell mode

2022-12-12 Thread alik alikov
nternal > INFO: Starting service [Tomcat] > dec 08, 2022 12:59:48 PM org.apache.catalina.core.StandardEngine startInternal > INFO: Starting Servlet engine: [Apache Tomcat/9.0.65] > dec 08, 2022 12:59:48 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["http-nio2-8080"]

Re: Tomcat 9.0.65 Failed stop jpf application in shell mode

2022-12-12 Thread Mark Thomas
ntially) shared, external executor. dec 08, 2022 12:59:48 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service [Tomcat] dec 08, 2022 12:59:48 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.65]

RE: Tomcat 9.0.65

2022-12-11 Thread alik alikov
I did it because bot send me invalid something on my messages I think my sended message wasn't sent 12.12.2022, 10:52, Mark Thomas < mailto:ma...@apache.org ma...@apache.org >

Re: Tomcat 9.0.65

2022-12-11 Thread Mark Thomas
Please don't re-post the same question multiple times. It won't get your question answered any faster. Mark On 12/12/2022 06:20, alik alikov wrote: Tomcat 9.0.65 When I try to shut down the application in the IDE console by 'q' application doesn't stopped. T

Tomcat 9.0.65

2022-12-11 Thread alik alikov
Tomcat 9.0.65 When I try to shut down the application in the IDE console by 'q' application doesn't stopped. Thread Dump in attachments. Console log: dec 08, 2022 12:59:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-nio2-8080"]

Tomcat 9.0.65 Failed stop jpf application in shell mode

2022-12-11 Thread alik alikov
alina.core.StandardEngine startInternal INFO: Starting Servlet engine: [Apache Tomcat/9.0.65] dec 08, 2022 12:59:48 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-nio2-8080"] dec 08, 2022 12:59:49 PM org.apache.catalina.startup.ContextConfig getDe

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-10-01 Thread Chew Kok Hoor
Hi all, Just an update for anyone interested. I ditched the idea because there are times the sessions are somehow just not copied correctly, and this is just a 2 node cluster. As I am using AKS load balancer, I am not able to use ip_hash for nginx. Instead I am now using redisson (I am

Re: Tomcat 9.0.65 suspected memory leak

2022-09-19 Thread Mark Thomas
On 15/09/2022 14:11, Chen Levy wrote: Hello Experts We’ve recently upgraded some of our production servers to Tomcat 9.0.65; every upgraded server crashed with java.lang.OutOfMemoryError within an hour or so under load. The exact same setup (same application, Linux kernel, Java version etc

Tomcat 9.0.65 suspected memory leak

2022-09-15 Thread Chen Levy
Hello Experts We've recently upgraded some of our production servers to Tomcat 9.0.65; every upgraded server crashed with java.lang.OutOfMemoryError within an hour or so under load. The exact same setup (same application, Linux kernel, Java version etc.) with Tomcat 9.0.63 does not ex

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-17 Thread Chew Kok Hoor
Hi Chris, Following are my setup. It seems to work but I am not sure if I did things correctly: 1. In my server.xml, I followed the setup in javadoc https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/tribes/membership/cloud/DNSMembershipProvider.html for the cluster tag.

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-17 Thread Christopher Schultz
All, If you are havig issues with the CloudMembershipService, I would highly recommend that you continue to have this discussion. The original author (remm) was mostly targeting OpenShift (he works for RedHat, so it's not a surprise) but it doesn't mean that its support cannot expand to incl

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-15 Thread Thomas Meyer
Am 15. August 2022 03:47:18 MESZ schrieb Chew Kok Hoor : >Hi Thomas, Hi, >Thanks for pointing me to another option which is the >DNSMembershipService. > >Hope you can help to clarify two things in the dns-membership-service.yml: > >1. For spec.port, is port mandatory? Or can it be any

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Chew Kok Hoor
Hi Thomas, Thanks for pointing me to another option which is the DNSMembershipService. Hope you can help to clarify two things in the dns-membership-service.yml: 1. For spec.port, is port mandatory? Or can it be any other number? I checked the source code for DNSMembershipService.java a

Re: Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Thomas Meyer
Hi, Two remarks from my side: 1. CloudMembershipService is not so usable, and seems to originally target OpenShift. To make it work you need to create ServiceAccount and give read permission for listing all pods in namespace. This seems to be missing in your case. It also has some assumptions a

Tomcat 9.0.65 Clustering in Azure Kubernetes Service (AKS)

2022-08-14 Thread Chew Kok Hoor
Hi, I am trying to setup Tomcat clustering running in AKS, however the standard settings don't seem to work. As per the documentation I have setup following Cluster configuration in server.xml inside my tag: But I received a 'Failed

Re: AW: [ANN] Apache Tomcat 9.0.65 available

2022-07-21 Thread Mark Thomas
20. Juli 2022 23:18 An: Tomcat Developers List ; Tomcat Users List ; annou...@tomcat.apache.org; annou...@apache.org Betreff: [ANN] Apache Tomcat 9.0.65 available The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.65. Apache Tomcat 9 is an open source software implement

AW: [ANN] Apache Tomcat 9.0.65 available

2022-07-20 Thread Thomas Hoffmann (Speed4Trade GmbH)
pache.org; > annou...@apache.org > Betreff: [ANN] Apache Tomcat 9.0.65 available > > The Apache Tomcat team announces the immediate availability of Apache > Tomcat 9.0.65. > > Apache Tomcat 9 is an open source software implementation of the Java > Servlet, JavaServer Pages, Java Uni

[ANN] Apache Tomcat 9.0.65 available

2022-07-20 Thread Rémy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 9.0.65. Apache Tomcat 9 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language, Java WebSocket and JASPIC technologies. Apache Tomcat 9.0.65 is a bugfix and