How to track fMems and fEPs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris.webz
    Junior Member
    • Mar 2021
    • 4

    #1

    How to track fMems and fEPs

    Its very useful if we can track the fMems and fEps with more detail,
    For example if we could listen to an event by our own code and it would case our code to be executed every time an error 500 occurs because of lake of EP or memory with details like path of php file ,time it happens and resources which was not available.
    Does CloudLinux support such requirement?
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    I am not sure it makes sense to create such events on memory faults. Some apps can generate tens of thousands of them in a second.
    Either way -- sending event from kernel to user space -- doesn sound like a good idea.

    If you want to react "immediately", just create a script that checks /proc/lve/list once a second, and acts once counter gets incremented.

    Comment

    Working...