Re: [ANN] Apache Tomcat 8.5.76 available

2022-03-01 Thread Evan Rempel
Thanks. That change log entry was for 8.5.75 and the 
catalina-jmx-remote.jar file was still available in that release.


There was no change log entry for 8.5.76 regarding this so I was confused.

Thanks again.

Evan

On 2022-03-01 08:59, Mark Thomas wrote:


On 01/03/2022 16:47, Evan Rempel wrote:

The JMX remote for Tomcat 8.5.76 is not in the download folder. I just
get 404 errors when trying to download it.


Correct.

The JmxRemoteLifecycleListener was deprecated for 8.5.x in December 2019
with the following notice:

"This listener will be removed in Tomcat 10 and may be removed
from Tomcat 8.5.x some time after 2020-12-31."

It was removed in January 2022. The removal is listed in the change log.

You can use the system properties provided by the JVM to achieve
everything the listener could do. The docs have more details:

https://tomcat.apache.org/tomcat-8.5-doc/monitoring.html#Enabling_JMX_Remote 



Mark





On 2022/02/28 22:10:47 Christopher Schultz wrote:
 > The Apache Tomcat team announces the immediate availability of Apache
 > Tomcat 8.5.76.
 >
 > Apache Tomcat 8 is an open source software implementation of the Java
 > Servlet, JavaServer Pages, Java Unified Expression Language, Java
 > WebSocket and Java Authentication Service Provider Interface for
 > Containers technologies.
 >
 > Apache Tomcat 8.5.76 is a bugfix and feature release. The notable
 > changes compared to 8.5.75 include:
 >
 > - Correct a regression in the fix for 65454 that meant that
 > minSpareThreads and maxThreads settings were ignored when the
 > Connector used an internal executor
 >
 > - Improve the detection of the Linux duplicate accept bug and reduce
 > (hopefully avoid) instances of false positives.
 >
 > - Back-port fixes for BZ 65408 to refactor socket-close operations
 > to improve resilience when objects are re-used by applications.
 >
 > Along with lots of other bug fixes and improvements.
 >
 > Please refer to the change log for the complete list of changes:
 > http://tomcat.apache.org/tomcat-8.5-doc/changelog.html
 >
 > Downloads:
 > http://tomcat.apache.org/download-80.cgi
 >
 > Migration guides from Apache Tomcat 7.x and 8.0.x:
 > http://tomcat.apache.org/migration.html
 >
 > Enjoy!
 >
 > - The Apache Tomcat team
 > 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 8.5.76 available

2022-03-01 Thread Mark Thomas

On 01/03/2022 16:47, Evan Rempel wrote:

The JMX remote for Tomcat 8.5.76 is not in the download folder. I just
get 404 errors when trying to download it.


Correct.

The JmxRemoteLifecycleListener was deprecated for 8.5.x in December 2019 
with the following notice:


"This listener will be removed in Tomcat 10 and may be removed
from Tomcat 8.5.x some time after 2020-12-31."

It was removed in January 2022. The removal is listed in the change log.

You can use the system properties provided by the JVM to achieve 
everything the listener could do. The docs have more details:


https://tomcat.apache.org/tomcat-8.5-doc/monitoring.html#Enabling_JMX_Remote

Mark





On 2022/02/28 22:10:47 Christopher Schultz wrote:
 > The Apache Tomcat team announces the immediate availability of Apache
 > Tomcat 8.5.76.
 >
 > Apache Tomcat 8 is an open source software implementation of the Java
 > Servlet, JavaServer Pages, Java Unified Expression Language, Java
 > WebSocket and Java Authentication Service Provider Interface for
 > Containers technologies.
 >
 > Apache Tomcat 8.5.76 is a bugfix and feature release. The notable
 > changes compared to 8.5.75 include:
 >
 > - Correct a regression in the fix for 65454 that meant that
 > minSpareThreads and maxThreads settings were ignored when the
 > Connector used an internal executor
 >
 > - Improve the detection of the Linux duplicate accept bug and reduce
 > (hopefully avoid) instances of false positives.
 >
 > - Back-port fixes for BZ 65408 to refactor socket-close operations
 > to improve resilience when objects are re-used by applications.
 >
 > Along with lots of other bug fixes and improvements.
 >
 > Please refer to the change log for the complete list of changes:
 > http://tomcat.apache.org/tomcat-8.5-doc/changelog.html
 >
 > Downloads:
 > http://tomcat.apache.org/download-80.cgi
 >
 > Migration guides from Apache Tomcat 7.x and 8.0.x:
 > http://tomcat.apache.org/migration.html
 >
 > Enjoy!
 >
 > - The Apache Tomcat team
 >
 > -
 > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 > For additional commands, e-mail: users-h...@tomcat.apache.org
 >
 >



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [ANN] Apache Tomcat 8.5.76 available

2022-03-01 Thread Evan Rempel

The JMX remote for Tomcat 8.5.76 is not in the download folder. I just
get 404 errors when trying to download it.



On 2022/02/28 22:10:47 Christopher Schultz wrote:
> The Apache Tomcat team announces the immediate availability of Apache
> Tomcat 8.5.76.
>
> Apache Tomcat 8 is an open source software implementation of the Java
> Servlet, JavaServer Pages, Java Unified Expression Language, Java
> WebSocket and Java Authentication Service Provider Interface for
> Containers technologies.
>
> Apache Tomcat 8.5.76 is a bugfix and feature release. The notable
> changes compared to 8.5.75 include:
>
> - Correct a regression in the fix for 65454 that meant that
> minSpareThreads and maxThreads settings were ignored when the
> Connector used an internal executor
>
> - Improve the detection of the Linux duplicate accept bug and reduce
> (hopefully avoid) instances of false positives.
>
> - Back-port fixes for BZ 65408 to refactor socket-close operations
> to improve resilience when objects are re-used by applications.
>
> Along with lots of other bug fixes and improvements.
>
> Please refer to the change log for the complete list of changes:
> http://tomcat.apache.org/tomcat-8.5-doc/changelog.html
>
> Downloads:
> http://tomcat.apache.org/download-80.cgi
>
> Migration guides from Apache Tomcat 7.x and 8.0.x:
> http://tomcat.apache.org/migration.html
>
> Enjoy!
>
> - The Apache Tomcat team
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

