语言:java
 环境:tomcat 6.0.14 
     jdk 1.6
这个警告是什么意思,是不是和数据库有关,高手来看看 ,在java版问,他们让我来oracle问,WARN - #0116 was active for 328032 milliseconds and has been removed automaticaly. The Thread responsible was named 'http-8080-3', but the last SQL it performed is unknown because the trace property is not enabled.WARN - #0148 was active for 339125 milliseconds and has been removed automaticaly. The Thread responsible was named 'http-8080-2', but the last SQL it performed is unknown because the trace property is not enabled.

解决方案 »

  1.   

    按照我的理解,应该是#0116对应的那个线程'http-8080-3',占用的数据库连接idle(也或许是执行时间)长达328032毫秒,也就是差不多5分钟还多的样子,超时了,然后,这个连接被回收了。
    同理,下边那个也是,339125也是5分钟39秒的样子,也超时了,被回收了。
      

  2.   

    这日志里提到的只是WARN,似乎不算什么错误,你要确定 的是它是否影响你的业务运行。如果影响,就应该把那些SQL语句给找出来。你的那个库里头应该有个什么trace属性,打开它,也许能看到运行的是什么SQL.我所能推断的也就是这些了。