Initial import
This commit is contained in:
8
mysql_memory_usage.sh
Executable file
8
mysql_memory_usage.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo ""
|
||||
ps -ylC mysqld
|
||||
|
||||
echo ""
|
||||
ps -ylC mysqld | awk '{x += $8;y += 1} END {print "MySQL Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}'
|
||||
echo ""
|
||||
Reference in New Issue
Block a user