From: "Peña, Botp" Date: 2008-09-01T11:22:32+09:00 Subject: Re: Measuring Memory Usage From: AzimuthDragon [mailto:programdragon@live.com] # Sorry, I should have specified that I'm using Windows XP SP2 :\ # However, I want the program to be able to run on Linux, # Windows, and Mac without difficulty, though Windows is my primary # concern. I can figure out how to choose which way to measure on # a different platform but I don't know # how to measure it in the first place. ^^; in that case, you'll have to familiarize yourself w windows (or any os for that matter). on windows, one way is using tasklist. eg, to get the mem usage of putty, C:\family\ruby>ruby -e "p `tasklist`.grep(/putty.exe/i)" ["PUTTY.EXE 3988 Console 0 596 K\n"] if there are many putty instances, you'll know wc one by their pids. to get more tips, ask your system admin. kind regards -botp