handles currently opened by each thread in this process. The increase in the handle count in a specific process may be a symptom of a handle leakage error process, which may cause performance problems on the server. This problem may not occur, but it is very important to monitor it for a period of time to determine whether a handle leakage occurs.
Process
Thread Count
Number of active threads in the process. A command is a basic
_env" = "yes"]
Then
echo "MySQL Slave is running!"
Else
echo "####### $DATA #########" >>/data/mysql/mysql_slave_status.log
echo "MySQL Slave is not running!" >>/data/mysql/mysql_slave_status.log
echo "MySQL Slave is not running!" | mail-s "warn! $MYSQLIP MySQL Slave is not running. "Admin@yourdomain.
There is also a need to use a CAE software to call external programs, but after calling the external program through this CAE software, because this external program has parameters, the call method is written in the Bat file, the CAE software calls the Bat. Therefore, the CAE software cannot monitor the called program, and the called program is still running. The preparation is not complete, so the next pro
UseJrockit Mission ControlMonitoringJavaProgram Running Performance
Bea's jrockit JDK is developed by Bea. Using jrockit JDK to run Java programs, you can use the Mission Control Program to monitor the running status of Java programs.
Use Bea's jrockit Mission Control to view various metrics of the Java program during runtime. It helps you find the performanc
Problem: the significance of writing this tool is that I am running a program that needs to be executed for a long time, such as a single-thread crawler. In the case of network interruptions or website packet loss, the program will throw socketexception and sockettimeoutexception. The program will be interrupted. (This is just a hypothesis)
Solution:
Java does not monitor windows processes like C # (this is
monitor the Web server's running status information through a Web page.Explanation of configuration file parametersGlobal//Globally setLog 127.0.0.1 local0//Logging Output configurationMaxconn 4096//maximum number of connectionsChroot/usr/local/haproxyUID 99//user UID of the owning runGID 99//the user group to which the run belongsDaemon//After station form operationNbproc 2//start 2 Haproxy instancesPidfi
Monitor the running status of system services mysqld and httpd
Environment requirements:
Shell. sh is used to monitor the running status of the system service mysqld every five minutes,
If the mysqld process has been stopped, append the log information in the/var/log/messages file, including the stop time, and restart
Some friends hope to adjust the cpu frequency in Ubuntu and monitor it. It takes some time to find a new one. /// // Update ///// /// // the simplest method code: sudodpkg-reconfiguregnome-applets and then select OK and yes to monitor the cpu frequency
Some friends hope to adjust the cpu frequency in Ubuntu and monitor it. It takes some time to find a new one.
//
I. Environmental description1, Server role
2. System environmentCentOS 6.2 x86_64
3. Environmental requirements(1), MySQL 5.0 and above (used to store the data collected by the monitoring system)(2), Apache 2.2 and above (WEB server running server)(3), PHP more than 5.3 (WEB interface)(4), Python 2 (2.7 version is recommended, other versions are not tested, perform data acquisition and alarm tasks)(5), mysqldb for Python (Python-connected MySQL in
In this paper, we describe the method of C # Implementing software to monitor the running state of external programs. Share to everyone for your reference. Here's how:Need to plug a program to monitor another program running state, once detected another program shutdown, triggered an event to do other processing.usingS
This article describes how to install and configure MySQLMTOP to monitor MySQL running performance. MySQLMTOP has a BS graphical operation page. For more information, see
I. environment description1. server role
2. system environmentCentOS 6.2 x86_64
3. environment requirements(1) MySQL 5.0 and above (used to store data collected by the monitoring system)(2) Apache 2.2 and above (WEB server
NgqueueThe thread pool commits 100,000 tasks, but at the same time only 50 threads are executing, and we get the current thread pool's running state every 3 seconds.First time program output:当前排队线程数:99950当前活动线程数:50执行完成线程数:0总线程数(排队线程数 + 活动线程数 + 执行完成线程数):100000Second program output:当前排队线程数:99800当前活动线程数:50执行完成线程数:150总线程数(排队线程数 + 活动线程数 + 执行完成线程数):100000The number of active threads and the number of threads is constant, the number of threads in the queu
Install and configure MySQLMTOP to monitor MySQL running performance,
I. Environment Description1. Server role
2. System EnvironmentCentOS 6.2 x86_64
3. environment requirements(1) MySQL 5.0 and above (used to store data collected by the Monitoring System)(2) Apache 2.2 and above (WEB server running server)(3) PHP 5.3 or above (WEB Interface)(4). Python 2 (versi
JProfiler is a well-known software used for monitoring and analysis of java systems. It has powerful functions and can monitor common java applications, applets, java web start, and application server. In addition to monitoring local programs, you can also monitor applications running on remote servers. This article takes JBoss as an example to briefly introduce
Use JDK jconsole to monitor JMX
First, set the monitoring object port configuration Catalina. Sh
# Vi/usr/tomcat/bin/Catalina. Sh
Note:/usr/tomcat/bin/Catalina. Sh is the bin directory of the Tomcat directory (in Linux)
Add content before # OS specific support. $ VaR _ must _ be set to either true or false.
# Java_opts set memory
Java_opts = "-xms2g-xmx2g-XX: + useconcmarksweepgc-XX: + cmsincrementalmode-XX: newsize = 512 M-XX: maxpermsize = 256 m"
: This article mainly introduces the real-time view and monitoring of the PHP-FPM running status, for PHP tutorials interested in students can refer. The PHP-FPM has a built-in status page that enables you to view the detailed running status of the PHP-FPM to help with PHP-FPM optimization. The following article will record how to view and monitor the
#!/bin/Shmaxrstcount=5; Proctogo=/mnt/hgfs/code/test/Show#count isThe counter of test started Timescount=0Sys_reboot () {echo"system is going to reboot"; Reboot;} Main_loop () { while : Do######################################### prostillrunning=$ (Ps-aux |grep"${proctogo}"|grep-v"grep") if[-Z"$ProStillRunning" ]; Then #start test chmod+x ${proctogo} ${proctogo} fi #the running times counter let Count=count+1Echo"test
One way to monitor running MySQL is to check the status of MySQL running.(1) QPS (query amount per second)QPS = Questions (or Queries)/secondsMySQL > Show global status Like "question%";(2) TPS (transaction volume per second)TPS = (com_commit + com_rollback)/secondsMySQL > Show global status Like "Com_commit";MySQL > Show global status Like "Com_rollback";(3) key
specific commands are: Tail-f catalina.out.ALT+F2 input gnome-terminal to open terminalShut downShutdown.sh-sStartcd/usr/local/apache-tomcat-6.0.10/bin/2./startup.sh3./catalina.sh Run (Display information to start, shut down will turn Tomcat off)Linux kill all Tomcat processes for a userPS aufx|grep tomcat|grep Root|awk ' {print $} ' |xargs kill-9509 replace with user name to killSometimes directly with shutdown.sh can not shut Tomcat, to force kill, but probably Tomcat started several times, t
Use the top command to dynamically monitor the memory usage of programs with very short running times
Solution:
Top-d 0.01-N2000-B | grep lzma
-D specifies the interval at which top data is collected. The value is 0.01 seconds.
-N indicates the total number of statistics. Set this parameter to 2000 to ensure that the top node does not end the statistics during the program
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.