2011-8-5 8:34:13 net.sf.ehcache.config.ConfigurationFactory parseConfiguration
警告: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp3/wtpwebapps/OgSchedule/WEB-INF/lib/ehcache-1.6.2.jar!/ehcache-failsafe.xml
2011-8-5 8:34:13 net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict
警告: Creating a new instance of CacheManager using the diskStorePath "C:\WINDOWS\TEMP\" which is already used by an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to C:\WINDOWS\TEMP\\ehcache_auto_created_1312504453046.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
org.hibernate.exception.GenericJDBCException: Cannot open connection
。。。
=======================================================
原因:MySQL默认的连接数是100,太少!自己的SSH项目开的连接数比这个大。
解决:(windows环境)
1.到C:\Program Files\MySQL\MySQL Server 5.0下面找到my.ini文件,记事本打开,找到“max_connections=100”改成:max_connections=10000
2.设置SSH项目的c3p0.min_size(这里是c3p0连接池)小点,这里可以不去管它,不可能比10000大吧
3.管理工具--服务:重启MySQL服务