WebSocketã®è² è·è©¦é¨ãJMeterã§ããï¼kawasima / jmeter-websocket使ç¨ï¼
ãã¡ãã§å
¬éããã¦ããWebSocketãµã³ãã©ã使ãã¾ãã
WebSocketを負荷テストする: overflow:auto
WebSocketã®ç¥èã足ããªãã¾ã¾ãã£ã¦ã¦è²ã ã¨ããã£ãã®ã§ãã®ã¡ã¢ã«ãªãã¾ãã
WebSocketã®æµã
WebSocketãæ¥ç¶ããããã«ã¯2åã®ãªã¯ã¨ã¹ããå¿
è¦ã«ãªãã¾ãã
ã¾ãhttpã§WebSocketæ¥ç¶ã«ä½¿ç¨ããã»ãã·ã§ã³IDãåå¾ãã¾ãã
Responseã®å
é ãã»ãã·ã§ã³IDã§ãã
ä¸è¨ã§åå¾ããã»ãã·ã§ã³IDãWebSocketã®ãã¹ã«å ãã¦WebSocketãªã¯ã¨ã¹ããã¾ãã
JMeterã§ã©ãæ¸ãã®ï¼
ãããªæãã§ç¹ã«é£ãããã¨ã¯ãªãã§ãã
ã¿ã¤ã ã¹ã¿ã³ãçæï¼å¿
é ãããããªããã©ãã©ã¦ã¶ã®æåããªãã¹ãã¨ãã¥ã¬ã¼ããããã¦ï¼ã
ã»ãã·ã§ã³IDãåå¾ããããã®httpããªã¯ã¨ã¹ãã
æ£è¦è¡¨ç¾ã§ã¬ã¹ãã³ã¹ããã»ãã·ã§ã³IDãåå¾ãã¦å¤æ°ã«è¨å®ã
ã»ãã·ã§ã³IDããã¹ã«è¿½å ãã¦WebSocketããªã¯ã¨ã¹ãã
使ç¨ããjmxã¯Gistã«ä¸ãã¦ã¾ãã
WebSocket負荷テスト.jmx
ããä¸ã¤ã®ãããã©ãã
WebSocketãµã³ãã©ã®éä¿¡ã¡ãã»ã¼ã¸ã§ä½ãéããªãã£ããä¸æ£ãªã¡ãã»ã¼ã¸ãéãã¨ã¬ã¹ãã³ã¹ãè¿ã£ã¦ããã¿ã¤ã ã¢ã¦ãã«ãªãã¾ããã
ããã§éãå¤ã¯Chromeãããã¬ã®ãã®é¨å表示ãããå¤ã«ãªãã¾ãã
ã¡ãªã¿ã«é ã®ã1::ãã¨ãã5::ãã¨ãã¯WebSocketã®ãªãã¬ã¼ã·ã§ã³ã³ã¼ãã®æ§ã§ããéä¿¡ããã¡ãã»ã¼ã¸ãç¡ãå ´åã¯ã1::ããæå®ããã°ãã¾ãããã¾ããã
以ä¸ã§ãããã¾ãæ å ±ãè¦ã¤ãããªãã£ãã®ã§èª°ãã®å©ãã«ãªãã°å¹¸ãã§ãã
ï¼è¿½è¨ï¼
Twitterã«ã¦ææé ãã¾ããã1::ãã¯Socket.IOã®ä»æ§ã§WebSocketã¨ã¯é¢ä¿ãªãã¨ã®ãã¨ã§ããåéããã¦ã¾ãããã
@y_koh 1::ï½ã¨ããã®ã¯Socket.IOç¬èªã®ã¡ãã»ã¼ã¸ãã©ã¼ãããã§WebSocketã¨ã¯é¢ä¿ããã¾ãããSocket.IOã®ãã©ã¼ãããä»æ§ã¯ãã¡ãã«æ¸ããã¦ãã¾ããhttps://t.co/UUekfClsoq
— gtk2k (@gtk2k) 2014, 2æ 23
ãªã³ã¯å ããMessagesã®è¦åºããå¼ç¨ãã¦ããã¾ãã詳細ã¯ãªã³ã¯å ãåç §ãã¦ãã ããã
(0) Disconnect
https://github.com/LearnBoost/socket.io-spec#messages
(1) Connect
(2) Heartbeat
(3) Message
(4) JSON Message
(5) Event
(6) ACK
(7) Error
(8) Noop