| | |
| | | int conn_max = 0;
|
| | | int conn_count = 0;
|
| | | Sql_Mysql sql = new Sql_Mysql(conn_pool);
|
| | | ResultSet res = null;
|
| | | try {
|
| | | ResultSet res = sql.sqlMysqlQuery("show variables like 'max_connections'");
|
| | | res = sql.sqlMysqlQuery("show variables like 'max_connections'");
|
| | | if(res.next()) {
|
| | | conn_max = res.getInt(2);
|
| | | }
|
| | |
| | | // TODO Auto-generated catch block
|
| | | sql.logger.error("updateServerState_RamDB_Table():" + e.toString(), e);
|
| | | } finally {
|
| | | if(null != res) {
|
| | | try {
|
| | | res.close();
|
| | | } catch (SQLException e) {
|
| | | sql.logger.error("updateServerState_RamDB_Table():" + e.toString(), e);
|
| | | }
|
| | | }
|
| | | sql.close_con();
|
| | | }
|
| | | }
|