Re: memory leak analysis

2025-07-31 Thread Zdeněk Henek
Hi Mircea, G1 has a time limit to collect objects not used in the young generation and if the time limit (200ms by default) is not reached it may continue with collecting unused objects from the old generation. Depends on your context, but I saw applications with small heap where almost all heap w

Re: memory leak analysis

2025-07-29 Thread Zdeněk Henek
Hi Mircea, the heap may not get smaller but data inside the old heap may be collected and memory freed, depending what gc algorithm you use in your application. Old gen space could be collected even without full gc running. It will be better to publish the gc log or show information of the analy

Re: Tomcat Performance from JMX data

2025-06-04 Thread Zdeněk Henek
Hi Mark, you could add javamelody to your war file and have monitoring as part of your application. Link to javamelody https://github.com/javamelody/javamelody I use this in all applications we distribute to customers as war files for many years. Super useful. Regards, Zdenek Henek On Wed, Jun

Re: Tomcat 9.0.x support Java 17 ?

2025-05-28 Thread Zdeněk Henek
Hi, here is all you need https://tomcat.apache.org/whichversion.html We run Tomcat 9 even with OpenJDK 21. Regards, Zdenek Henek On Wed, May 28, 2025 at 5:04 AM dineshk wrote: > Hi Team, > Could anybody clarify on if we could use Java 17 with Java EE specs with > tomcat 9.0.x ? > > RegardsDin

Re: Tomcat 9, ClassCast exception

2025-05-21 Thread Zdeněk Henek
://webapps/app3/WEB-INF/lib/javax.mail-1.6.2.jar [558992.864s][info][class,load] com.sun.mail.handlers.text_html source: file://webapps/app4/WEB-INF/lib/javax.mail-1.6.2.jar Regards, Zdenek Henek On Wed, May 21, 2025 at 12:44 PM Zdeněk Henek wrote: > Hello, > > I am getting these errors

Tomcat 9, ClassCast exception

2025-05-21 Thread Zdeněk Henek
Hello, I am getting these errors in one of our systems: java.lang.ClassCastException: class com.sun.mail.handlers.text_html cannot be cast to class javax.activation.DataContentHandler (com.sun.mail.handlers.text_html is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoa

Re: [SECURITY] CVE-2025-31650 Apache Tomcat - DoS via invalid HTTP prioritization header

2025-04-29 Thread Zdeněk Henek
Hi, I have looked at the commits and all have in changes http2. Is this an issue in case we don't use http2? Thank you. Regards, Zdenek Henek On Mon, Apr 28, 2025 at 7:12 PM Mark Thomas wrote: > CVE-2025-31650 Apache Tomcat - DoS via invalid HTTP prioritization header > > Severity: High > > V

Re: Jakarta Mail JNDI configuration

2024-11-26 Thread Zdeněk Henek
Hi Ricardo, Could you provide what Tomcat version you use? Is it possible you use Tomcat 9 and you should use library using javax.mail api instead of library based on new jakarta namespace? Regards, Zdenek Henek On Tue, Nov 26, 2024 at 8:43 AM Ricardo Almeida wrote: > Hi, > > I'm trying to con

Re: stack trace from tomcat when I try to start my webpage on my LAN

2024-10-17 Thread Zdeněk Henek
Tomcat has migration tool for older applications https://tomcat.apache.org/download-migration.cgi Best would be to rewrite the app to import jakartaee package (JakartaEE) instead of javax (JavaEE) and upgrade all libraries you use in the war to be JakartaEE compatible. Zdenek On Wed, Oct 16, 202

Re: Tomcat upgrade from 9.0.80 to 9.0.81

2023-10-13 Thread Zdeněk Henek
Thank you. That is what I was about to ask :). I was using the dev release of 9.0.82. Our QA is testing our application with Tomcat 9.0.82. So far it looks good. Regards, Zdenek Henek On Thu, Oct 12, 2023 at 9:08 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > All, > > On 10/11/

Re: [OT] Issues with XMLDSIG

2023-03-13 Thread Zdeněk Henek
at 7:12 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Zdeněk, > > On 3/13/23 12:57, Zdeněk Henek wrote: > > I have implemented SAML 2.0 Service Provider using > > https://github.com/spring-attic/spring-security-saml It is not > developed > > a

Re: [OT] Issues with XMLDSIG

2023-03-13 Thread Zdeněk Henek
Hi Chris, I have implemented SAML 2.0 Service Provider using https://github.com/spring-attic/spring-security-saml It is not developed anymore, but ... I don't have my dev env available till Sunday, if you would like I could use your Okta configuration next week to connect to my service provider

Re: Increase in GC Pause time in tomcat http2 9.0.56

