Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8604303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:32:21+00:00 2026-06-12T02:32:21+00:00

Does anyone know of a tool to visually show the memory usage of a

  • 0

Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu?

ps aux will show a numerical snapshot, but I’d really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours.

Has anyone got any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:32:22+00:00Added an answer on June 12, 2026 at 2:32 am

    I couldn’t find any real tools to do it.

    But I have found a neat small set of scripts that’ll do it.

    Using this little bash loop to do the logging:

    while true; do
    ps -C <ProgramName> -o pid=,%mem=,vsz= >> /tmp/mem.log
    gnuplot /tmp/show_mem.plt
    sleep 1
    done &
    

    This will create a nice little log file of memory usage called /tmp/mem.log. Then it generates an image of the data with gnuplot using the following script (put this in /tmp/show_mem.plt):

    set term png small size 800,600
    set output "mem-graph.png"
    
    set ylabel "VSZ"
    set y2label "%MEM"
    
    set ytics nomirror
    set y2tics nomirror in
    
    set yrange [0:*]
    set y2range [0:*]
    
    plot "/tmp/mem.log" using 3 with lines axes x1y1 title "VSZ", \
         "/tmp/mem.log" using 2 with lines axes x1y2 title "%MEM"
    

    Then opening the image with the default GNOME image viewer it keeps reloading the image when it changes. So if all the above loop is backgrounded it will appear that you have an amazing memory usage graphing tool running within an image viewer 🙂

    The process I’m tracking right now looks like this:
    Graph of rising memory usage

    It looks like I do have some memory issues 🙁

    Much of this was ripped from http://brunogirin.blogspot.com.au/2010/09/memory-usage-graphs-with-ps-and-gnuplot.html, credit where it is due.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a tool (like PHPMyAdmin or similar) that will allow me
Does anyone know when a tool will be available to manage a SQL Azure
Does anyone know of a tool that will given a cron string for example
Does anyone know of a tool that will take a PCAP file as input
Does anyone know of a tool that can be used to compare (relatively complex)
Does anyone know of a tool that I can use to find explicit C-style
Does anyone know of a free tool, similar to what is built into Visual
Does anyone know of a good tool for laying out class diagrams and the
Does anyone know if there is some type of tool, preferably a Firefox add
Does anyone know of an open source/free tool for converting pl/sql code to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.