Answer the question
In order to leave comments, you need to log in
god why? Node JS Cron + MySQl (modules) ER_CON_COUNT_ERROR: Too many connections error!?
I have one wonderful task that wools around the base, runs every 10 minutes.
The samples are not large, after which it makes a couple of records on the found (usually 10-20) y dies.
Forked via pm2, if that matters.
connectionLimit: 1000
All connections are safely made connection.release();.
After working for a while, it crashes with the above error, what's the problem?
Answer the question
In order to leave comments, you need to log in
Do we open connections in a loop? Get ER_CON_COUNT_ERROR, sign.
for (;;) {
connection.connect(...);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question