Open the installation path of the Apache server (I use wampserver), there is a Ab.exe executable program in the bin directory, it is the stress test tool to be introduced.Under the Windows System command line, go to the directory where the Ab.exe program is located and execute the Ab.exe program. Note the direct double-click does not work correctly.D: (Enter/enter D-Drive) CD Wamp\bin\apache\apache2.4.4\bin (Enter/Enter bin directory) AB (carriage re
1. Install AB command
sudo apt-get install apache2-utils
2.ab Command parameter description
Usage:ab [Options] [http[s]://]hostname[:p Ort]/pathOptions are:
Total requests-
N requests number of requests to perform
//simultaneous concurrent requests total number of requests (n) = number of concurrent (c)-C
concurrency number of Multiple requests to make
-N requests numb
Test instance:
1. AB Output Information Description:
Server Software:web servers software and version
Server Hostname: Indicates the host part name in the requested URL
Server port: The listening port of the Web server being tested
Document Path: Requested page path
Document Length: Page size
Concurrency level: concurrent numbers
Time taken for tests: test Total spent
Complete requests: Number of requests completed
Failed requests: Th
:5failed requests:4 (connect:0, receive:0, Length: 4, exceptions:0) Write errors:0total transferred:392317 byteshtml transferred:387997 bytesrequests Per second:7.29 [#/sec] (mean) time per request:686.039 [MS] (mean) time per request:137.208 [MS] (mean, Across all concurrent requests) Transfer rate:558.46 [Kbytes/sec] receivedconnection times (ms) min MEAN[+/-SD] Median maxconnect:54 7.4, 71processing:228 100.7 475Waiting: 70 152 75.5 159 262total:284 423 103.9 463 546Percentage of
Tags: identified IP address exercises serverLab Environment:main MySQL server source installation IP address: 172.16.1.1from the primary MySQL server RPM installation IP address: 172.16.1.10install IP address from MySQL server rpm: 172.16.1.11 start configuration below:primary MySQL server:vi/etc/my.cnf[Mysqld]Log-bin=a_masterserver-id=1Authorization to 172.16.1.10 access rights Grant Replication Slave on * * to ' slave ' @ ' 172.16.1.10 ' identified by ' king123 ';from the primary MySQL server
Status\g;1. Row ***************************file:binlog.000001position:120binlog_do_db:binlog_ignore_db:Executed_gtid_set:1 row in Set (0.00 sec)"All from Library"mysql> Change Master to master_host= ' 10.142.132.52 ', master_port=3306, master_user= ' Lipengfei ', master_password= ' Lipengfei ', master_log_file= ' binlog.000001 ', master_log_pos=120;mysql> start slave;This article is from "Allen Lee Oracle" blog, please make sure to keep this source http://lipengfei666666.blog.51cto.com/6384154/
using the pressure measuring tool (ab/webbench, etc.) to achieve the page pressure measurement, the need to adjust the Apache operating mode to compare the final performance. configuration file location:/etc/httpd/conf/httpd.confIf the module is loaded, implement the configuration, a conditional module loadStartservers 8// service starts several sub-processes by default at startupMinspareservers 5// minimum number of idle processesMaxspareservers// ma
With AB pressure test interface,-C 100 words quickly, 300, 500, 800 or even 1000 began to slow, 90% or 95% of time is relatively fast, that is, a small number of requests will be high-time, resulting in a low level of QPS is very bad, this is why.
In addition, it's under Linux.
Reply content:
With AB pressure test interface,-C 100 words quickly, 300, 500, 800 or even 1000 began to slow, 90% or 95% of
My table A contains the field AB, and some of the data is reversed. How to change it for help: I have A field AB in Table A, and now some data is reversed. How can we replace the data in B to be updated to. (I will write the next one. ------ Solution ------------------ SQLcodeset @ tmp quot; up for help: I have A local field a B in Table A, and now some data is reversed. How to Change
My table A contains t
I use the AB command to test a website.
When
-n10000 -c1000 you get 160 or so per second.
When
-n1000 -c100 you get 35 or so per second.
When
-n100 -c10 you get 5 or so per second.
Look at this result a little confused, can someone analyze the actual concurrency is how much?Or how to set the parameters to get closer to the real situation.
Reply content:
I use the AB command to test a website.When -
Take AB pressure measured the next-n1000-c10 each write into the quantity is different.
file_put_contents("a.txt","a",FILE_APPEND);
?>
Reply content:
Take AB pressure measured the next-n1000-c10 each write into the quantity is different.
file_put_contents("a.txt","a",FILE_APPEND);
?>
Because in the concurrency state, the user 1 comes in to read the a.txt is 100 characters, if 2 come
My table A contains the field AB, and some of the data is reversed. How to change it for help: I have A field AB in Table A, and now some data is reversed. How can we replace the data in B to be updated to. (I will write the next one ., SQLcodeset @ help: I have A table a with the local field A B, and now some of the data is reversed. How to Change
My table A contains the local field a B. Now some data is
time 44.243 msecs, minimum response time 24.488 msecs5. msecs/first-response:63.5362 mean, 81.624 max, 57.803 min6, HTTP response Codes:code 200--49 describes the type of open response page, if the type of 403 is too many, it mayBe aware that the system is experiencing bottlenecks.Special Instructions:The main indicators in the test results are fetches/sec, Msecs/connect, which is the number of queries that the server can respond to per second.Use this indicator to measure performance. Seems to
/3Verifying:httpd-tools-2.4.6-40.el7.centos.4.x86_64 1/3Verifying:apr-util-1.5.2-6.el7.x86_64 2/3Verifying:apr-1.4.8-3.el7.x86_64 3/3Installed:Httpd-tools.x86_64 0:2.4.6-40.el7.centos.4Dependency installed:apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7complete!Command parameters for 2.ab testsab:wrong number of Argumentsusage:ab [options] [Http[s]://]hostname[:p Ort]/pathOptions are:-N Requests number of requests to perform-c concurrency numbe
Since the site now needs to be able to withstand the high concurrency requirements, so when we finish writing code, if need to go online, it is best to undergo stress testing, so it is betterRun:Under Windows System, open the CMD Command Line window and navigate to the Apache installation directory under the bin directoryCD C:\Program Files (x86) \apache software Foundation\apache2.2\binType the command:Ab-n 800-c http://192.168.0.10/(-N Issues 800 requests,-C simulates 800 concurrent, quite 800
ApacheBench (AB)The apache Server comes with a tool named AB (ApacheBench). You can use this tool in the bin directory to test the server load.Usage:AB-n all requests-c concurrency test urlConcurrency Level: 50 # ConcurrencyTime taken for tests: 92.76140 seconds # Time consumed to complete all requestsComplete requests: 10000 # Number of all requestsFailed requests: 1974 # Failed requests(Connect: 0, Length
AB test for ApacheOperation:Windows + R cmd enters command line mode to find Ab.exe under Apache;And then, in the Bin directory, proceed through the lineab-n1000-c100 http://www.test.com/test.phpReturns the following results:Server software:apache/2.0.54Platform Apache version 2.0.54Server hostname:127.0.0.1Server Host NameServer port:80Server portDocument Path:/index.html.zh-cn.gb2312Test the page documentDocument length:1018 bytesDocument sizeConcur
Two threads of Java multi-thread communication print AB each 10 times, and java multi-thread Communication
A typical interview question: two threads print AB respectively, where thread A prints A and thread B prints B, each of which prints 10 times, so that the result of ABABABABA...1 package com. shangshe. path; 2 3 public class ThreadAB {4 5/** 6 * @ param args 7 */8 public static void main (String [] arg
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.