Last Updated on 2021å¹´7æ4æ¥ by ãããã«ã Tsung(èªã¿æ¹ãä¸æãªãã ãã©ããµã³ããããã¯ãµã³ã°ãããªï¼ï¼)ã試ãããã°ã haproxyã¨ããã¯ã¨ã³ããµã¼ãã¼ã¸ã®è² è·ãã¹ãã«ããã£ã¦ãç®å®ã®ãã1000ãªã¯ã¨ã¹ã/ç§ãããããè² è·ãã¹ãã試ããããªãã¨æã ä»åã¯æ®æ®µå©ç¨ãã¦ããab(apache bench)ãhttperfãsiegeãJMeterã«å ãã¦Tsungãå ¥ãã¦ã¿ããã®ãã°ã å®è¡ç°å¢ã¨ãã¦Erlangï¼ã¢ã¼ã©ã³ï¼ãæ¡ç¨ãã¦ãããã¨ã®ãã¨ã åèï¼ãä¸è©±ã«ãªã£ã¦ããã¾ãï¼ Tsungå ¬å¼ãµã¤ã Tsungå ¬å¼ãµã¤ã ããã¥ã¢ã« How to Generate Millions of HTTP Requests ãµã¼ãã®è² è·ãã¹ãã®ããã®ãä½ç¾ä¸ãã®HTTPãªã¯ã¨ã¹ããçºçãããæ¹æ³ â»ä¸è¨ããã°ã®æ¥æ¬èªè¨³(postd) è² è·ãã¹ããã¼ã«ã¨ãã
ããã¼ããã³ãã¿ã¯ã¼åæ¦ã§ãã è² è·è©¦é¨ãè¡ãã«ã¯è²ã ãªãã¼ã«ãããã¾ãã apache bench JMeter httperf etc⦠ããã·ã¹ãã ã®è² è·è©¦é¨ã« Erlang ã§å®è£ ããããã«ããããã³ã«å¯¾å¿ã® tsung ã¨ãããã¼ã«ã使ã£ã¦ã¿ãã®ã§ããã®ãç´¹ä»ã§ãã tsungã¨ã¯ æ¤è¨¼ç°å¢ã«ã¤ã㦠ã¤ã³ã¹ãã¼ã«æ¹æ³ è¨å®æ¹æ³ ã¯ã©ã¤ã¢ã³ãè¨å® ãµã¼ãè¨å® ã¢ãã¿ã¼è¨å® è² è·è¨å® ã»ãã·ã§ã³ã®è¨å® å®è¡ãã tsungã¨ã¯ tsung (以å㯠IDX-Tsunamiã¨ããååã§ããï¼ã¯æ§ã ãªãããã³ã«ã«å¯¾å¿ãã erlang ã§æ¸ãããè² è·ãã¹ããã¼ã«ã§ããã©ã¤ã»ã³ã¹ã¯GNU GPL v2.0 ã¨ãã¦å ¬éããã¦ãã¾ããï¼å°ãã¾ãã¯è¤æ°å°ããã大éã®ã¦ã¼ã¶ããã®ã¢ã¯ã»ã¹ã模æ¬ãã¦è² è·ãæãããã¨ãã§ãã¾ããã¾ããtsung ã¯ãã¹ãçµæãã°ã©ãã¨ãã¦ãããããããã¨ãå¯è½ã§ããæ
Tsung ã使ç¨ã㦠3 å°ã®ãµã¼ããã Web ãµã¼ãã« GET ãªã¯ã¨ã¹ããéã£ã¦ã¿ã¾ãã Tsung ã®å®è¡ç°å¢ã®æºå Erlang R16B03-1 ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ã Tsung ã®ã¤ã³ã¹ãã¼ã« 3 å°ã®ãµã¼ãããããã«ä¸è¨ã®æé 㧠Tsung ãã¤ã³ã¹ãã¼ã«ãã¾ã $ sudo aptitude -y install autoconf gnuplot libtemplate-perl $ git clone https://github.com/processone/tsung.git $ cd tsung $ ./configure $ make && sudo make install
ããã«ã¡ã¯ãCTOã®é¦¬å ´ã§ãã è² è·ãã¹ããã¼ã« Tsung ã®è©±ã§ãã HTTPè² è·ãã¹ããã¼ã«ã 㨠JMeter ã ab ãhttperfããããæåã§ããã æ°ããã¨ããã ã¨TsungãGatlingã§ããããã ç§ã¯å»å¹´ãããããTsungããã使ã£ã¦ããã®ã§ç´¹ä»ãã¾ãã ãã®ã¨ã³ããªã¯ç¬¬1åã§ãã Tsungã§è² è·ãã¹ãããã(1) - åºç¤ç¥è Tsungã§è² è·ãã¹ãããã(2) - å®è·µTips Tsungã§è² è·ãã¹ãããã(3) - ãªã¢ã«ãªè² è·ã®ããã®Tips Tsung ã®ãå§ããã¤ã³ã ã¾ãã¯Tsungã®ãå§ããã¤ã³ãããã è² è·ããããå´ã«å¿ è¦ãªãã·ã³ã¹ããã¯ãä½ã è² è·ããããã¨ããJMeterããTsungã®ã»ããåããµã¼ãã§ãã大ããªè² è·ãçæãããã¨ãã§ãã¾ãã ãã¡ããå¿ è¦ãªè² è·ã1å°ã§çæããããªãå ´åã¯è¤æ°å°ã§é£åãã¦è² è·ãçæãããã¨ãã§ãã¾ãã
ãJMeterã®çµæCSVã216ä¸è¡ããããããããã ã£ããJMeterã®ãã°ã©ã表示ãã§èªã¿è¾¼ãã§è¦ãããããªãã CPUãããªãªãªãªãªãªãªãªã³ï¼ã ã¯ããã« ã·ã¹ãã ã®è² è·è©¦é¨ã«ããã¦ãApache JMeterã®ãããªãã¼ã«ã使ã£ã¦è©¦é¨ãå®æ½ã»çµæãåºåããã±ã¼ã¹ãããã¨æãã¾ããçµæãã¡ã¤ã«ã®ãµã¤ãºãããã»ã©å¤§ãããªãå ´åã¯ãå ¨ãã¼ã¿ãè¨ç®ããï¼JMeterã§ãããçµ±è¨ã¬ãã¼ããï¼ã§åé¡ããã¾ããããä¾ãã°ãé·æéè² è·ããããã®ã§æç³»åã§ãã¼ã¿ãã°ã©ãåããããã¨ãã£ããã¨ã«ãªãã¨äºæ ãå¤ãã£ã¦ãã¾ããJMeterã®çµæCSVã¯æå ã«ããã®ã§ããªãã¨ããããæ´»ç¨ãããã¨ããã§ã¯ããã¾ãããæ°ç¾ä¸è¡ã¬ãã«ã®ãã¼ã¿ã«ãªãã¨ãã¨ããã«Excelãªã©ã§ã¯è¾ããªãã¾ãï¼ã¨ãããæ大è¡æ°çã«ç¡çãªæ°ããã¾ãï¼ã ããã§ãã¡ããã©ãå¼ç¤¾æ¨æ¸ãElasticsearchã·ãªã¼ãºãé£è¼ãã¦ããã¨ã
è² è·ãã¹ããã¼ã«JMeterã®Tipsã§ãã æè¿ã¯gatlingã¨ãiagoããããæµè¡ã£ã¦ã¾ãããæ å ±ã®å ¥æã®ããããããè±å¯ãªãã©ã°ã¤ã³ã«ããæ©è½é¢ã§ã®åªä½æ§ããJMeterã¯ã¾ã ã¾ã 使ãããã®ã§ã¯ãªãããªãã¨æã£ã¦ãã¾ãã ã¨ãããã¨ã§ãèªåãä½åº¦ãè² è·ãã¹ããè¡ã£ãéã«å¦ãã JMeterã®Tipsãã¾ã¨ãããã¨æãã¾ãã ã¿ã¤ãã«ã®éããããªãç¬èªè·¯ç·ã§å¦ãã ç¹ãå¤ãã®ã§ããã¾ãåèã«ãªããªãããã§ãã ãªããããç¨åº¦ã¯ä½¿ãæ¹ãç¥ã£ã¦ããæ¹ã対象ã«ãã¦ãã¾ãã ããç¨åº¦ã¨ããã®ã¯ãHTTPãµã³ãã©ã¼ããã¼ã¹ã¨ããã¹ã¯ãªãããTest Script Recorder(æ§HTTP Proxy Server)ã使ã£ã¦æµããå¦çãå ã«ä½ã£ããã¨ããã£ã¦ãCSVçããèªãã ãããã¦ã¼ã¶ãã¨çã®å¯å¤ãã©ã¡ã¼ã¿ã使ã£ã¦ã²ã¨éãã®ãã¹ãããããã¨ããã£ããããç¨åº¦ã§ãã ã¹ã¯ãªããã¯GUIã§ä½ã£
7. è² è·è©¦é¨å¯¾è±¡ã·ã¹ãã å ¨ä½å ã¯ã©ã¦ãä¸ã§ã¹ã±ã¼ã«å¯è½ãªã·ã¹ãã ãæ§æ Elastic Load Balancing Availability Zone Availability Zone RDS DB instance RDS DB instance standby (Multi-AZ) EC2 instance web app server EC2 instance web app server EC2 instance web app server EC2 instance web app server ⢠LAMPæ§æã®ã·ã¹ãã ⢠WEBã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¯LBã®å¾ãã«è¨ ç½®ããã¦ãã â¢ å ¨ã¦AZï¼ãã¼ã¿ã»ã³ã¿ã¼ï¼ãã¾ããã å½¢ã§è¨ç½® ããåä¸é害ç¹ã¯ãªã ⢠ãã£ãã·ã¥ãå©ç¨ ⢠DBã¯ã¹ã±ã¼ã«ã¢ããã§å¯¾å¿ ElastiCache ElastiCache
JMeter ã¯Jakarta ããã¸ã§ã¯ã 1 ã§éçºãé²ãããã¦ãããããã©ã¼ãã³ã¹è¨æ¸¬ç¨ã®Javaã¢ããªã±ã¼ã·ã§ã³ã§ãã ãã®JMeterã«ã¤ãã¦è§£èª¬ãã¦ããã¾ãã 1 [2012/5/23追è¨] 2011/12/21ã«ã¦Jakarta Projectã¯å»æ¢ããã¾ããããã®ããã¸ã§ã¯ãã¯Apache Projectã«ç§»ç®¡æ¸ã¿ã§ã JMeter INDEX JMeterã®åºæ¬ 1.1. JMeterã¨ã¯ 1.2. ã¤ã³ã¹ãã¼ã«ã¨å®è¡ 1.3. ç°¡åãªãã¹ã ãªã¹ãã¼ 2.1. ãªã¹ãã¼ã¨ã¯ 2.2. ãªã¹ãã¼ã®ä½¿ç¨æ³ 2.3. çµæã表ã§è¡¨ç¤º 2.4. çµ±è¨ã¬ãã¼ã 2.5. ã°ã©ã表示 2.6. ãã®ä»ã®ãªã¹ãã¼ è¨å®ã¨ã¬ã¡ã³ã 3.1. è¨å®ã¨ã¬ã¡ã³ãã¨ã¯ 3.2. HTTPãªã¯ã¨ã¹ãåæè¨å® 3.3. HTTPèªè¨¼ããã¼ã¸ã£ 3.4. HTTPãããããã¼ã¸ã£ 3.5. HTTP
ããã¾ã§ãè² è·ãã¹ãã®å®è¡ã«ã¯å°éç¥èã¨å®è¡ç°å¢ã®æºåã«å¤ãã®ã³ã¹ããå¿ è¦ã§ããã社ä¼ããWebãµã¼ãã¹ã®æ§è½ã«é¢ããä¸å ·åãã¼ãã«ããããã«ãç°¡åãç¡æãå§åçãªè² è·ãã¹ããµã¼ãã¹ãæä¾ãã¾ãã ã¦ã¼ã¶ããªã㣠ãµã¼ãã®å¿çé度ã¯å¸¸ã«å¤åããå©ç¨è ã®ç´å¸°çã«å¤§ããå½±é¿ãä¸ãã¾ãããµã¼ãã®å¿çé度ãå¯è¦åããæ¥ã è¨æ¸¬ãããã¨ã§ããã¿ããã«åé¡åæãçºè¦ã§ãã¾ãã æ§è½æ¸¬å® ãµã¼ãã®æ§è½ä¸è¶³ã«ããããã£ããã®å¶æ¥æ©ä¼ã失ããµã¤ããå¤ãåå¨ãã¾ãããµã¼ãã®æ§è½ãæ£ããææ¡ãããã¨ã§ãäºæ¸¬ãããè² è·ã«å¿ãããµã¼ãã®å¢å¼·ãã§ãã¾ãã è² è·ãã§ãã«ã¼ï¼ã«ã¬ã³ãã¼ãå©ç¨ãããã¹ãï¼ã¸ã§ãï¼ã®äºç´ããã°ã©ãã£ã«ã«ãªçµæç»é¢ãæºåãã¦ãããåå¿è ã®æ¹ã«ã大å¤ä½¿ãããããµã¼ãã¹ãã¤ã³ã¹ã¿ã³ããã¹ãï¼URLãå ¥åããã ãã§ãããã«è² è·ãã¹ããè¡ããã¨ãã§ãã¾ããã·ããªãªãã¹ãï¼ãã°ã¤ã³ãå¿ è¦ãªãã¼ã¸ãè¤æ°ã®ã
ï¼ï¼ã¯ããã« ç°å¢ï¼ ã¢ããªã±ã¼ã·ã§ã³ï¼Windowsä¸ã®tomcatã§èµ·å JMeterã¯ã©ã¤ã¢ã³ãï¼ãã¹ããå®è¡ããã¨æ示ããJMeterï¼ï¼Windowsãã¢ããªã±ã¼ã·ã§ã³ãèµ·åãã¦ãããã·ã³ã¨åã JMeterãµã¼ãï¼ãã¹ããå®è¡ããã¨æ示ãããJMeterï¼ï¼Linux JMeter ãã¤ã³ã¹ãã¼ã«ï¼å±éï¼ãããã£ã¬ã¯ããªã JMETER_HOME ã¨ãã Java ãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã JAVA_HOME ã¨ãã JMeterã®ãã¼ã¸ã§ã³ï¼ 2.3.2ï¼Windows/Linuxï¼ ï¼ï¼JMeterãµã¼ãã®è¨å® JAVA_HOME/bin ã PATH ã«éãã export JAVA_HOME=/usr/java/jdk1.6.0_12 PATH=$PATH:$JAVA_HOME/bin JMETER_HOME/ã«ãã次㮠JAR ã CLASSPATH ã«è¿½å ã
2016/07/11 追è¨ãã¦ãã¾ã çããè² è·ãã¹ããã¼ã«ã£ã¦æ®æ®µä½¿ã£ã¦ã¾ããï¼ WEBã·ã¹ãã ãéçºããéã«ã¯ã1人ãåæ°äººã§éçºãããã¨æãã¾ããã å諾æ¡ä»¶ã§ã¯è¦ä»¶ãæºããéçºã°ãããã¦ãã¦é度ãããã©ã¼ãã³ã¹ã®ãã¥ã¼ãã³ã°ãè¡ãäºãå°ãªãã¨æãã¾ãã ããéç¨ãå§ã¾ã£ã¦ããµã¼ãã¼ãè½ã¡ãã»ã»ã¨ãªããªãããã«è² è·ãã¹ããäºåã«ãã£ã¦ããã¾ãããã Apache Benchã§ã®ãµã¼ãã¼ããã©ã¼ãã³ã¹ã®ãã§ãã¯æ¹æ³ãã¡ã¢ãã¦ããã¾ãã®ã§ãã©ãªããã®å½¹ã«ç«ã¦ãã°å¹¸ãã§ãã è² è·ãã¹ãã¨ã¯ è² è·ãã¹ãã£ã¦ä½ã§ããï¼ã¨ããæ¹ã®ããã«ç°¡åã«èª¬æããã㨠ä½ãè² è·ã§ã¯ã·ã¹ãã ä¸åé¡ãç¡ãã¦ããé«è² è·ã§ã®åä½ã ã¨ä¸å ·åãèµ·ããç¾è±¡ãåé¿ããããã®ãã¹ãã§ãã ã¢ã¯ã»ã¹ãéä¸ãã¦è½ã¡ã¦ããµã¤ããããã¾ããããã æ³å®ãããã¢ã¯ã»ã¹ããã£ã¦ãè½ã¡ãªããµã¤ãã«ããããã®è² è·ãã¹ãã§ãã Webãµã¼ãã¼ã®
ã¯ããã« Apache2.2ã®åºæ¬è¨å®ããã¼ãã£ã«ãã¹ãè¨å®ããã°è¨å®çã¯Apache2.2ã®è¨å®ã«ã¾ã¨ãã¦ãã¾ãã Maxclients以å¤ã®ãã©ã¡ã¼ã¿(StartServersãMinSpareServersãMaxSpareServersãMaxRequestsPerChild)ã«ã¤ãã¦ã¯Apache2.2ã®ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°(ãã®1)ã«ã¾ã¨ãã¦ãã¾ãã Maxclientsã«ã¤ãã¦ã¯Apache2.2ã®ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°(ãã®2)ã«ã¾ã¨ãã¦ãã¾ãã æ¬è¨äºã§ã¯ãApache2.2ã®ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°(ãã®2)ã§ã¡ã¢ãªä½¿ç¨éã®è¦³ç¹ããå°ãåºããMaxClients = 280ãæ¬å½ã«æ£ããã®ããabã³ãã³ãã§ç¢ºããããã¨æãã¾ãã é常æã®ã¡ã¢ãªä½¿ç¨éã«ã¤ãã¦ è² è·ããããåã«ä½¿ç¨å¯è½ã¡ã¢ãªéã調ã¹ã¾ããã¡ã¢ãªã«ã¤ãã¦ã¯ä»¥ä¸ã®ãµã¤ããåèã«ãã¾ããã http
以åã¯ææã½ããã§ããããã¼ããã¹ããå®è¡ããçµæãæ°å¤ã»ã°ã©ãåãã¦ã¾ã¨ãã¦ä¿åã§ãããµã¤ãã¸ã®ã¢ã¯ã»ã¹é çªãåºå®ãããã©ã³ãã ã«ããããã¢ã¯ã»ã¹ããæéééã»æ¥ç¶æéã»ã¢ã¯ã»ã¹ãã人æ°ã®è¨å®ãå¯è½ã§ããã¾ãã¾ãªãã¹ããèªç±ã«è¨å®ãã¦å®è¡ã§ããããªã¼ã½ããããJBlitz Professionalãã§ãããã¦ã³ãã¼ãããæ©è½ã¨æä½ã®èª¬æã¾ã§ã¯ä»¥ä¸ããã Website load test - JBlitz Professional http://www.cartesian.net.nz/jblitz/ âãã¦ã³ãã¼ã ãJBlitz Professionalãã使ãã«ã¯Javaãã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã ä¸è¨ãµã¤ãã®ãDownloadããã¯ãªãã¯ã ãã¦ã³ãã¼ãããZIPãã¡ã¤ã«ãExplzhãªã©ã§è§£åãã¦ãWindowsã使ã£ã¦æä½ãããã®ã§ãrun-jblitz.batã
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ã·ã¹ãã éçºãè¡ã£ã¦ããã¨ããã®å·¥ç¨ã®ä¸ã§è² è·ï¼ããã©ã¼ãã³ã¹ï¼ãã¹ãã¨ããé ç®ãåºã¦ãã¾ãã ããªã軽微ã§ããã使ç¨è æ°ãéå®çã§ãããªãã°ããã»ã©æ°ã«ãããã®ã§ãããã¾ãããè¦æ¨¡ã大ãããªã£ã¦ããã°æ¥ãã»ã©ããã®é ç®ã®éè¦æ§ã¯å¢ãã¦ãã¾ãã è² è·ãã¹ãèªä½ã«ã¯ãWebãµã¼ãã¼ã¸ã®è² è·ãããããã®ããDBã¸ã®ã¯ã¨ãªã®ã¬ã¹ãã³ã¹ãè¦ããã®ããµã¼ãã¼ã®ãã£ã¹ã¯I/OãCPUã®ç¶æ³ãè¦ããã®ãªã©æ§ã ã§ãã è² è·ãããã¦ã¿ããä½ãéãã ããã ãåãã£ãã¨ããã§ä½å¦ãæ¹åããã°ããã®ãç®æãã¤ããªããã°æå³ãããã¾ããã ãã ãæ§ç¯ããã¢ããªããµã¼ãã¼èªä½ãã©ãã ãã®è² è·ã«èããããã®ãã¨è¨ããã®ãç¥ã£ã¦ããäºã¯éç¨ã®ä¸ã§éè¦ã§ãã ãµã¼ãã¼ã®éçå¤ãç¥ã£ã¦ããã°ãæ¥ã ã®ã¢ã¯ã»ã¹æ°ãªã©ã¨ç §ããåããã¦äºåã«å¯¾å¦ããäºãå¯è½ã«ãªãã¾ãã éçå¤ã«è¿ã¥ãã¦ããããã¹ã±ã¼ã«ã¢ã¦ããããã¨ãããµã¼ãã¹ã¬
è² è·ãã¹ãï¼ã¾ãã¯æ§è½ãã¹ãï¼ã¯ãã·ã¹ãã ãä½ãä¸ããä¸ã§éè¦ãªè¦ç´ ãæã¤ãã¹ãã«ãªãã¾ãã ããããªãããã·ã¹ãã ãæ§ç¯ãã段éã§ã¯ãã¾ããã®è² è·ãããµã¼ãã¼ï¼ã¾ãã¯ãã®ä¸ã§ã®ã¢ããªã±ã¼ã·ã§ã³ãããã«ã¦ã§ã¢ï¼ã®æ§è½ã¨ãããã®ã¯æ°ã«ãã¾ããã éçºã¡ã³ãã¼ã¯ããããæ°å人ã¨ãã£ãã¬ãã«ãå¤ããã·ã¹ãã ã®éçºæ®µéã§ã¯ããã ãã®äººã®ã¢ã¯ã»ã¹ããªããããå®éã®å©ç¨ç¶æ³ã¨ã¯ããªãç°ãªã£ãç°å¢ã§ãåããããOKãã¨ããæãã§æµãã¦ãã¾ããã¡ã§ãã ãã ããããããã¨ãæ°ã«ããã«ã·ã¹ãã ããªãªã¼ã¹ãã¦ã¿ãããä¸å®ã®ãã¼ã¿éã«éãããã¢ããªã±ã¼ã·ã§ã³ãåããªããªã£ããããµã¼ãã¼ãå¿çããªããªã£ããªãã¦äºããã£ãããã¾ãã ãããããã¨ããªãããã«ãããªãªã¼ã¹å¾ã®è² è·ãæ³å®ãããã¹ãããã·ã¹ãã å ¨ä½ã®æ§è½ãäºããã¹ããã¦ããå¿ è¦ãããã¾ãã è² è·ãã¹ãç¨ã®ãã¼ã«ã§å¸è²©ããã¦ãããã®ã¯ã確ãã«ããç´°ããçµæ
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}