In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to use shell automation to diagnose performance problems, the content is very detailed, interested friends can refer to, hope to be helpful to you.
We have to do the automation of performance analysis for a long time, but I haven't started writing for a long time, so let's update it today.
First of all, one of the basic effects I hope to get is to scan the DB time of the database in the background. if the threshold is exceeded, for example, if I set it to 400 (that is, the DB time is 400%), the task of automatic diagnosis will be turned on. The time range is one hour in advance and the current time. I have made some changes to the existing script, added some logic, and will continue to improve.
DBTIME_THRESHOLD=400
DATE= `date'+% Y% m% d``
BEGIN_HOUR= `date-d "1 hour ago" + "% H" `
END_HOUR= `date + "% H" `
The following function gets the snapshot-level DB time situation
Function showsnap
{
Sqlplus-s $DB_CONN_STR@$SH_DB_SID
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.