解决方案 »

  1.   

    我觉得是连接池的问题,java.sql.SQLException: We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
    大神们来帮帮我!!!
      

  2.   

    楼主用的是oracle吗?
    是不是驱动版本的问题啊
      

  3.   

    <simultaneousBuildThrottle>69</simultaneousBuildThrottle> <minimum-connection-count>20</minimum-connection-count>
     <maximum-connection-count>200</maximum-connection-count>这个设置的不合理,改为
    <simultaneousBuildThrottle>20</simultaneousBuildThrottle>
     <minimum-connection-count>5</minimum-connection-count>
     <maximum-connection-count>50</maximum-connection-count>
      

  4.   

    我用的mysql,谢谢,没看到proxool.xml里的驱动吧?
      

  5.   

    5楼的朋友什么意思?上代码?我用的是jdbc 连接池,每次获取连接后我都会在方法下面关闭conn,pst,rs的。
      

  6.   

    还是上代码吧!!!
    这是用连接池获取连接的类:package cn.com.rocan.db;import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;public class DBUtil { public static Connection getConn() throws SQLException {
    Connection connection = null;
    connection = DriverManager.getConnection("proxool.jxw_db");
    return connection;
    }
    }这是Dao查询的:/**
     * 查询所有数据
     * 
     * @param tableName
     *            表明
     * @param fields
     *            字段名["name,pass,desc"]
     * @param whereStr
     *            条件[id=1 and name='user1']
     * @return 结果 List<Map<String, Object>>类型。Map的Key为大写字母
     * @throws Exception
     *             异常统一向页面抛
     */
    public List<Map<String, Object>> select(String tableName, String fields,
    String whereStr) throws Exception {
    Map<String, Object> map = null;
    List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
    // String str[] = fields.split(",");
    StringBuilder sql = new StringBuilder();
    Connection conn = null;
    PreparedStatement pst = null;
    ResultSet rs = null;
    // DatabaseUtil database = new DatabaseUtil(); conn = DBUtil.getConn();
    sql.append("select ").append(fields).append(" from ").append(tableName);
    if ((whereStr != null) && (!"".equals(whereStr))) {
    sql.append(" where ").append(whereStr);
    }
    pst = conn.prepareStatement(sql.toString());
    rs = pst.executeQuery();
    // System.out.println("[SQL]:" + sql);
    log.debug("[SQL]:" + sql);
    // rs = DatabaseUtil.executeQuery(sql.toString(), pst, rs, conn);
    if (rs != null && (!"".equals(rs.toString()))) {
    ResultSetMetaData rsmd = rs.getMetaData(); while (rs.next()) {
    map = new HashMap<String, Object>();
    for (int i = 1; i <= rsmd.getColumnCount(); i++) {
    map.put(rsmd.getColumnName(i).toUpperCase(), rs
    .getObject(rsmd.getColumnName(i)));
    }
    list.add(map);
    }
    }
    if (rs != null) {
    rs.close();
    rs = null;
    }
    if (pst != null) {
    pst.close();
    pst = null;
    }
    if (conn != null) {
    conn.close();
    conn = null;
    }
    return list;
    }
      

  7.   

    换个连接池试试,会不会是BUG
      

  8.   

    设置一个 <house-keeping-sleep-time>50000</house-keeping-sleep-time>
    会不会好些
      

  9.   

    第一个异常  数据库连接创建过快   第二个就没有数据库连接了
    数据库连接 无法自动释放  或者 释放速度没有你 添加数据库连接速度快。
    要不是要求单例性能的话  可以考虑 等比例夸大连接数      
    还有就是 首页一下要走 19个list的sql 是不是 设计的有问题