Closed Heziode closed 1 year ago
Ok, so, to be able to run my script properly, I have to add --v8-flags=--max-old-space-size=8192
to Deno when I run my script, where 8192
corresponding to 8GB of RAM allocated to the engine (my Docker setup have 16 GB).
For Node.js users, you only have to add --max-old-space-size=8192
.
Bug Report
I got the following error when I attempt to populate the Neo4j database using a huge amount of sessions.
Here is the full log:
Note that
cogralys-bench-util
is a custom typescript (Deno) command, used on my benchmark repository (used in my PhD). It is not currently open source, but I can share the 35_934 json files used with this command.The code is run inside a worker, here is the code:
The command
cogralys-bench-util populate-neo4j
create as many workers as there are cpus (here, 8). And sends job to workers with a path to a JSON file, that contains things like:Note that the data in the previous JSON is a sample; in fact, there is a quite more elements in
parameters.rows
array.Each of 8 workers create a driver and keep it alive along jobs. Every times it receive a job (path to JSON file) it parse it and sends every
statements
in a separate session. The script run inside a Docker container, and communicate with the Neo4j desktop on the host.My Environment
Javascript Runtime Version: I got this error with: deno 1.34.3 (release, x86_64-unknown-linux-gnu) v8 11.5.150.2 typescript 5.0.4
But I also had this error in the past with Node (v18.16.1)
Driver Version: 5.10.0 Neo4j Version and Edition: Neo4j version 5.3.0 entreprise (Neo4j Desktop, Version 1.5.8 (1.5.8.105)) Operating System: macOS 13.4 (22F66)