Skip to content

Instantly share code, notes, and snippets.

@radoslav-stefanov
Forked from iamstoick/php.md
Created September 8, 2022 16:41
Show Gist options
  • Save radoslav-stefanov/1d6b58265ad1f55696be11f9033f9e29 to your computer and use it in GitHub Desktop.
Save radoslav-stefanov/1d6b58265ad1f55696be11f9033f9e29 to your computer and use it in GitHub Desktop.

Revisions

  1. @iamstoick iamstoick created this gist Jul 26, 2017.
    4 changes: 4 additions & 0 deletions php.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    ```
    ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
    ps --no-headers -o "rss,cmd" -C apache2 | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
    ```