Linux performance monitoring, testing, and optimization tools
There are a lot of performance tools on the Linux platform, dazzled, long-term exploration and experience found that the best to use is those long-tested, simple gadgets. System Performance Expert Brendan D. Gregg updated his famous Linux Performance Tools
There are a lot of performance tools on the Linux platform, a dazzling, long-term groping and experience finding the best thing to use is the proven, simple gadgets. Brendan D. Gregg, a system performance expert, updated his famous talk (Linux performance Tools) and slides on Linux in the recent LinuxCon NA 2014 conference.Compared with Brendan last year's talk, this year added testing and optimization to t
Introduction to Linux monitoring tools a brief introduction to top tools for viewing process activity status and some system conditions such as vmstat for viewing system status, hardware and system information iostat for viewing CPU load and hard disk status sar integrated tools, view system status mpstat view multi-pr
I/O wait for Linux system monitoring and diagnosis tools
Directory
1. Problem:2. troubleshooting:2.1 vmstat2.2 iostat2.3 iotop3. The last words: a different path1. Problem:
Recently, log real-time synchronization was performed. Before the release, the online log stress test was performed. The message queue and the client and the local machine are normal, but I did not expect that after the second log is upl
interrupt related rate data-L: Displays statistics related to load average (average load)-M: Show memory-related statistics-N: Shows the rate of data sent to and from the network-P: Show process-related statisticsRate of-R:I/O requests-S: Show data about swap-Y: Displays system-related data, including interrupts and process transitions2. Other options--TOP-CPU: Show CPU-intensive processes--top-bio: Displays the process of the most consumed block device block IO--top-io: Show processes that occ
and port of the ZK serverOnce the connection is successful, the node data information of ZK can be seen.2.zk Browser Eclipse PluginInstalling the Eclipse PluginStep 1. On the Eclipse menu, open Help, Install New software ...Step 2. Add the URL http://www.massedynamic.org/eclipse/updates/.Step 3. Select Plug-in and installRunStep 1. Open Window->show View->other...->zookeeper 3.2.2 in the Eclipse menuStep 2. Connect ZKEnter a running ZK server address and portOnce the connection is successful, y
)) 999 printf ("%d", i); 168}}Procedure trial Teaching Performance monitoring instructions, SQRT takes up the most time. P3 move the SQRT function outside the For loop,#include int i,bound; Bound =root (n); for (i =2;i 999 { if (n%i==0) 5288 return 0; 831 return 1; 168 }} Main () { int i, n; n=1000; 1 for (i=2;iP4By a special
JSTAT:JVM Statistics Monitoring Tool The Jstat command monitors various runtime state information for the JVM virtual machine, including memory status, garbage collection, loading of classes, and so on. Jstat command format: jstat [option Vmid [interval] [count]] Jstat command Examples Command: JSTAT-GC 1203 500 3 Command explanation: Check the status of garbage collection with process ID 1203 every 500 milliseconds, query 3 times Command options
|one-line-both|one-line-sent|one-line-received)
Controls the appearance of each item in the display.
Show-totals: (Yes|no)
Shows cumulative total for each item.
Log-scale: (Yes|no)
Use a logarithmic scale for bar graphs.
Max-bandwidth:bw
Fixes the maximum for the bar graph scale to bw, e.g. "10M". Note that the value have to always is in bits, regardless if the option to display in bytes have been chosen.
Net-filter:net/mask
Defines an IP network boundary for determining packet
not indicate a ram bottleneck. The virtual memory system often makes page exports to the memory segment, but the page import operation indicates that the server needs more memory, and the page import needs to copy the memory segment from swap disk back to RAM, causing the server to become slower.There are several ways to solve this problem:1. The simplest, increase the RAM;2. Reduce the need for RAM by changing the SGA;3. Reduce the need for RAM. (e.g., reduction of PGA)Reference Documentation:
1. Introduction:Javamelody can monitor Java or Java EE application servers in a running environment. It is displayed as a graph: Java memory and Java CPU usage, number of user sessions, JDBC connections, and HTTP requests, SQL requests, JSP pages and Business interface methods (EJB3, Spring, Guice), average execution time, Error percentage, and so on. Charts can be viewed by day, week, month, year, or custom time period.2. Prepare:Download Javamelody-1.47.0.jar and Jrobin-1.5.9.1.jar, referenced
When your system is running slowly, have you noticed that your CPU, memory, and other hardware information has encountered an exception. How can we find out the cause that actually slows down your machine? We recommend five system monitoring tools under Ubuntu to keep your system vigilant."Top" command
Needless to say, this is the most typical command in Linux. The console interface provides comprehensive
The following are some excellent monitoring products. It is best for system providers to recommend the best monitoring solution that meets their needs and maintains compatibility with infrastructure.
Most vendors provide the following system monitoring tools for selection.
Up. Time
Http://www.uptimesoftware.com/
Ca
Tools for batch monitoring MySQL db layers in Linux are relatively scarce, and SSIS is used for DIY.
Use the SSIS package to read the configuration table information to monitor MySQL and send feedback to DBA by email according to the actual situation.
1. sort out a global information table, including ip addresses and monitoring dimensions.
The table creation sta
V
Ndrt
The number of pages that were modified the last time it was written to.
W
S
Process state.D= non-interruptible sleep stateR= runS= SleepT= trace/StopZ= Zombie Process
X
COMMAND
Command name/command line
Y
Wchan
If the process is sleeping, the system function name in sleep is displayed
Z
Flags
Task Flag, reference sched.h
By default, only the more important PID,
Ext.: http://www.vpsee.com/2014/09/linux-performance-tools/There are a lot of performance tools on the Linux platform, a dazzling, long-term groping and experience finding the best thing to use is the proven, simple gadgets. Brendan D. Gregg, a system performance expert, updated his famous talk (Linux performance Tools) and slides on Linux in the recent LinuxCon
As you know, the JDK itself provides many virtual machine monitoring tools to monitor virtual machine service information, such as Jps,jmap,jstack. Under win7 , sometimes executing these commands will report an " Access denied " error, such as:This problem usually occurs with commands that involve process PID. Workaround: When the cmd Command box is turned on, right-click Run as Administrator , such as:The
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.