2022-08-30 Thread Zdeněk Henek
HI Arshiya, MaxGCPauseMillis=100 maybe this is too strict? Causing you run into full gc. Jdk8 G1GC implementation has single thread full gc and these take more time to finish? Just guessing as you have not written if the long pause gcs are young gen pauses or full gc pauses. Another option which c

Re: *** Payara, GlassFish or Tomcat ***

2022-07-21 Thread Zdeněk Henek
Amn, Our application is tested with Weblogic and Tomcat. I was asked to port our application to any free application server or web container. I picked Tomcat 5.5, now we are on Tomcat 9. I have to say maintaining our app and its installer for Tomcat is very easy. Very good backward compatibility a

Re: Catalina.policy for SAP BO

2022-05-11 Thread Zdeněk Henek
Hi, Java Security Manager is deprecated in jdk 17 release https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/SecurityManager.html and may be even removed soon. Regards, Zdenek Henek On Wed, May 11, 2022 at 10:14 AM Chavez Ortiz, Oscar (Externo) < oscar.chavez.exte...@vwfs.com

Re: Tomcat service switches to another JDK under the hood

2022-04-11 Thread Zdeněk Henek
t; - there is one extra 3rd party "hotfolder" Java app running as a service > (JDK 8 is used in this case) > > > -Original Message- > From: Zdeněk Henek > Sent: Monday, April 11, 2022 1:04 PM > To: Tomcat Users List > Subject: Re: Tomcat service switches

Re: Tomcat service switches to another JDK under the hood

2022-04-11 Thread Zdeněk Henek
Hi Jan, looks like somebody/something has restarted tomcat with different JAVA_HOME/PATH variables. It is not possible to change jvm process while running. Another option could be you have there running two tomcat instances. Create cmd file e.g. tomcatStart.cmd with content like set JAVA_HOME=c

Re: Tomcat 7 giving java.lang.OutOfMemoryError: unable to create new native thread Exception in Catalina.out after upgrading to RHEL 7.4

2017-09-19 Thread Zdeněk Henek
Hi, try configure HTTP NIO https://tomcat.apache.org/tomcat-7.0-doc/config/http.html#NIO_specific_configuration or upgrade to Tomcat 8 where HTTP NIO is on by default. This could help in case your server is able to process the requests e.g. you have spike where you have to process thousands of re

Tomcat 8.0.39 and tomcat 8.5.8 fails handling requsest

2016-11-15 Thread Zdeněk Henek
Hi, we are using tomcat 8.0.30 without problems. I have tested upgrade to 8.0.38 today and I got this error More env. details JDK 8, tested on both Linux and Windows using different JDK 8 updates (71, 111). 15-Nov-2016 17:14:51.189 INFO [http-nio-8080-exec-2] org.apache.coyote.http11.AbstractHtt

Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread Zdeněk Henek
I would start with moving this tomcat to its own hw. Did you check swap? This long pauses could be because part of your heap is swapped to hdd Regards, Zdenek Henek On Tue, Nov 15, 2016, 21:37 George I. Develekos wrote: > > On 15-Nov-16 10:22 PM, Christopher Schultz wrote: > > > > George, > >

Re: Please help with Tomcat Garbage Collection

2016-11-15 Thread Zdeněk Henek
Is there running something else in that server? Real time should be never bigger than user+sys Z On Tue, Nov 15, 2016, 16:46 George I. Develekos wrote: > Hello guys, > > We are having problems on a production system with very long "full GC" > times, as long as1200sec real time (!!!). > > We are

Re: tomcat jmx disabled by default ?

2013-04-07 Thread Zdeněk Henek
Hi Jakub, do you have running Tomcat and JConsole as same user? JMX should really work out of box when both Tomcat and JConsole/JVisualVM are in same machine and same user. Regards, Zdenek On Sun, Apr 7, 2013 at 9:15 PM, Neven Cvetkovic wrote: > Mark, > > When connecting to local jmx, connect

jboss jta manager in Tomcat

2012-01-31 Thread Zdeněk Henek
Hi, I am wondering if anybody uses JBoss jta transaction manager in Tomcat. I have updated code written by J Halliday source here: http://anonsvn.jboss.org/repos/labs/labs/jbosstm/workspace/jhalliday/tomcat-integration/ to support latest release of JBoss transaction manager ( 4.16.0 ) source he

distributed session manager with infinispan

2011-11-27 Thread Zdeněk Henek
Hi, I have created prototype of distributed session manager which uses infinispan to distribute session state. The code is available here: https://github.com/zvrablik/tomcatInfinispanSessionManager Would anybody have time to discuss the prototype or test it? I have currently one TODO item I am