E
E
Egor Developerov2015-10-16 18:18:40
MySQL
Egor Developerov, 2015-10-16 18:18:40

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

1 answer(s)
I
Igor Makarov, 2015-10-16
@spacecucumber

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 question

Ask a Question

731 491 924 answers to any question