Ubuntu10.04ServerMono2.4.4Nginx (successful)

Source: Internet
Author: User
1. Install nginxsudoapt-getupdatesudoapt-getinstallnginx2 install monosudoapt-getinstallmono-runtime------------------------------------------root@www.linuxidc.com-Ubuntu :~ # Sudoapt-getinstallmono-run 1. Install nginx
Sudo apt-get update
Sudo apt-get install nginx

2 install mono
Sudo apt-get install mono-runtime
------------------------------------------

Root @ www.linuxidc.com-Ubuntu :~ # Sudo apt-get install mono-runtime
Analyzing the dependency tree of the software package
The following additional software packages will be installed:
Binfmt-support cli-common libmono-corlib2.0-cil libmono-i18n-west2.0-cil libmono-security2.0-cil libmono-system2.0-cil
Mono-gac mono-2.0-gac
Recommended software packages:
Libmono-i18n2.0-cil libasound2 libcups2 libgamin0 libgdiplus libmono-winforms2.0-cil xdg-utils libgnome2-0 konqueror
The following [new] software packages will be installed:
Binfmt-support cli-common libmono-corlib2.0-cil libmono-i18n-west2.0-cil libmono-security2.0-cil libmono-system2.0-cil
Mono-2.0-gac mono-gac mono-runtime
0 software packages are upgraded, 9 new software packages are installed, 0 software packages are to be uninstalled, and 30 software packages are not upgraded.
Download the 4-kb software package.
After decompression, 12.0 MB of extra space is consumed.
Bytes ---------------------------------------------------------------------------------------------------------------------
Root @ www.linuxidc.com-ubuntu :~ # Mono-V
Mono JIT compiler version 2.4.4 (Debian 2.4.4 ~ Svn151842-1ubuntu4)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: _ thread
GC: encoded ded Boehm (with typed GC)
SIGSEGV: altstack
Specifications: epoll
Architecture: x86
Disabled: none
Root @ www.linuxidc.com-ubuntu :~ #
------------------
Sudo apt-get install mono-gmcs libmono-system-data2.0-cil libmono-system-messaging2.0-cil libmono-system-ldap2.0-cil libmono-system-

Messaging2.0-Pencil libmono-system-runtime2.0-cil libmono-system-web2.0-cil libmono-system-web-mvc1.0-cil libmono-wcf3.0-cil libmono-

Winforms2.0-pencil

Optional:
Libmono-Oracle2.0-cil libmono-npgsql2.0-cil libmono-nunit2.4-cil libmono-sharpzip2.84-cil

----------------------------
3 install fastcgi-mono-server2
### The sample installation is the most basic compilation package and library. Additional packages are required for Oracle compilation. Sudo apt-get install build-essential
Sudo apt-get install mono-fastcgi-server2
The following software packages will be upgraded:
Libbc-bin libc6 libc6-i686 libglib2.0-0
Four software packages have been upgraded, 153 new software packages have been installed, 0 software packages have to be uninstalled, and 26 software packages have not been upgraded.
Download the 58.3 MB software package.
After decompression, 182 MB of extra space is consumed.
Do you want to continue? [Y/n] y
Root @ www.linuxidc.com-ubuntu :~ # Fastcgi-mono-server2/version
Fastcgi-mono-server2.exe 2.4.3.0.
(C) 2007 Brian Nickel
FastCGI Backend for XSP
------------------------------------------------------------------------------
Stress Test 1:
----------------------------------------------------------------------
--- Ubuntu --- cpu virtual 1 core --
# AB-n 1000-c 50 http: // 192.168.99.20/info. aspx
This command uses 50 concurrent connections to perform 1000 requests.
Therefore, this program can process (Requests per second) 1000/12. 17424 = 82Online requests.
Server Software: nginx/0.7.65
Server Hostname: 192.168.99.20
Server Port: 80

Document Path:/info. aspx
Document Length: 21153 bytes

Concurrency Level: 50
Time taken for tests: 12.17424 seconds
Complete requests: 1000
Failed requests: 2
(Connect: 0, Length: 2, Exceptions: 0)
Write errors: 0
Non-2xx responses: 2
Total transferred: 21387790 bytes
HTML transferred: 21111040 bytes
Requests per secondd: 83.21 [#/sec] (mean)
Time per request: 600.871 [MS] (mean)
Time per request: 12.017 [MS] (mean, internal SS all concurrent requests)
Transfer rate: 1737.98 [Kbytes/sec] canceled ed

Connection Times (MS)
Min mean [+/-sd] median max
Connect: 0 0 1.0 0 17
Processing: 24 361 469.1 260 5659
Waiting: 18 355 467.8 251 5659
Total: 24 362 469.1 261 5659

Percentage of the requests served within a certain time (MS)
50% 261
66% 314
75% 367
80% 396
90% 499
95% 1134
98% 1661
99% 2551
100% 5659 (longest request)

--- Stress Test 2: Modify the NGINX. CONF configuration

--- Ubuntu --- cpu virtual 1 core. nginx. conf is set to 2, and the maximum connection is 51200 (the default value is 1024 )--
# AB-n 1000-c 50 http: // 192.168.99.20/info. aspx
This command uses 50 concurrent connections to perform 1000 requests.
Therefore, this program can process (Requests per second) 1000/8. 194228 = 122Online requests. (The modification configuration adds about 40 links per second)

Server Software: nginx/0.7.65
Server Hostname: 192.168.99.20
Server Port: 80

Document Path:/info. aspx
Document Length: 21155 bytes

Concurrency Level: 50
Time taken for tests: 8.194228 seconds
Complete requests: 1000
Failed requests: 6
(Connect: 0, Length: 6, Exceptions: 0)
Write errors: 0
Non-2xx responses: 3
Total transferred: 21305214 bytes
HTML transferred: 21028589 bytes
Requests per secondd: 122.04 [#/sec] (mean)
Time per request: 409.711 [MS] (mean)
Time per request: 8.194 [MS] (mean, internal SS all concurrent requests)
Transfer rate: 2538.98 [Kbytes/sec] canceled ed

Connection Times (MS)
Min mean [+/-sd] median max
Connect: 0 4 55.9 0 996
Processing: 10 262 285.2 202 3050
Waiting: 3 257 285.8 197 3049
Total: 15 267 290.5 202 3050

Percentage of the requests served within a certain time (MS)
50% 202
66% 252
75% 283
80% 300
90% 359
95% 583
98% 1485
99% 1625
100% 3050 (longest request)

Http: // 192.168.99.20/info. aspx test:
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.