Build high performanceASP. NETSite Chapter 7 How to solve memory problems(Previous)-Managed Resource Optimization-MonitoringCLRPerformance
In the previous articleArticleThis article describes how to monitorCLRWhether it causes some performance problems.
The topics in this article are as follows:
Memory problems(Previous)
Managed Resource Optimization (previous)
Object lifecycle (previous)
immediatelyif [$swap _now-ne 0];then # if ($swap _now! = 0); ThenEcho swapfree:${swap_free}mecho "$IP server swap partition only left $swap _free M unused, the remaining less than 20%, the utilization rate has exceeded 80%, please timely processing. " | Mail-s "$IP server memory Alarm" $Mailfi fiEcho 3end# 4, monitor the system hard disk root partition usage sit
Here to monitor memory usage as an example, write a simple demo program, the specific operation according to the 51reboot provided by the tutorial written as follows.
First, build a database to build a table
To create a Falcon database:
Mysql> CREATE DATABASE Falcon character set UTF8; Query OK, 1 row Affected (0.00 sec)
To create a
When using the GPU for computing, such as running deep learning code, we may want to be able to detect the use of video memory in real time, but Linux generally does not bring its own monitoring of existing tools. Nvidia comes with a NVIDIA-SMI command-line tool that shows memory usage, but we can't enter this command
DescriptionThe work consists of two parts of the monitoring end (123) and the monitored end (iv)One, nrpe.cfg add scriptAdd a command index to the NRPE.CFGCOMMAND[CHECK_USED_MEM]=/USR/LOCAL/NAGIOS/LIBEXEC/CHECK_USED_MEM.SH 80 90Description: Actual memory usage exceeds 80% warnings; more than 90% critical warningsSecond, add specific scriptReference Script check_used_mem.shWarn=$1Critical=$2All= ' Free | Sed
How to remotely monitor and optimize the memory and CPU of Tomcat and Java programs using VISUALVMJVISUALVM is a masterpiece after the Java JConsole, a tool that integrates many tools for analyzing and optimizing Java programs.We can use it to optimize the memory footprint of Java programs, to find memory leaks, to ana
Shell scripts monitor Linux system nodes and service CPU memory performance
1. Obtain information
#! /Bin/bash # Description: # enter the top information into a file # Author: lone boat # version: 1.0 # Creation Time: 03: 04: 28 PATH =/bin: /sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin :~ /Binexport PATHp = 'pwd' Day = 'date + "% Y % m % d" 'host = 'hostname' for (I = 0; I
2. filter information
#
/mnt_storage_pic.txt time= ' Date +%m '. %d ""%k ":"%m ' connect= ' Netstat-na | grep "219.238.148.30:80" | Wc-l ' Echo $time $connect >>./temp/connect_count.txt
3, monitoring the host's disk space, when the use of more than 90% in space by sending mail to send a warning
The code is as follows
Copy Code
#!/bin/bash#monitor Available disk spaceSpace= ' DF | Sed-n '//$/P ' | Gawk ' {print $} ' | Sed ' s/%//
Article Title: How to monitor the usage of Linux system resources. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Although the Linux operating system is much more stable than the Windows operating system. However, this stability is relative. That is to say, the Linux op
Although the Linux operating system is much more stable than the Windows operating system. However, this stability is relative. That is to say, the Linux operating system may also get angry. In some cases, the system's resource usage (including CPU or memory) may reach more than 90%. To this end, the system administrator still needs to monitor the
Although the Linux operating system is much more stable than the Windows operating system. However, this stability is relative. That is to say, the Linux operating system may also get angry. In some cases, the system's resource usage (including CPU or memory) may reach more than 90%. To this end, the system administrator still needs to monitor the
Partial reprint 51942281The iostat command is used to monitor system input and CPU usage. It is characterized by the reporting of disk activity statistics, as well as the reporting of CPU usage. like Vmstat, Iostat also has a weakness, that is, it cannot analyze a process in depth, only the overall situation of the system. Iostat Monitoring I/O subsystemThe IOSTA
Use alter index ××monitoring usage; statement to monitor the index usage, altermonitoring
With the accumulation of time, in the absence of good planning, the database may have a large number of indexes that are not used for a long time. If you can quickly locate these indexes so that they can be cleared, they will be placed in the case. We can use the "alter inde
has been using Jconsole to monitor the JVM, the graphical interface is easy to use, recently because the need to operate under the pure Linux, so summed up the Linux monitoring JVM under the example, this time the main use of the Jstat tool,The meaning of each parameter:Jstat-class PID: Displays the number of loaded classes, and the amount of space that is occupied.Jstat-compiler PID: Displays information such as the number of real-time VMS compiled.J
[Original] How to Use Windows XP to monitor computer resource usage
1. Start Menu-> Control Panel-> management tools-> Performance2. Right-click to add a counter3. Select the computer to be monitored. Here I select "select counter from computer" and enter the computer name.Note: by default, the name of the Local Computer is selected.4. Select the data to be monitoredExample:
1. Memory Optimization principle
To optimize application memory use, developers should first know what the most memory of the application, the answer is the texture. Textures can occupy almost 90% of the applied memory. So minimize the application of the texture memory
Recently, a project was designed to obtain information about the cpu usage and so on. At first, I thought it was necessary to use a dynamic link library, but later I found that I could do the following without calling jni, this saves a lot of time for reading new technologies...
In Java, you can obtain information such as the total physical memory, the remaining physical
Although the current computer memory is generally relatively large, generally there are 2 GB, and some even reach 4 GB, but because the user runs the software itself is large, or there are many file windows opened, or when there are too many windows opened during Internet access, it will also affect the speed of system operation, seriously affecting the system running performance.Therefore, we are concerned about how to optimize
1. [CPU usage]CPU usage percentage. The bar chart shows the real-time CPU usage.2. [CPU usage record]CPU usage changes over time. The red line indicates the usage of the system kernel (you need to click the View menu of task manag
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.