Open paav opened 6 years ago
Hello,
I can't really see the memory leak, i assume that PHP's garbage collector will clear data after the echo
call, at the end of the processus / function.
So if you don't clear data after each iteration (eg. unset($person)
or $person = null
) you ain't gonna see anything :) Keep in mind that garbage collector looks for object to unset
at the end of each function.
Nevertheless, for testing purpose, i suggest to create a bash file which call your php script, and in order to check the memory usage, you can use some system command to mesure it, before and after your script execution :)
Hope this help
Hello.
I have a memory leak in my application. If I comment out code related to the neo4j-php-ogm mapper, the leak goes away.
I created a test application as described in this tutorial.
When I run this code with empty database:
I get this output:
Can I somehow fix that memory leak?