Skip to content
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

meminfo_objects_summary VS meminfo_info_dump #37

Closed
raphaelvoisin opened this issue Jun 5, 2017 · 1 comment
Closed

meminfo_objects_summary VS meminfo_info_dump #37

raphaelvoisin opened this issue Jun 5, 2017 · 1 comment

Comments

@raphaelvoisin
Copy link

Hello,

I’m probably missing something, but I'm in a case in which meminfo_objects_summary output shows many objects that I cannot find in meminfo_info_dump dump.

Here are my 5 first meminfo_objects_summary dump lines:

Instances count by class:
rank #instances class
-----------------------------------------------------------------
1 9288 DateTime
2 5957 AppBundle\Model\ProductOfferFeedImportExtractedProductOffer
3 5957 AppBundle\Model\ProductOffer
4 208 Symfony\Component\Console\Input\InputOption
5 107 Symfony\Component\Console\Input\InputDefinition

And when querying the meminfo_info_dump dump, no such item found:
devuser@osboxes:~/meminfo/php-meminfo/analyzer$ bin/analyzer query -f "class~ProductOfferFeedImportExtractedProductOffer" -v data/mem_dump_0.json
+----------+-----------+----------+
| Item ids | Item data | Children |
+----------+-----------+----------+

In addition: my meminfo_info_dump dump size is only 1,2M, and it should be really more...

Am I missing somthing obvious of how meminfo works ?

@BitOne
Copy link
Owner

BitOne commented Nov 17, 2017

Hello @raphaelvoisin ,

The way the summary used to work was to go through all the objects buckets in the Zend Engine memory. So even objects that were going to be freed from memory were listed by the summary.

The dump works differently by going through all variables declared in all execution frames. So it dumps only items that won't be freed from memory.

With the new version (v1.0.0), the summary is now done from the dump through an analyzer, so things are far more coherent ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants