Today, I found a problem with the site, and the httpdCPU usage remains high. View apachelogsaccess. log and find that the request response time has reached several hours, and the HTTP status code is 500. View the configuration apacheconfextrahttpd-default.conf: {code...} ap... today I found a problem with the site, httpd CPU usage remains high.
ViewApache \ logs \ access. logIt is found that the request
Log interface response time, logging interface request information, response results, and response time. Can clearly analyze and understand the interface now.If we do a log under the interface one by one, that's not the result we want. Therefore, we choose to do a feature to
From: http://www.blogjava.net/sitinspring/archive/2007/06/28/126809.html
Currently, the program processes a lot of long and time-consuming response processes, such as accessing WebService, remote calls, and complex processing. If we process them in direct order, it may cause the interface to pause, it is not appropriate to respond to defects such as stop and unnecessary waiting.
A
URL Auto-Discovery script:[email protected] scripts]# cat urldiscovery.py#!/usr/bin/env python#Coding:utf-8ImportOSImportSYSImportJSON#This function mainly constructs a dictionary of a specific format for Zabbixdefweb_site_discovery (): Web_list=[] web_dict={"Data": None} with open ("/etc/zabbix/server_list","R") as F: forwr.inchf:dict={} dict["{#SERVICENAME}"]=Url.strip (). Split () [0] dict["{#SITENAME}"]=url.strip (). Split () [1] Web_list.append (dict) web_dict["Data"]=web_list jsonstr= Json
2015-10-27 about optimizing page response time: 1. Dynamic page static (access static pages, reduce database queries, improve access speed) dynamic page statics is a very effective acceleration method if some content in the page changes infrequently. Increase the page response rate. Essence: Generates a static HTML file. The reason is that the static page does no
/curl_easy_getinfo.html)
Pycurl. Namelookup_time Domain name resolution time Pycurl. Connect_time Remote server connection time Pycurl. Pretransfer_time the time pycurl after the connection is over to the start of the transfer. Starttransfer_time receives the time Pycurl of the first byte. Total_time the total
)
Pycurl. Namelookup_time Domain name resolution time
Pycurl. Connect_time Remote server connection time
Pycurl. Pretransfer_time the time after the connection to the start of the transfer
Pycurl. Starttransfer_time receives the first byte of time
Pycurl. Total_time The total
QPS:Query rate per second (Second), the number of response requests per second, which is the maximum throughput capacity.QPS = REQ/SEC = Request Number/secQPS statistical methods [general use Http_load for statistics]QPS = Total Requests/(total number of processes * Request time)QPS: Number of times a single process has succeeded in requesting a server per second
Peak QPS and machine calculations:Rationale:
The calculation formula of average transaction response time in Oracle databaseNote: This calculation formula is taken from: Eel with Optimize journaling >> , p316 pageTop 5 Timed Events
Event
Waits Time
(s)
AVG Wait (ms)
% Total call time
Wait Class
Direct Path Rea
: Either server-side header redirection, JS redirection, or HTML element redirection. Your website will load the blank page header and then load a new page. Users will spend more and more time to get the required page, so they have to avoid this situation at all costs.
Remove duplicate scripts: Loading the same script on the browser increases the page loading time. This is a very simple mathematical problem
Httping is a time to test the connection of an HTTP request, send a request, and wait for a response. Httping is similar to ping, but instead of sending an ICMP request, it sends an HTTP request. With httping, we can measure the latency of the Web server and the network. httping Project Address: https://www.vanheusden.com/httping/Httping Installation$ apt-get Install httping # debian/ubuntu$ Yum Install ht
1. Introduction to tcprstat
Tcprstat is a tool developed by percona to investigate mysql response time. It can also be used to investigate typical request-response services. The time consumed by gameserver of yujian was recorded using this tool some time ago.
Details:
Http:
Such as: Dynamic page static, optimize the database, use load balancing, use cache and so on can optimize the page response time.
If some content on the page does not change frequently (hours, days or longer without making changes), it is a very effective way to accelerate the dynamic page static, such as: News release system, article publishing system, etc.
The benefits of dynamic page statics:
1. Red
Users of Microsoft's operating system should all suffer from the "program is Responding" pain, which is too slow to endure. In response to this situation, some users will manually optimize the system, or the use of Third-party optimization software to optimize to avoid the program response time caused by suspended animation.
Although the above two methods can re
1. The frequency of the individual 0 points correspondsA single 0 point corresponding to a fraction of 1-az-1,a can be a complex number. When z is in the value of the unit circle, we can write this fraction as 1-rejθe-jω to analyze.2. Multiple polesIf the system's H[n] is a real number, then the frequency response of the system must have a conjugate symmetric 0 points or poles (the system frequency response
When you set the server to be put into use, you are most concerned about the performance of the server. You can use some manual methods for testing, but manual methods have many limitations.
Regardless of the time and energy invested by the manual testing method, the major disadvantage of manual testing is that it does not easily reveal the real problems of your site, is it a problem with server settings, or is it caused by some dynamic components or
Operation
Response time
Open a Web site
A few seconds
Querying a record from a database (indexed)
More than 10 ms
One-time addressing in mechanical disks
4ms
Mechanical disk reads 1M data
2ms
Read 1M data from SSD
0.3ms
Read a data from a remote
the server and client. If there is a problem with the DNS service, the login process will not continue until the DNS query times out. This is why the SSH logon prompt takes a long time. L solution: 1. If the remote SSH server cannot be modified, modify the SSH client configuration file. # Vi/etc/ssh/ssh_config (take the Linux client as an example) Set: gssapiauthentication No 2. modify the configuration of the remote SSH Server # Vi/etc/ssh/ssh
lot of papers are in the implementation of the algorithm Ah, try to calculate something. The content looks simple, but it's still a lot harder to achieve . You think a few photon entanglement is the world's leading, you now do a 6-bit 8-bit classic CPU what is it? In quantum computing you are Daniel.But the individual is less interested in this kind of experiment is the main content of quantum computers to make, what can do? and not how to make it as soon as possible? The students who are going
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.