My version is neo4j 4.0.4. While it is running, and I am using Bolt Api to send requests to get results back on my Mac computer. Initially when Neo4j is up, the Java process takes about 1.1 GB observed from the Activity Monitor on my Mac. After processing many processes, I observe that the memory gradually goes up. After about 1 million requests, the Activity Monitor shows that the Java process eats about 2 GB. If I don't turn off neo4j and after several days I found that the Java takes about 6GB after processing an unknown amount of requests.
Is there a way to avoid memory usage going up constantly and slowly? My Mac has a total of 16G memory.