6. ãã¹ãã·ããªãªãã¡ã¤ã«ã£ã¦? â¢â¯ JMeterãã©ããªãªã¯ã¨ã¹ããçºçããããã æå®ãããã¡ã¤ã« â¢â¯ XMLã§æ¸ããã¦ãã â¢â¯ é常JMeterã«èªã¿è¾¼ã¾ãã¦ç·¨éãå®è¡ãã â¢â¯ æ¥æ¬èªçJMeterã ã¨ããã¹ãè¨ç»ãã¨ããå¼ã³å 7. ããã¨é¥ããããè² è·è©¦é¨ã®ç½ â¢â¯ ãã¼ã¿æ°ã¯å¿ è¦ãªç®æ¨DAUæ³å®å以ä¸ããã ãããã°ã³ãã³ãããã¨æ¥½ ã¬ã³ã¼ãæ°ããããã°OKãªã°ããã¯ã ã·ããªãªã§ä½¿ããã¼ã¿ä»¥å¤ã¯èªå·±çµåã§ã¬ã³ã¼ãæ°´å¢ã (ä¾)å®è¡ãããã³ã«ã¬ã³ã¼ããåã«ããSQL insert into `tbl` (col1,col2) select col1,col2 from `tbl`; â¢â¯å¤é¨ã®API使ã£ã¦ããç®æã¯åããã 課éã¨ããã¬ã³ãã¨ãGoogle Analyticsã¿ãããªå¹æ測å®ç³» ãã¨ãªãªã¼ã¹å¾ã®ç£è¦ã¯æåã â¦åããã«ããã¨æ¥ç¶å ãæ¿ããã 8. ãã£
31. ã¹ã¬ããæ¯ã«ç°ãªããã¼ã¿ã使ç¨ããã ãHTTPãªã¯ã¨ã¹ããã®ãªã¯ã¨ã¹ããã©ã¡ã¼ã¿ã¯è¨å®ãããæååã使ç¨ãã¾ããã å ¨ã¦ã®ã¹ã¬ããã«ãã㦠ã»åä¸ã®ãã°ã¤ã³ID,ãã¹ã¯ã¼ãã§å¦çããã ã»åä¸ã®æ¤ç´¢æ¡ä»¶ã§æ¤ç´¢å¦çããã ãã¹ãã·ããªãªã¯ç¾å®çã§ã¯ããã¾ããã ã¹ã¬ããæ¯ã«ç°ãªããã¼ã¿ã使ç¨ãããå ´åã«ã¯ã CSVãã¼ã¿ãã¡ã¤ã«ããåå¾ãããCSV Data Set Conï¬gãã使ç¨ãã¾ãã ã¹ã¬ãã1 ã»ã»ã» CSVãã¼ã¿ãã¡ã¤ã« ãã°ã¤ã³å¦ç æ¤ç´¢å¦ç ãã°ã¤ã³ID,password,æ¤ç´¢æ¡ä»¶1,æ¤ç´¢æ¡ä»¶2,・・・ ã¹ã¬ãã1 loginId1,pass1,ãµãã«ã¼é¨,PHP,・・・ ã¹ã¬ãã2 ã»ã»ã» ã¹ã¬ãã2 loginid2,pass2,åçé¨,perl,・・・ ãã°ã¤ã³å¦ç æ¤ç´¢å¦ç ã¹ã¬ãã3 loginid3,pass3,å£éé¨,ãã¤ã½ã³ã¨ããç¬èªè¨èª,・・・
6.1. ãããã·ãµã¼ãã¨ã¯ Webã¢ããªã±ã¼ã·ã§ã³ã®è² è·ãã¹ãã§ã¯ãå¤æ°ã®ãã¼ã¸ã«å¯¾ãã¦è² è·ãã¹ããè¡ããã¨ãããã¾ãããã®ãããªå ´åãåãã¼ã¸ãã¨ã«ã²ã¨ã¤ãã¤ãHTTPãªã¯ã¨ã¹ããã追å ãã¦ããã®ã¯å¤§å¤é¢åãªä½æ¥ã§ããJMeterã§ã¯ããã®ãããªå ´åã«æç¨ãªããããã·ãµã¼ããã¨ããæ©è½ãç¨æãã¦ãã¾ãã ããããã·ãµã¼ããã¨ã¯ããã®åã®éããJMeterãä¸æçã«ãããã·ãµã¼ãã®å½¹å²ããã¾ããããã¦ããã®ãããã·ãµã¼ããéãã¦ã¢ã¯ã»ã¹ãããã¼ã¸ããHTTPãªã¯ã¨ã¹ããã¨ãã¦èªåçã«ãã¹ã¬ããã°ã«ã¼ããã«è¿½å ãã¦ããã¨ããæ©è½ã§ãã ãã®ç« ã§ã¯ãããããã·ãµã¼ããã®ä½¿ç¨æ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã 6.2. åºæ¬çãªä½¿ãæ¹ ã¾ããããã¾ã§ã¨åãããã«ãããã¹ãè¨ç»ãã«ãã¹ã¬ããã°ã«ã¼ããã追å ãã¾ãã次ã«ãã¯ã¼ã¯ãã³ã(*1)ããé¸æããå³ã¯ãªãã¯ããããããã¯ç·¨éã¡ãã¥ã¼ãã 追å â N
ãè² è·ãã¹ããããã-JMeterã®ä½¿ãæ¹- ãã§ãJMeterã®å©ç¨æ¹æ³ã«ã¤ãã¦è§¦ãã¾ãããä¸çªèå¿ã®ã¬ãã¼ãã®è¦æ¹ã«ã¤ãã¦æ¸ãã¦ã¾ããã§ããã®ã§ãä»åã¯ãã®ç¹ãã ä»åã®è¨äºãã¾ã¨ããã«ããããä¸è¨ã®è³æãåèã«ããã¦ããã ãã¾ããã Apache JMeterã§è² è·è©¦é¨ããããï¼ï¼ JaSST è² è·ãã¹ãã®æ¹æ³ãã¬ãã¼ãã®è¦æ¹ã«ã¤ãã¦è§¦ããåã«ã¾ããä½ãç®çã§è² è·ãã¹ãããããã«ã¤ãã¦è§¦ãã¦ã¿ãããã¨ã ãããæ§ã ãªã±ã¼ã¹ãæ³å®ããã¾ãããåãåãã 1. ç¾å¨ã®ã¤ã³ãã©ãã·ã¹ãã ã®æ§æã§ã©ãã ãã®è² è·ã«èããããããç¥ãçº 2. æ³å®ãããåæã¦ã¼ã¶ã¼æ°ã«èãããããæ¤è¨¼ããã 3. ã¤ã³ãã©ãã·ã¹ãã æ§æã®å¤æ´ã«ããã©ãã ãã®ããã©ã¼ãã³ã¹ãåä¸ãããç¥ããã ã®3ã¤ãã±ã¼ã¹ãèãã¦ã¿ããã¨æãã¾ãã ã¾ãåæã¨ãªããã¹ãã·ããªãªãä½ãé¨åããã ããã¯ãããã°ã¤ã³âAãã¼ã¸é·ç§»â
ã·ã¹ãã éçºã®ã§ã¯è£½é ã»æ§ç¯ãã§ã¼ãºãçµããã¨å½ç¶ã®ãã¨ãªããå種ãã¹ããè¡ããä»åã¯ããã®ä¸ã§ãããã·ã¹ãã ãã¹ãã¨å¼ã°ãããã§ã¼ãºã«å«ã¾ãããã¨ã®å¤ãè² è·ã»æ§è½ãã¹ãã«é¢ããã話ã ï¼ãã¹ããã¼ã«ã®æ¤è¨ã¨é¸å®ï¼ ç§ã®çµé¨ã§ã¯ãããã¾ã§è¡ã£ã¦ãããã¹ãã§ã¯ãè¦æ¨¡ãã·ã¹ãã ã®ç¹æ§ã«å¿ãã¦ä»¥ä¸ã®ãããªãã¹ããã¼ã«ãé¸å®ã»ä½¿ç¨ãã¦ããã OSSçã®ããªã¼ã®ãã¹ããã¼ã«(JMeterãApache Benchãhttperfãhttp://www.microsoft.com/japan/technet/archive/itsolutions/intranet/downloads/webstres.mspx?mfr=trueMS Web Application Stress Tool) èªä½ãã¹ããã¼ã«(Perlãã·ã§ã«ã¹ã¯ãªããç) åç¨ãã¹ããã¼ã«(Loadrunnerçãâ»å人çã«ã¯ãã¾ãçµ
(2008-09-09 19:20 æ´æ°: ã¦ã¼ã¶ã¼ãã©ã¡ã¼ã¿ã¼ã®è¨å®ã§ç¹°ãè¿ããã¨ã«æ´æ°ã®ãã§ãã¯ãå ¥ããããã«ãã¾ãã) JMeter ã§ãã¹ããããæã«ï¼ãã¹ãã®ãã©ã¡ã¼ã¿ãåçã«å¤ãããå ´åãããã¾ãï¼ä¾ãã°ï¼éåºããã¹ã¬ãããã¨ã«å®å ãå¤ããã¨ãï¼ã¦ã¼ã¶åãå¤ããã¨ãï¼ãã®æ¹æ³ã®ã¡ã¢ï¼ ä¾ãã°ï¼å¤åããããã¦ã¼ã¶ä¸è¦§ãä¸è¡ã«ä¸ã¤æ¸ãã user.txt ã¨ããããã¹ããã¡ã¤ã«ãæºåããï¼user1 user2 user3 ã¹ã¬ããã°ã«ã¼ãã§å³ã¯ãªãã¯ãã¦ã追å ãâãåå¦çãâãã¦ã¼ã¶ã¼ãã©ã¡ã¼ã¿ããé¸æï¼ JMeterå ã®å¤æ°ã¨ã㦠"user" ã¨ããååã®å¤æ°ãå®ç¾©ãï¼ãã®å¤ã "user.txt" ããé 次èªã¿è¾¼ãã§å©ç¨ãããå ´åï¼ãå¤æ°ã®è¿½å ããæ¼ãã¦ï¼ãååãã¨ãã¦ãã©ã¡ã¼ã¿å user ãï¼ãã¦ã¼ã¶ã¼_1ãã«ã¯ ${__StringFromFile(user.txt)
1.1. JMeterã¨ã¯ JMeter ã¯Jakarta ããã¸ã§ã¯ã 1 ã§éçºãé²ãããã¦ãããããã©ã¼ãã³ã¹è¨æ¸¬ç¨ã®Javaã¢ããªã±ã¼ã·ã§ã³ã§ããå ã ã¯Webã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã®ããã«ä½æããããã®ã§ããã¾ãã¾ãªWebã¢ããªã±ã¼ã·ã§ã³ããã¹ãããæ©è½ãæã£ã¦ãã¾ããç¾å¨ã§ã¯ãWebã¢ããªã±ã¼ã·ã§ã³ä»¥å¤ã®ãã¾ãã¾ãªãã®ã«å¯¾ãã¦ããã¹ãã§ããããã«æ¡å¼µããã¾ããã JMeter ã使ãã°ããã¾ãã¾ãªæ¡ä»¶ã®ãã¨ã§ããã©ã¼ãã³ã¹ã®è¨æ¸¬ãè¡ãäºãã§ãã¾ããè¨æ¸¬ãããããã©ã¼ãã³ã¹ã®ãã¼ã¿ã¯ãã°ã©ãã£ã«ã«ã«è¡¨ç¤ºãããããã¼ãã«å½¢å¼ã§è¡¨ç¤ºãããããããã¯ãé»åã¡ã¼ã«ã¨ãã¦éä¿¡ãããããã¨ãã§ãã¾ãã ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãããã©ã¼ãã³ã¹ã¯éè¦ãªè¦ç´ ã§ããã¾ããã©ã®ç¨åº¦ã®è² è·ã¾ã§èããããã®ãããåããéè¦ãªè¦ç´ ã¨ãªãã¾ããJMeterã使ç¨ãã¦ããã®ãããªéè¦ãªè¦ç´ ãè¨æ¸¬ããããä¿¡é ¼æ§
JMeter 㧠Web ãµã¼ãã®ããã©ã¼ãã³ã¹æ¸¬å® æä¾ï¼maruko2 Note. 移åï¼ æ¡å , æ¤ç´¢ http://jakarta.apache.org/jmeter/ JMeter 㯠100% Java ã§æ¸ããããã¹ã¯ãããã¢ããªã±ã¼ã·ã§ã³ãªã®ã§ãJava ã®å®è¡ç°å¢ãå¿ è¦ã Web ã FTP ã ãã§ãªããJDBC ã使ã£ããã¼ã¿ãã¼ã¹ã¯ã¨ãªã®ããã©ã¼ãã³ã¹æ¸¬å®ï¼è² è·æ¸¬å®ãã§ãã¾ãã ç®æ¬¡ 1 ã¤ã³ã¹ãã¼ã« 1.1 Mac OS X 10.4 ã«ã¤ã³ã¹ãã¼ã«ãã 2 Web ãµã¼ãã®ããã©ã¼ãã³ã¹æ¸¬å® 2.1 ä¾ 3 åèãµã¤ã ã¤ã³ã¹ãã¼ã« Mac OS X 10.4 ã«ã¤ã³ã¹ãã¼ã«ãã Mac OS X ã¯æ¨æºã§ Java ã®å®è¡ç°å¢ãã¤ã³ã¹ãã¼ã«æ¸ã¿ãªã®ã§ãJava ã®ã¤ã³ã¹ãã¼ã«ã¯ããªãã¦ãããã JMeter ãã¤ã³ã¹ãã¼ã«ããèµ·åããããã®æé ã¯æ¬¡ã®ããã«ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}