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 callsin a format like anaccess log. For previous versions of theEAPwe have written and installed acustom EJB invokerthat provided this, minus the remote IP which would be very helpful, but ourinvokerdoes track per-call memory andcpu utilizationwhich is quite handy. It appearsEAP 6does 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 performtcpdumpnetwork 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 forwiresharkfor 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