-
-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
too many connections using pool #278
Comments
hi @guypaskar , could you try my suggestion from #270 ? |
I'm not sure I understand what the issue there and what was the suggestion. Let me add a code snippet of how I use. pool.getConnection(function(err, connection) {
// Use the connection
if(err){
console.log('doSql pool.getConnection failed with error:' +err);
}else{
if(connection && 'query' in connection){
connection.query(stmt, function(err, rows) {
// And done with the connection.
if (err != null) {
console.log(err);
}
connection.release();
// The connection is terminated now
callback(rows, err);
// Don't use the connection here, it has been returned to the pool.
});
}
}
}); |
hm, #270 is about |
@guypaskar looks like this it not directly related to pool, see for example http://stackoverflow.com/questions/2395654/mysql-phpmyadmin-many-connection-errors Do you see this error for all connections or you are able to connect initially? |
Yeah I know this issue. |
can you post debug log here ( create pool with |
Sure. But I have to wait until the issue happens again no and only then send the log. No? |
yes, I need to see log around connection time. |
Ok. I will try to catch it and report back. |
run this command in mysql client command terminal, the timeout unit is seconds |
Hi there,
I'm using pool connections of 100 connections.
Once in awhile I'm getting the following error:
doSql pool.getConnection failed with error:Error: Host 'xxxxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
Any idea on how to fix this?
Best,
Guy
The text was updated successfully, but these errors were encountered: