How to track remote ejb invocations in EAP 6.x/7.x?
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 anaccess log
. For previous versions of theEAP
we have written and installed acustom EJB invoker
that provided this, minus the remote IP which would be very helpful, but ourinvoker
does track per-call memory andcpu utilization
which is quite handy. It appearsEAP 6
does not have apluggable 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 performtcpdump
network captures ofremoting port
, but we could use some assistance in terms of how to best decode the network traffic. Do you have a protocol dissector forwireshark
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