How to track remote ejb invocations in EAP 6.x/7.x?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Issue

  • How to track remote ejb invocations in EAP 6.x/7.x?
  • We would ideally like a facility that would allow us to track incoming remote EJB calls in a format like an access log. For previous versions of the EAP we have written and installed a custom EJB invoker that provided this, minus the remote IP which would be very helpful, but our invoker does track per-call memory and cpu utilization which is quite handy. It appears EAP 6 does not have a pluggable container EJB invocation layer, and not having control over the source code we are at a loss in terms of how to better diagnose this problem. One approach is to perform tcpdump network captures of remoting port , but we could use some assistance in terms of how to best decode the network traffic. Do you have a protocol dissector for wireshark for instance?

Resolution

Here is a wireshark jboss-remoting decoder
Also, users can use the attached Byteman script (remove .txt extension and use .btm extension) to log when a message is received and it goes to invoke the ejb/method. Refer how to use Byteman to troubleshoot Java issues.

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments