sbluhm / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
1 stars 0 forks source link

Solve Tomcat SEVERE and WARNING messages #116

Open sbluhm opened 1 year ago

sbluhm commented 1 year ago
# grep SEVERE catalina.2023-06-20.log 
20-Jun-2023 10:31:49.890 SEVERE [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [rhn] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3ca68a24]) and a value of type [io.netty.util.internal.InternalThreadLocalMap] (value [io.netty.util.internal.InternalThreadLocalMap@53210257]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
20-Jun-2023 10:31:49.891 SEVERE [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [rhn] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3ca68a24]) and a value of type [io.netty.util.internal.InternalThreadLocalMap] (value [io.netty.util.internal.InternalThreadLocalMap@3573617a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
20-Jun-2023 10:31:49.891 SEVERE [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [rhn] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3ca68a24]) and a value of type [io.netty.util.internal.InternalThreadLocalMap] (value [io.netty.util.internal.InternalThreadLocalMap@314af4e8]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
20-Jun-2023 10:31:49.891 SEVERE [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [rhn] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3935bf4f]) and a value of type [com.redhat.rhn.frontend.context.Context] (value [com.redhat.rhn.frontend.context.Context@625d3184]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
20-Jun-2023 10:34:05.125 SEVERE [http-nio-127.0.0.1-8080-exec-2] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError Failed to call onError method of POJO end point for POJO of type [com.suse.manager.webui.websocket.Notification]
# grep WARN catalina.2023-06-20.log 
20-Jun-2023 10:30:11.928 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/rhn] in deployment descriptor [/etc/tomcat/Catalina/localhost/rhn.xml] has been ignored
20-Jun-2023 10:30:46.007 WARN [main] org.hibernate.cache.ehcache.internal.EhcacheRegionFactory.<init> HHH020100: The Ehcache second-level cache provider for Hibernate is deprecated.  See https://hibernate.atlassian.net/browse/HHH-12441 for details.
20-Jun-2023 10:30:55.251 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:30:55.400 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:30:55.407 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:30:57.704 WARN [main] org.hibernate.cfg.AnnotationBinder.processJoinedDiscriminatorProperties HHH000457: Joined inheritance hierarchy [com.redhat.rhn.domain.image.ImageProfile] defined explicit @DiscriminatorColumn.  Legacy Hibernate behavior was to ignore the @DiscriminatorColumn.  However, as part of issue HHH-6911 we now apply the explicit @DiscriminatorColumn.  If you would prefer the legacy behavior, enable the `hibernate.discriminator.ignore_explicit_for_joined` setting (hibernate.discriminator.ignore_explicit_for_joined=true)
20-Jun-2023 10:31:49.851 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.852 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [I/O dispatcher 1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.853 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [pool-4-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.859 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [RHN Message Dispatcher] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.860 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [pool-4-thread-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.861 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [PG-JDBC Housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.861 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [PG-JDBC I/O (1)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:31:49.863 WARNING [Thread-11] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [rhn] appears to have started a thread named [salt-event-connection-watchdog] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
20-Jun-2023 10:32:16.038 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/rhn] in deployment descriptor [/etc/tomcat/Catalina/localhost/rhn.xml] has been ignored
20-Jun-2023 10:32:47.893 WARN [main] org.hibernate.cache.ehcache.internal.EhcacheRegionFactory.<init> HHH020100: The Ehcache second-level cache provider for Hibernate is deprecated.  See https://hibernate.atlassian.net/browse/HHH-12441 for details.
20-Jun-2023 10:32:58.321 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:32:58.587 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:32:58.598 WARN [main] org.hibernate.boot.model.source.internal.hbm.FetchCharacteristicsSingularAssociationImpl.interpretManyToManyElement HHH90000009: The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join="false", use lazy="extra" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.
20-Jun-2023 10:33:01.682 WARN [main] org.hibernate.cfg.AnnotationBinder.processJoinedDiscriminatorProperties HHH000457: Joined inheritance hierarchy [com.redhat.rhn.domain.image.ImageProfile] defined explicit @DiscriminatorColumn.  Legacy Hibernate behavior was to ignore the @DiscriminatorColumn.  However, as part of issue HHH-6911 we now apply the explicit @DiscriminatorColumn.  If you would prefer the legacy behavior, enable the `hibernate.discriminator.ignore_explicit_for_joined` setting (hibernate.discriminator.ignore_explicit_for_joined=true)
20-Jun-2023 10:34:04.629 WARN [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-10] org.hibernate.internal.SessionImpl.createCriteria HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead
20-Jun-2023 10:34:07.827 WARN [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-2] org.hibernate.internal.SessionImpl.createCriteria HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead
20-Jun-2023 10:34:10.949 WARN [ajp-nio-0:0:0:0:0:0:0:1-8009-exec-10] org.hibernate.internal.SessionImpl.createCriteria HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead