-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't see memory leack in memory dump #54
Comments
Hi @Shkarbatov , It's difficult to tell exactly what is happening. It could be one of the following reason:
|
I try it with the GC: Result is the same. |
I understand this, but if I see difference in meminfo dump, isn't it's don't mean that I can see difference in meminfo? For 2 iteration:
For 43 iteration:
|
If XHProf show me, there is no any difference in memory between 2 and 43 iteration, but memory_get_usage() show that memory is rising. What it can be? GC run in each iteration. |
Maybe you have a small leak of PHP items that you can see in phpMeminfo and a big leak coming from an extension. Can you provide the two full dump files instead of the summaries (for your iterations 2 and 43) ? |
Adding dumps 3 and 389 iteration: |
In example there is Symfony\Component\Stopwatch\StopwatchPeriod, I disabled it and repeated script - result is the same. |
Is there any update on this? i have the same situation but cannot solve it... |
Hey @Shkarbatov and @shxofficial , Do you have any code that you could share so we can reproduce the issue? By the way, I'm thinking of adding an option to dump the content of the strings. Would that be helpful for you? |
Hi, I have memory leack in my workers.
I have done memory_get_usage() on each iteration:
50183840
91469968
95433592
99533688
103630880
107729448
..
378392128
Also I have done memory dump by meminfo:
meminfo_dump(fopen('/home/dmitriy/phpmem/my_dump_file_'.$i.'.json', 'w'));
But when I compare files with 2 and 43 iteration almost nothing changed.
I attached two files fith 2 and 43 iteration.
https://drive.google.com/open?id=1amDpzmyIel0QWdYqZp64F-f5L5fisqvC
Any ideas, why I don't see anything?
The text was updated successfully, but these errors were encountered: