我在我的應用程序中收到這些警告,並且需要很長時間從數據庫調用(如10-15分鐘)獲得響應。但是,對於響應時間慢的公司來說,這是相當有效的,問題在於,同樣的應用程序在我的朋友機器中可以快速進行數據庫調用,並且在相同配置下不會掛起,甚至在它崩潰之前它在我的機器上運行。我無法弄清楚背後的原因這個問題休眠 - 連接掛起
這裏的帶有警告
日誌Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to TEST_DATABASE
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: SQL Warning: 0, SQLState:
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'TEST_DATABASE'.
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: SQL Warning: 0, SQLState:
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: [Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: SQL Warning: 0, SQLState:
Aug 6, 2010 10:04:14 AM net.sf.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
Aug 6, 2010 10:10:04 AM org.logicalcobwebs.proxool.admin.StatisticsLogger statistics
INFO: 10:05:00 - 10:10:00, s:3:0.01/s, r:0:0.00/s, a:23.33ms/0.00
我的系統是
- Ubuntu 9.04的
- 的Apache Tomcat 5.5.27
- 休眠3
- Ant 1.7.0
- JDK 1.5.0_12
- MyEclipse 7.5作爲開發工具。
你打開了詳細的日誌記錄嗎? – Manfred 2010-08-06 05:25:54
@John我不這麼認爲,我只是做了與之前相同的配置,但有一點改變了早期的Ununtu版本,它是8.10 – Switch 2010-08-06 05:46:12