nekop's blog

OpenShift / JBoss / WildFly / Infinispanの中の人 http://twitter.com/nekop

JBoss EAP 6.2全部入りEJBでネットワークトラフィックを見る

JBoss / WildFly (全部俺) Advent Calendar 2013の14日目です。

もはや誰得情報になってきていますが全部入りEJBのリモート呼び出しのトラフィックをキャプチャして見ています。

取得は以下のコマンドでEJBを各インタフェースで呼び出してCtrl-cで停止します。

$ sudo tcpdump -s 65535 -i lo -w lo.tcpdump

閲覧はWiresharkで。中身貼っても面白くはないと思うのでコネクション上のペイロードサイズだけまとめます。

  • native protocol
    • 805 bytes (sent 379 bytes, received 426 bytes)
  • RMI-IIOP
    • lookupとEJBメソッドコールで2つコネクション使う、合計 1707 bytes
    • 722 bytes (sent 417 bytes, received 305 bytes)
    • 985 bytes (sent 618 bytes, received 367 bytes)
  • JAX-WS
    • WSDLの取得、実際のリクエストで2つコネクション使う、合計 3459 bytes
    • 2597 bytes (sent 182 bytes, received 2415 bytes)
    • 862 bytes (sent 498 bytes, received 364 bytes)
  • JAX-RS
    • 363 bytes (sent 224 bytes, received 139 bytes)

JAX-RSが一番ペイロードが小さい。JAX-RSステキ。