Concurrency Performance test
1 Purpose of testing
According to the test results of Apache and Nginx concurrency performance, the advantages and disadvantages of concurrency model are analyzed.
Performance evaluation items include:
/plainContent-Length: 12Connection: keep-aliveDate: Sun, 15 Dec 2013 15:00:15 GMTServer: gophr
$ Curl-sI http://go.fcgi.unix/| wc-c141
Start the engine
Use sysctl to configure the kernel
Configure Nginx
Configure Nginx vhosts
Start the service with www-data
Run the Benchmark Test
Benchmark Test GOMAXPROCS = 1Go s
Recently, I am preparing to change the VPS. If VPS supports FreeBSD, I plan to try it. If you want to know the differences between it and linux performance, you can find some articles on the Internet. Many articles have mentioned that FreeBSD is more suitable for front-end file servers. Its database performance and SMP performance are inferior to those of linux.
Performance test comparison between Apache and Nginx in CentOSAfter apache2.4.1 is released, it is said that the performance target is directly directed to nginx. Therefore, you have compiled and installed two versions for stress testing on static pages.The
Test Purpose: Hide
Test goal: Only use data to speak, do not comment
Test platform: Garbage server, can better see the load
IIS6.0 Win2003 E5300 4G
The service side is unified to output a time.
A. Iis+isapi
iis+php5.1.2 FastCGI worker process max=30 Queue 2000
Result: 5,400 times a minute
B. iis+fastcgi
Results: 4,000 times a minute with cotton. and 500 errors
A description of the application scenarioDuring the performance testing of Nginx,redis, I wanted to draw the collected data, but Excel is not proficient and there are no familiar drawing tools. Anyway, it's all about learning, not trying to draw with Python, and then practicing Python.Two Python drawing tool learningResources:Http://pbpython.com/visualization-tools-1.htmlHttp://pbpython.com/archives.htmlThi
Brief introduction
Nginx ("Engine X") is a high-performance HTTP and reverse proxy server, also a IMAP/POP3/SMTP proxy server;
As a lightweight Web server, with less memory, concurrency and other advantages, is high-connection concurrency scenario Apache Good alternative;
This article mainly introduces Nginx as a Web server, compared to the
Nginx is superior to apache in a high-pressure environment, so I downloaded one and tried it. Download, compile, and install. my compilation process is a bit special: 1. Delete the debugging information, modify the $ nginx_setup_path/auto/cc/gcc file, and comment out the CFLAGS = quot; $ CFLAGS-g quot; line. 2. FastCGI is not installed because it only tests the performance of the WEB server.
;
#缓存30天} location/{#servlet或者别的没有后缀名的web款姐请求 also ok Proxy_pass http://dymic2.com;
} server{Listen 4808;
server_name www.xdloveglt.cn;
Location/{Root/usr/local/tomcat7_forzw/webapps; } location ~ (\.html) | (\.jpg) | (\.jpeg) | (\.png) | (\.js) |
(\.CSS) $ {root/usr/local/tomcat7_forzw/webapps;
}
}
}
My direct access
Http://www.xdloveglt.cn/PathTest/js/jquery-1.11.3.min.js
It's going to be through Nginx.
If it
Brief introduction
Nginx ("Engine X") is a high-performance HTTP and reverse proxy server, but also a IMAP/POP3/SMTP proxy server;
As a lightweight Web server, with less memory, concurrency and strong advantages, is a high connection to the concurrent scene of Apache good alternatives;
This article mainly introduces Nginx as a Web server, compared to Apache
This is a creation in
Article, where the information may have evolved or changed.
sudo taskset-c 1./wrk-c1-t1-d30 http://localhost/hellowrk+nginx (HelloWorld module) sudo taskset-c 0 Sbin/nginx nginx:cpu:76% wrk:cpu:70% Running 30s Test @ Http://localhost/hello 1 threads and 1 connections Thread Stats AVG Stdev Max +/-Stdev Latency 61.55us 27.57us 4.30ms 99.28%
PHP native serialization method, and I compare the performance and number of bytes of igbinary vs Serialize vs Json_encode in the first two days. In this test igbinary has certain advantages in all aspects, especially the storage space will be greatly reduced, so I just need to change the serialization method for Igbinary_serialize can be improved.Optimize list DisplayI'm tired of looking at the big pictur
Performance testing, load testing, stress testing What's the difference? Performance testing (or antisymmetric user concurrency performance testing), load testing, strength testing, and capacity testing are some of the areas of performance testing, but concepts can easily be confused. Here are a few concepts to introdu
operation.
Depending on the time and resource characteristics of the product, the efficiency test can include different types of tests, such as performance tests (performance test), load tests (loading test), and stress tests (Stress te
Nginx worker Process Number
Syntax: worker_processes number;Default: Worker_processes 1;Role: Defines the number of worker processes in the Master_worker run mode. The number of worker processes directly affects performance. So, how many fits? Based on business requirements. Each worker is a single-threaded process, and his demons invoke each module to implement a variety of functions. If you determine tha
Label:Poptest is the only training institute for developing Test and development engineers in China, aiming at the ability of the trainees to be competent in automated testing, performance testing and testing tools development. In Poptest's LoadRunner training, in order to improve the performance of students experience, add a lot of server optimization knowledge,
Nginx Series Links:An introduction and installation of Nginx high Performance Web server seriesWww.cnblogs.com/maxtgood/p/9597596.htmlThe second command management of Nginx High Performance Web server seriesWww.cnblogs.com/maxtgood/p/9597990.htmlThree-version upgrade of
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.