Editing Ps -ylC php-fpm --sort:rss

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 4: Line 4:
  
 
  ps -ylC [[php-fpm7.2]] --sort:[[rss]]
 
  ps -ylC [[php-fpm7.2]] --sort:[[rss]]
  S  UID  PID  PPID  C PRI  NI  [[RSS]]    SZ [[WCHAN]] TTY          TIME CMD
+
  S  UID  PID  PPID  C PRI  NI  [[RSS]]    SZ WCHAN  TTY          TIME CMD
 
  S    0 10836    1  0  80  0  6960 91494 ep_pol ?        00:06:45 php-fpm7.2
 
  S    0 10836    1  0  80  0  6960 91494 ep_pol ?        00:06:45 php-fpm7.2
 
  S    33 17394 10836  2  80  0 74596 95123 skb_wa ?        00:00:20 php-fpm7.2
 
  S    33 17394 10836  2  80  0 74596 95123 skb_wa ?        00:00:20 php-fpm7.2
Line 12: Line 12:
  
 
* [[Explainshell.com]]: https://explainshell.com/explain?cmd=ps+-ylC+php-fpm+--sort%3Arss
 
* [[Explainshell.com]]: https://explainshell.com/explain?cmd=ps+-ylC+php-fpm+--sort%3Arss
 
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 php-fpm7.2 | awk '{ [[sum+]]=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
 
  
 
== Related ==
 
== Related ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: