JBoss6.4 is using log4j 'per deployment logging' function. That means, JBoss application server itself adding log4j into application. When using multiple log4j implementations, log4j deadlock scenario may be caused. To avoid that, it can be added 'jboss-deployment-structure.xml' file into JBoss application WEB-INF.
Error message
------------------
"http-/173.12.241.10:8280-4"
#109 daemon prio=5 os_prio=0
tid=0x00007fa3e4163000 nid=0x636a waiting for monitor entry
[0x00007fa3ae4e7000]
java.lang.Thread.State: BLOCKED (on object monitor)
at java.io.PrintStream.flush(PrintStream.java:335)
java.lang.Thread.State: BLOCKED (on object monitor)
at java.io.PrintStream.flush(PrintStream.java:335)
Solution
------------
jboss-deployment-structure.xml
<jboss-deployment-structure> <deployment>
<!-- exclude the logging subsystem to disable deployment unit processors from running -->
<exclude-subsystems>
<subsystem name="logging" />
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>
No comments:
Post a Comment