High CPU and memory usage by Apache or PHP processes in Plesk

Follow

Comments

4 comments

  • Avatar
    Michael Pratt

    Be cool if we could narrow down the cluprit/domain in the backend...

    0
    Comment actions Permalink
  • Avatar
    Bato Tsydenov

    @Michael Pratt

    Please check the following article:

    How to check which domain PHP process consumes CPU resources?

    0
    Comment actions Permalink
  • Avatar
    Michael Pratt

    Hi Bato, 

    I am familiar with the -c command. 

    This is not helpful if, for example, I am trying to determine a server crash the night before. Also top jumps around, so it really isnt ideal for troubleshooting in real time either, although it might help narrow it down, you still have to be in a position to SSH into the server as it is happening. 

    Would be so much easier, and productive, to have these stats and history in the backend, no?

    0
    Comment actions Permalink
  • Avatar
    Alexandr Bashurov

    @Michael Pratt

    Indeed, in case the error happened a while ago running top -c might not help.

    However, there is also atop, which can run as a daemon, logging all activity in the background and allowing for auditing and extracting reports from captured data. You may install, configure and use it as described here: How to monitor usage of system resources in a period of time using atop?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request