J
J
jtag2017-10-03 14:47:36
JavaScript
jtag, 2017-10-03 14:47:36

How to avoid heap memory overflow?

I use setInterval, inside which there is a selection from sqlite and a record in mysql. those. copying from database to database. After 20 minutes, the server is interrupted, notifying the heap out of memory. How to avoid it?

setInterval(function () {

   }, 10000);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-10-03
@Sanasol

fetch from sqlite and write to mysql. those. copying from database to database.

make a dump and import, the syntax is the same there. You are doing some crap.
I came up with the problem myself, I heroically try to solve it myself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question