<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>メモリを多く消費しているサービスを特定したく、systemctlコマンドを使って各サービスの現在のメモリ使用量を取得し、多い順に並べて表示するシェルスクリプト作成した。 #!/bin/bash # 実行中のサービス一覧を取得し、各サービスのメモリ使用量（バイト単位）とサービス名を出力 systemctl list-units --type=service --state=running --no-pager --quiet --plain | awk '{print $1}' | while read -r service_name; do # service_nameが空の場合はスキップ i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20250712%2F1752255101&quot; title=&quot;メモリを多く使用しているサービスを順番に10個表示するシェルスクリプト - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-12 02:31:41</published>
  <title>メモリを多く使用しているサービスを順番に10個表示するシェルスクリプト</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20250712/1752255101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
