<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on BradCypert.com</title>
    <link>https://www.bradcypert.com/tags/linux/</link>
    <description>Recent content in Linux on BradCypert.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 09 Nov 2022 15:36:37 -0500</lastBuildDate>
    <atom:link href="https://www.bradcypert.com/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>List Processes by Memory Usage in Linux</title>
      <link>https://www.bradcypert.com/list-processes-by-memory-usage-in-linux/</link>
      <pubDate>Thu, 09 May 2019 00:00:00 +0000</pubDate>
      <guid>https://www.bradcypert.com/list-processes-by-memory-usage-in-linux/</guid>
      <description>&lt;p&gt;I recently was running into an issue where a Systemd service was crashing due to an out of memory error. I was pretty sure that my project wasn’t taking up &lt;strong&gt;too&lt;/strong&gt; much memory, but I wasn’t certain what was. Thankfully, with the use of some command-line wizardry, I was able to find out that Hyper (the terminal app) was using almost 3gb of memory!&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ps -e -o pid,vsz,comm&lt;span style=&#34;color:#ff79c6&#34;&gt;=&lt;/span&gt; | sort -r -n -k &lt;span style=&#34;color:#bd93f9&#34;&gt;2&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We have two commands here, each with their own &lt;code&gt;man&lt;/code&gt; page should you want to learn more. The first command is &lt;code&gt;ps&lt;/code&gt; which displays information about all of your running processes.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
