Search
 
SCRIPT & CODE EXAMPLE
 

SQL

shell script to log mysql cpu usage

# log a processed cpu usage every second
while [ 1 ]
do
    #change 25029 to process id to monitor
    top -b -n 2 -d 0.2 -p 25029 | tail -1 | awk '{print $9}'
    sleep 1
done
Comment

PREVIOUS NEXT
Code Example
Sql :: mysqlcli how to load external sql file 
Sql :: sql how to display two atributes as one in sql 
Sql :: sql server import json 
Sql :: implicit inner join table alias with id values 
Sql :: alter tablespace undotbs1 add datafile 
Sql :: postgresql custom order by 
Sql :: grant privileges when craeting a user 
Sql :: intellij idea add mysql connector 
Sql :: how to set all the min and sec data to zero in sql server 
Sql :: select save as table postgres 
Sql :: tsql create table with variable name 
Sql :: redudancy in SQL 
Sql :: conditional index in postgres 
Sql :: Create a username nd password in MySql 
Sql :: how to create roles in oracle developer sql 
Sql :: get who is hired in january in sql 
Sql :: DAX Code Snippet To Seclect Top Rows In Query 
Sql :: findAllBy 
Sql :: ring SQLite sqlite_close 
Sql :: difference between cross apply and inner join 
Sql :: SQL ORDER BY With Multiple Columns 
Sql :: postgresql regular expression special characters 
Sql :: save_details_inrichting 
Sql :: sql query for login with email or username 
Sql :: sql developer format sql 
Sql :: How is the default tablespace determined when creating a table? 
Sql :: oracle transaction rollback not working 
Sql :: flashback in bigquery 
Sql :: error E11000 
Sql :: mysql utc to toronto time 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =