-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Pool memory utilization display is incorrect (not quite the template's fault though) #60
Comments
We will kindly investigate the information you provided and hopefully return to you as soon as possible! 😊 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ping! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@victor-sudakov Thank you for your comments and sorry for a late reply. According to the Zabbix manual the |
I've studied the matter a bit and come to the conclusion that there is not much we can do about it. A good explanation of this effect is at http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html The moral of this story is that process memory usage on Linux is a complex matter; you can't just run ps and know what is going on. This is especially true when you deal with programs that create a lot of identical children processes |
@victor-sudakov Thank you for the link. A very good explanation.
It seems that PSS is exactly what we need. |
smem has too many runtime dependencies. pmap and smaps will probably require root privileges. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
ping |
Hello :) I was looking into this problem that I have myself. Do you have some news about it ? Thanks a lot |
I have the same problem ... |
In theory, with this script, some values are obtained that are more or less consistent, although I don't know if they are totally true, because in some cases the total value of the php-fpm processes exceeds the total memory of the system.
|
As far as I could find out, the Through experience I was able to find out that the value obtained from |
Hello!
The "pool XXX memory utilization" item uses proc.mem["XXX",,,,pmem] and is very incorrect for this reason. When you have many php-fpm children, this item may show 400% or more of RAM (and an alarm triggers), but in fact there is still plenty of free RAM on the host (as
top
shows).This happens IMHO because proc.mem calculates the memory incorrectly: it just multiplies each child's %MEM by the number of children, not taking into account that most memory is shared between children. This is not your template's fault per se, this is the fault of the Zabbix agent logic.
Still, can we think of providing a more realistic picture of the memory consumption of a pool? By analyzing something in /proc for example?
The text was updated successfully, but these errors were encountered: