Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Measure CPU and Memory utilization

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a .sh file which will write current CPU and Memory in a specified file.

I am new to Unix.

Anybody has this code?
 
Chris Hendy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have any ready made shell scripts, but the utility vmstat should tell you everyting you need. See

http://ertw.com/%7Esean/news/Mar-7-2002.html

and look for section 1) Sean's Notes
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe useful too:
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic