开发环境是JSP+MYSQL+Resin
用到了数据库连接池
当程序连接到数据库时,就在WEB引擎的日志文件里产生了大量的信息,一天就能产生上百兆的日志文件
这些信息都是重复而且没有任何意义的,请问如何将他们屏蔽?
垃圾日志如下:
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> Statement.java:1627 com.mysql.jdbc.Statement.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- Statement.java:1627 com.mysql.jdbc.Statement.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> Statement.java:1627 com.mysql.jdbc.Statement.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- Statement.java:1627 com.mysql.jdbc.Statement.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> Statement.java:1627 com.mysql.jdbc.Statement.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- Statement.java:1627 com.mysql.jdbc.Statement.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- ResultSet.java:7079 com.mysql.jdbc.ResultSet.finalize(..) returning null
Thu Mar 06 11:20:11 CST 2008 TRACE: --> Statement.java:1627 com.mysql.jdbc.Statement.finalize()
Thu Mar 06 11:20:11 CST 2008 TRACE: <-- Statement.java:1627 com.mysql.jdbc.Statement.finalize(..) returning null
怎样配置可以解决这个问题?
--转自