Analyzer php-bin-distr
Name
php-bin-distr - Distributions of Memory Chunk Sizes in PHP Zend Allocator
This analyzer profiles memory allocation patterns in the PHP Zend memory allocator. It captures the distribution of memory chunk sizes allocated by PHP applications, tracking how memory is segmented and utilized at the allocator level. The analyzer generates histogram visualizations that reveal memory allocation patterns, helping identify memory fragmentation issues and optimize memory usage in PHP applications.
Resource Category
Memory.
Application Type & Technical Stack
- PHP
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run php-bin-distr -p PID
# trace a shell command directly
orxray analyzer run php-bin-distr -c SHELL_CMD
Tracing Multiple Processes
Not supported.
Output Formats
- Histogram Bar Charts
- Plain Texts
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.