--
Evan Rempel 250.721.7691
Senior Systems Administrator erem...@uvic.ca
Data Centre Services, University Systems, University of Victoria


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: java.lang.OutOfMemoryError: Metaspace while deploying application

2022-03-01 Thread Christopher Schultz

Nagarajan,

On 3/1/22 08:49, Rengaswamy, Nagarajan wrote:

Currently we are running 6 applications in Tomcat version 8.5.70

Our Linux Infra - memory size allocated like Entire memory 3GB, In
that 1.5 GB as Heap size and 512 is for XX:MaxMetaspaceSize.


The numbers above are confusing to me. If you have 1.5GiB heap and .5GiB 
metaspace then what is 3GiB? Please post your actual memory-related JVM 
launch options.



Java version as 11. No performance related issue while application
runs in peak load. But when we deploy the any one of the application
while running tomcat, first deploy get success and next deploy is
throwing like "Exception in thread "_Worker-3" 
java.lang.OutOfMemoryError: Metaspace"


Do you get this error when you deploy the application the first time, 
re-deploying an existing (already-deployed) application?



Based on our investigation, heap dump shows _3_ instances of the
ParallelWebappClassLoader consuming more memory which is causing this
issue.


I would expect that you would have 6 ParallelWebappClassLoader instances 
in the heap if you have 6 applications deployed. Are you saying that you 
have 6 + 3 "extra" instances of that class in the heap?


If so, you have a classloader-pinning leak in /your web application/ 
that must be fixed. Mark posted a presentation in reply that should be 
very helpful in diagnosing what's happening with your application.



Currently we are doing server restart before deploy as workaround
now.

Kindly suggest is there any open issue which needs to be addressed by
Apache Software Foundation? or provide solution to overcome this
issue.


This is likely to be a problem with your application, not Apache Tomcat.

-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: java.lang.OutOfMemoryError: Metaspace while deploying application

2022-03-01 Thread Mark Thomas

https://home.apache.org/~markt/presentations/2010-08-05-Memory-Leaks-JavaOne-60mins.pdf

Written for Java 7 but applies equally later versions of Tomcat.

Mark

On 01/03/2022 13:49, Rengaswamy, Nagarajan wrote:

Hi Team,

Currently we are running 6 applications in Tomcat version 8.5.70


Our Linux Infra - memory size allocated like Entire memory 3GB, In that 1.5 GB 
as Heap size and 512 is for XX:MaxMetaspaceSize. Java version as 11.
No performance related issue while application runs in peak load. But when we deploy the any one of the 
application while running tomcat, first deploy get success and next deploy is throwing like 
"Exception in thread "_Worker-3" java.lang.OutOfMemoryError: 
Metaspace"



Based on our investigation, heap dump shows _3_ instances of the 
ParallelWebappClassLoader consuming more memory which is causing this issue.

Currently we are doing server restart before deploy as workaround now.

Kindly suggest is there any open issue which needs to be addressed by Apache 
Software Foundation? or provide solution to overcome this issue.



Thanks!

Disclaimer

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information. Any unauthorized review, use, 
disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by phone or 
reply by e-mail, delete the original message and destroy all copies. Thank you.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: java.lang.OutOfMemoryError: Metaspace while deploying application

2022-03-01 Thread Rengaswamy, Nagarajan
Hi Team,

Currently we are running 6 applications in Tomcat version 8.5.70


Our Linux Infra - memory size allocated like Entire memory 3GB, In that 1.5 GB 
as Heap size and 512 is for XX:MaxMetaspaceSize. Java version as 11.
No performance related issue while application runs in peak load. But when we 
deploy the any one of the application while running tomcat, first deploy get 
success and next deploy is throwing like "Exception in thread 
"_Worker-3" java.lang.OutOfMemoryError: Metaspace"



Based on our investigation, heap dump shows _3_ instances of the 
ParallelWebappClassLoader consuming more memory which is causing this issue.

Currently we are doing server restart before deploy as workaround now.

Kindly suggest is there any open issue which needs to be addressed by Apache 
Software Foundation? or provide solution to overcome this issue.



Thanks!

Disclaimer

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information. Any unauthorized review, use, 
disclosure or distribution is prohibited. 
If you are not the intended recipient, please contact the sender by phone or 
reply by e-mail, delete the original message and destroy all copies. Thank you.


RE: Re: Re: Tomcat 8.5.75 Servlet WriteListener and ReadListener setting thread

2022-03-01 Thread Istvan SZEKELY
Thanks for the quick fix :)

On 2022/02/28 16:47:20 Rémy Maucherat wrote:
> Thanks for the test, this is what I had in mind. As I kind of expected
> when reading about the sequential technique used, the previous fix was
> causing a new problem since the thread id was not reset until the full
> recycle, making the new check inaccurate as well in another scenario.
>
https://github.com/apache/tomcat/commit/2739565fa5286623e8bb31823770595de14b6370
>
> The fix will be in the next round of monthly releases (9.0.60).
>
> Thanks !
>
> Rémy