错误代码 警告 [RMI TCP Connection(15)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads web应用程序[JavaWeb_Test_Book]仍在处理一个尚未完成的请求。这很可能会造成内存泄漏。您可以使用标准上下文实现的unloadDelay属性来控制请求完成所允许的时间。请求处理线程的堆栈跟踪

错误代码

12-Dec-2022 16:16:59.120 警告 [RMI TCP Connection(15)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads web应用程序[JavaWeb_Test_Book]仍在处理一个尚未完成的请求。这很可能会造成内存泄漏。您可以使用标准上下文实现的unloadDelay属性来控制请求完成所允许的时间。请求处理线程的堆栈跟踪:[
 java.base@11.0.13/jdk.internal.misc.Unsafe.park(Native Method)
 java.base@11.0.13/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
 java.base@11.0.13/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
 com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:2208)
 com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1680)
 com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1417)
 com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1397)
 com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1387)
 top.qaqaq.utils.JdbcUtils.getConnection(JdbcUtils.java:37)
 top.qaqaq.dao.impl.BaseDao.queryForSingleValue(BaseDao.java:90)
 top.qaqaq.dao.impl.BookDaoImpl.queryForPageTotalCount(BookDaoImpl.java:50)
 top.qaqaq.service.impl.BookServiceImpl.page(BookServiceImpl.java:52)
 top.qaqaq.web.BookServlet.page(BookServlet.java:28)
 java.base@11.0.13/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 java.base@11.0.13/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 java.base@11.0.13/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 java.base@11.0.13/java.lang.reflect.Method.invoke(Method.java:566)
 top.qaqaq.web.BaseServlet.doPost(BaseServlet.java:31)
 top.qaqaq.web.BaseServlet.doGet(BaseServlet.java:20)
 jakarta.servlet.http.HttpServlet.service(HttpServlet.java:705)
 jakarta.servlet.http.HttpServlet.service(HttpServlet.java:814)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:223)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:119)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)

原因

在写jdbc时没关闭连接 记得关闭连接

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