1. The importance of performance optimizationReduce server stress (quantization is the execution time)Increase the user's goodwill (quick!) )2. ActiveRecord: Table AssociationActiveRecord can use associations to define the correlation between tables. So far we have learned to use ActiveRecord to manipulate the database, but have not yet fully developed the feature of the relational database, which is to correlate tables through primary key and foreign
MySQL's partitioned table is a simple and efficient way to handle a large data table, which enables the application to achieve efficient processing of large data tables with little change, but the Rails ActiveRecord design practices may result in some data processing not taking advantage of partitioned table attributes. Instead, it becomes very slow, and you must pay more attention to the use of partitioned tables.
Here is an example to illustrate. I
It is also necessary to perform basic monitoring on a single server or VPS. In the past, Zhao Rong did not monitor VPS, because when some servers were added, his performance became even more tense. There are also a lot of foreign server performance monitoring websites, but it is a little difficult for people like Zhao
System optimization is a complex, complex, and long-term task. monitoring, collection, testing, and evaluation are required before optimization. After optimization, testing, collection, evaluation, and monitoring are also required, it is also a long-term and continuous process. It is not to say that the optimization is now done, the test is done, and it can be done once and for all in the future. It is not
Brief introduction
Many Java applications today rely on a complex set of distributed dependencies and moving parts. Many external factors can have an impact on the performance and availability of your application. These effects are largely not completely eliminated or resolved, and are difficult to simulate accurately in a prebuilt environment. Stuff happens. However, you can create and maintain a comprehensive system to monitor the entire ecosystem
SNMP collects data on server performance, such as CPU usage, memory usage, CPU load, number of system processes, disk space usage, network traffic, disk I/O, and so on, while using the monitoring treasure to process these data can be visually displayed. The following describes how to configureInstalling SNMP1, tohttp://www.net-snmp.org/Download the latest version of the SNMP installation package.1. wgethttp
is divided evenly into three parts, the eldest brother occupies two, and the younger generation occupies a copy. Reference Sun Java System application Server Enterprise Edition 8.2 Performance Tuning guide), this ratio is not suitable for all situations, especially when local variables in your application are far greater than the global variables, and a large number of local variables have a short life cycle. How to reasonably configure the proportio
Front-end performance monitoring system ShowSlow, monitoring system showslow
Author: zhanhailiang Date:1. Introduction
ShowSlow is an open-source front-end performance monitoring system that provides the following functions:
Frontend p
Java built-in performance monitoring tool: Monitoring and Management Console jconsole usage1. Would you like to verify whether some tuning parameters (such as Xms and Xmx) configured for the jvm work? Do you want to monitor the number of threads in your custom thread pool in real time? Is there a deadlock? Java. lang. OutOfMemoryError: Java heap space appears in
Throughout the performance testing process, monitoring plays a vital role. After the performance test starts, you need to observe in real time whether all the indicators of the performance test are normal, including application servers, databases, and middleware. Once exceptions are detected, the system can be correcte
Non-intrusive monitoring of PHP application performance monitoring analysis
The so-called non-intrusive monitoring of PHP application performance means to monitor the system without modifying the existing system code. Such a system can be easily applied to PHP applications.
CPUs or CPU cores in the system. You will see that there are multiple counters on this instance.System:processor Queue Length: Shows how many threads are waiting for a CPU to be used.steps:1. Turn on reliability and Performance Monitor: Enter Perfmon.exe in "execute".2. When open, select Performance Monitor.3. Press DELETE in the toolbar or click Xbutton to delete all
Code
Chkconfig snmpd on
Then we check the NET-SNMP
? View Code LANGUAGE
1
Snmpwalk-v 3-u vpsaa.com-a md5-a "123456"-l authnopriv 127.0.0.1 SYSDESCR
If everything works, you'll see some information about the output.
Finally, because Zhao Jong here the server opened the iptables, so you need to add the monitor
Mysql performance monitoring tool Innotop, mysql monitoring innotop
Mysql monitoring management tool-innotop
1. innotop InstallationReference Official Website: http://innotop.googlecode.com/svn/html/installing.html
# Wget http://innotop.googlecode.com/files/innotop-1.9.0.tar.gz# Tar-zxvf innotop-1.9.0.tar.gz# Cd innoto
exception through the atop command view.Atop logEach time-point sampling page is combined to form a atop log file that we can use to view the log file using the "atop-r XXX" command. So what is the format for saving atop log files?For how to save the atop log file, we can do this:
Save a atop log file every day, which records the information of the day
Log files are named "ATOP_YYYYMMDD"
Set the log expiration period, automatically delete the log file before a period of time
rate at which the service receives data bytes at the application level, excluding protocol headers and control bytesSent/secThe rate at which the service sends data bytes.Total/secThe total number of bytes per second transmitted by the Web Service (Bytes Sent/sec vs. Bytes Received/sec sum)
Create a Trigger650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/E3/wKiom1Xvlj6wZuQcAAIOAm4Za2g554.jpg "title=" IIS triggers. png "alt=" wkiom1xvlj6wzuqcaaioam4za2g554.jpg "/>
Zabbix
For system and network administrators, it is a heavy task to monitor and debug the performance of Linux systems on a daily basis. After 5 years working as an administrator in the IT field as a Linux system, I gradually realized how difficult it was to monitor and keep the system up and running. For this reason, we have written a list of the 18 most commonly used command-line tools that will help each Linux/unix system administrator work. These command
As you learned in part 1th of this series (three articles), monitoring the availability and performance of Java applications and dependencies in production is critical to ensuring problem detection and accelerating problem diagnosis and repair. Source-code-level inserts for classes that need to be monitored have the advantages that are discussed in part 1th, but this method is often not available or impract
Brief introduction
As you learned in part 1th of this series (three articles), monitoring the availability and performance of Java applications and dependencies in production is critical to ensuring problem detection and accelerating problem diagnosis and repair. Source-code-level inserts for classes that need to be monitored have the advantages that are discussed in part 1th, but this method is often not
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.