ãã°ãã«ããã§ãã
ä»åã¯è² è·ãã¹ãã®ãããJMeterã試ãã¦ã¿ãã®ã§ä½¿ãæ¹ãã¾ã¨ãã¾ããã
æå¤ã¨ããªãç°¡åã§ããã¼ã¿ã«10åç¨åº¦ã§è©¦ãããã¨æãã¾ãã
- JMeterã®ãã¦ã³ãã¼ã(Macã®å ´å)
- JMeterã®èµ·å
- Thread Groupãä½æ
- HTTP Requestãä½æ
- View Results Tree
- JMeterãå®è¡
JMeterã®ãã¦ã³ãã¼ã(Macã®å ´å)
å ¬å¼ããã¥ã¡ã³ãApache JMeter - Apache JMeter™ããzipãã¡ã¤ã«ããã¦ã³ãã¼ããã¦binãã£ã¬ã¯ããªã¼ããshãå©ãã¦ã¨ãè²ã ããã¾ãã
Macã®å ´åã¯homebrewã«ãããã
brew install jmeter
ãã®ä¸çºã§jmeterãå®è¡ã§ããããã«ãªãã¾ãã
JMeterã®èµ·å
ã¿ã¼ããã«ãã
$ jmeter
ãå®è¡ãã¦ãã ãããããããã¨GUIãç«ã¡ä¸ããã¾ãã
Thread Groupãä½æ
Thread Groupã§ã¯ä½äººã®ã¦ã¼ã¶ã¼ãä½ç§éã«ä½åãªã¯ã¨ã¹ãããããè¨å®ãã¾ãã
Test Planãå³ã¯ãªãã¯ãã¦
Add -> Threads(Users) -> Thread Group ãã¯ãªãã¯ãã¦ä½æãã¾ãã
Thread Groupã®è¨å®ãç·¨éãã¾ãã
以ä¸ãé©å®ä¿®æ£ãã¦ãã ããã
Number of Thread(users): ã¦ã¼ã¶ã¼ã®äººæ°ã«è¨å® Ramp-up period(seconds): ä½ç§ã«1åãªã¯ã¨ã¹ããæãããã®è¨å® Loop Count: ä½åå®è¡ãããã
HTTP Requestãä½æ
HTTPã§ã®ãªã¯ã¨ã¹ãã®è¨å®ããã¾ãã
Thread Groupãå³ã¯ãªãã¯ãã¦
Add -> Sampler -> HTTP Request ãã¯ãªãã¯ãã¦ä½æãã¾ãã
HTTP Requestã®è¨å®ãç·¨éãã¾ãã
以ä¸ãé©å®ä¿®æ£ãã¦ãã ããã
protocol: http/httpsã®ãããã³ã«ã®è¨å® Server Name or IP: ãµã¼ãã¼ãã¼ã ãIP Port Number: ãã¼ãçªå·
View Results Tree
View Result Treeã§ã¯ãªã¯ã¨ã¹ãçµæã表示ãã¦ããã¾ãã
HTTP Requestãå³ã¯ãªãã¯ãã¦
Add -> Listener -> View Results Treeãã¯ãªãã¯ãã¦ä½æãã¾ãã
è¨å®ã¯ä»¥ä¸ã§æå¾ã«ãªãã¾ãã
command + save ã§ä¿åãã¦ãã ããã
JMeterãå®è¡
ç·ã®ã¹ã¿ã¼ããã¿ã³ãæ¼ãã¦å®è¡ãã¾ãã
ãã¨ã¯View Results Treeããå®è¡çµæãè¦ããã¨ãã§ãã¾ãã