Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladwa/capture-cpu-memory-utilization-file-descriptors-shell-script
A simple Shell script to Capture CPU, Memory utilization and Number of file descriptors ( using top and lsof command) over the time and output into csv for generating reports.
https://github.com/vladwa/capture-cpu-memory-utilization-file-descriptors-shell-script
capture cpu-monitoring linux memory-monitoring shell
Last synced: 5 days ago
JSON representation
A simple Shell script to Capture CPU, Memory utilization and Number of file descriptors ( using top and lsof command) over the time and output into csv for generating reports.
- Host: GitHub
- URL: https://github.com/vladwa/capture-cpu-memory-utilization-file-descriptors-shell-script
- Owner: vladwa
- Created: 2017-12-29T07:40:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-29T11:05:06.000Z (almost 7 years ago)
- Last Synced: 2023-07-17T05:29:10.917Z (over 1 year ago)
- Topics: capture, cpu-monitoring, linux, memory-monitoring, shell
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPU-and-Memory-Utilization-Shell-Script"
This shell script captures the CPU,Memory utilization and Number of File descriptors of the particular process using "top" and "lsof" command. The captured metrics are written into a .csv file. The script can be added to a cron entry to capture the metrics over the period of time.
The .csv file can be imported into Excel or can be opened with Excel for analyzing the CPU and Memory utilization by plotting the graph.
Example Run.
=======================================================================sh
Example CPU and Memory utilization to be captured for the Java process.
========================================================================
Assume you want to monitor process called java. In this case you will launch the script as below../MemWatch.sh Java
The .csv file can be easily plotted in excel to get the idea of Memory and Cpu Utilization.