Skip to content

PHP Memory VS RoadRunner Worker Memory #1219

Answered by rustatian
dobryy asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @dobryy 👋🏻
I'm not a PHP dev, so correct me if I'm wrong, but memory_get_usage shows only currently allocated memory by the PHP script, but rr workers shows allocated RSS memory by the whole PHP process. On Linux, RR reads /proc/<pid>/statm, which is inaccurate (according to the man-pages) because it might include the currently swapped-out pages.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@rustatian
Comment options

@wolfy-j
Comment options

@wolfy-j
Comment options

@dobryy
Comment options

@rustatian
Comment options

Answer selected by rustatian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
R-question Question
3 participants