Re: Question Regarding Incorrect Cache Size Calculation Issue

2025-03-27 Thread Chuck Caldarale
> On 2025 Mar 27, at 16:06, Yuta Akiya > wrote: > > I am using Tomcat 9.0.78 on a machine running Windows Server 2019 Standard. > > I am experiencing an issue with an instance of > `org.apache.catalina.webresources.Cache`, where `Cache.size` is out of sync > with the actual size of `Cache.r

Question Regarding Incorrect Cache Size Calculation Issue

2025-03-27 Thread Yuta Akiya
Hello, I am using Tomcat 9.0.78 on a machine running Windows Server 2019 Standard. I am experiencing an issue with an instance of `org.apache.catalina.webresources.Cache`, where `Cache.size` is out of sync with the actual size of `Cache.resourceCache` in memory. Based on a heap dump of the ser

Re: Additional Property File For Substitution Variables

2025-03-27 Thread Mark Thomas
On 27/03/2025 14:54, William Crowell wrote: Sebastian, Thanks for your reply. I did know about environment variables. I would be concerned about someone doing a “ps -ef” on the box and getting the password from the command line arguments. I will keep looking. Write a small class that impl

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-27 Thread Mark Thomas
On 26/03/2025 10:38, Rose Mary P T wrote: Dear Tomcat Users, I hope this message finds you well. As per your previous email, we attempted to fetch the virtual thread count from the keepAliveCount attribute in the Catalina.ThreadPool MBean. For context, here is the setup we used: * We creat

Re: Additional Property File For Substitution Variables

2025-03-27 Thread William Crowell
Sebastian, Thanks for your reply. I did know about environment variables. I would be concerned about someone doing a “ps -ef” on the box and getting the password from the command line arguments. I will keep looking. Regards, William Crowell From: Sebastian Trost Date: Thursday, March 27,

Re: Additional Property File For Substitution Variables

2025-03-27 Thread Sebastian Trost
William, On 27.03.2025 14:39, William Crowell wrote: Is there a way to add an additional properties file to the startup of Apache Tomcat, so that server.xml and context.xml can reference the values like we do with catalina.properties? For instance: application.properties: my.user=foo my.pa

Additional Property File For Substitution Variables

2025-03-27 Thread William Crowell
Is there a way to add an additional properties file to the startup of Apache Tomcat, so that server.xml and context.xml can reference the values like we do with catalina.properties? For instance: application.properties: my.user=foo my.password=bar context.xml: …