User Tools

Site Tools


system_stats

I have created a bash script that gathers the systems usage and outputs it on the screen. This method is very quick to assessing potential issues with the server. You can view the original code at: https://github.com/LukeShirnia/ServerUsage/blob/master/ServerStats.sh
Note: Script does NOT make any changes, it simply reads from the server.

Run the following on your server:

bash <(curl -s https://raw.githubusercontent.com/LukeShirnia/ServerUsage/master/ServerStats.sh)



##Example Output##
############################################

Server Uptime: 147days 6:56:30

Load Average: Current 0.00
Load Average: 15min Average 0.00


### RAM usage ###
Free Ram: 2845.70MB
Used RAM: 910.14MB

76% ram left
RAM Usage: Acceptable

TOP RAM CONSUMER: /usr/bin/python
RAM Usage (RSS): 166.36 MB
Total Number of RAM Processes: 2
Total RAM Usage for all /usr/bin/python processes =  171.57 MB
4.57% used by /usr/bin/python


###CPU usage###
Top Process:  ./Plex
CPU % for SINGLE Top Process =  4.1
number of processes this is running: 5
Total CPU % for ./Plex =  4.1

############################################

system_stats.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki