Memory consumption issues

Here you see the code, so you can just run it:

The memory and the swap are full

It looks like you still have about 2 GB of free memory, with 5.6 GB used out of 7.6 GB total.

Plus, the page in chrome crashes.

Is there an error message? Sounds like you’re hitting the memory limits for a browser tab.

I haven’t found yet the same information in the dev tools of chrome

Can you open dev tools and click on the 3 dots in the upper right hand corner? In the drop down menu hover over More Tools, perhaps your Memory tab is hidden in there? I also see a Performance Monitor option in there, this also displays the JS Heap Size for me.

Other

Here’s some possibly related light reading