Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 89a6b25

Browse filesBrowse files
Update performance-monitoring.sh
1 parent 3969c05 commit 89a6b25
Copy full SHA for 89a6b25

1 file changed

-19Lines changed: 0 additions & 19 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎performance_tuning/performance-monitoring.sh‎

Copy file name to clipboardExpand all lines: performance_tuning/performance-monitoring.sh
-19Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
# This script should work on both CentOS and macOS
44
# Author: Prashant Lakhera(laprashant@gmail.com)
55

6-
# Check if top command is present
7-
if command -v top >/dev/null 2>&1; then
8-
echo "top command is present"
9-
else
10-
echo "top command is not present. Installing..."
11-
# Install top command
12-
if [ -f /etc/centos-release ]; then
13-
# CentOS
14-
sudo yum install -y procps-ng
15-
elif [ -f /etc/lsb-release ]; then
16-
# Ubuntu
17-
sudo apt-get update
18-
sudo apt-get install -y procps
19-
else
20-
# Unsupported OS
21-
echo "Unsupported operating system"
22-
exit 1
23-
fi
24-
fi
256

267
# Function to list top 5 CPU consuming process
278
list_top_cpu_consuming_processes() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.