我想知道tomcat服务器消息

时间:2014-05-30 05:32:53

标签: java hibernate jsp tomcat displaytag

我想详细了解这些消息,当我启动我的tomcat时会出现这些消息。 我在我的项目中使用显示标签。服务器是apache tomcat 7.0。

当我将它托管在服务器上时会产生问题吗?

> May 30, 2014 10:56:13 AM org.apache.catalina.core.StandardContext
> reload
>     INFO: Reloading Context with name [/ZestYouth] has started
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
>     SEVERE: The web application [/ZestYouth] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the
> web application was stopped. To prevent a memory leak, the JDBC Driver
> has been forcibly unregistered.
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
>     SEVERE: The web application [/ZestYouth] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely
> to create a memory leak.
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
>     SEVERE: The web application [/ZestYouth] appears to have started a thread named
> [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but
> has failed to stop it. This is very likely to create a memory leak.
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
>     SEVERE: The web application [/ZestYouth] appears to have started a thread named
> [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but
> has failed to stop it. This is very likely to create a memory leak.
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
>     SEVERE: The web application [/ZestYouth] appears to have started a thread named
> [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but
> has failed to stop it. This is very likely to create a memory leak.
>     May 30, 2014 10:56:13 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
>     SEVERE: The web application [/ZestYouth] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to
> stop it. This is very likely to create a memory leak.
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already
> defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already
> defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
>     May 30, 2014 10:56:15 AM org.apache.catalina.startup.TaglibUriRule body
>     INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
>     May 30, 2014 10:56:16 AM org.apache.catalina.core.StandardContext reload
>     INFO: Reloading Context with name [/ZestYouth] is completed

1 个答案:

答案 0 :(得分:1)

靠自己,不行。 Tomcat只是告诉你,已经在Tomcat实例中加载和定义了URI。

然而,可能的内存泄漏可能会引起关注,因为它们告诉您线程是由程序启动的,但在程序退出时没有停止。我会执行一些硬核内存分析,以确保线程在将内存投入生产之前不会泄漏内存。

为了测试你的系统没有泄漏内存将你的Tomcat实例挂钩到VisualVM并在启动时检查内存配置文件,然后用1000个用户,10000个用户,100000个用户锤击你的系统,直到它崩溃。然后启动它,运行一会儿,然后关闭它。使用VisualVM检查保持活动状态的线程。