1 Reply Latest reply on May 7, 2003 6:16 PM by juhalindfors

    ERROR: ... console stream is looping

    naarok

      I'm posting this here because I've seen other posts about the same error message here.

      Under high load we occasionally see the following error message on JBoss 3.0.4's console.

      ERROR: invalid console appender config detected, console stream is looping

      Since this only happens at high load and log message appear fine the rest of the time, I'm reluctant to believe we have an invalid config. I don't believe we have more than one console appender (although given the interaction of a couple pieces of software, I won't 100% guarantee it)

      Looking at the source for JBoss 3.0.7 in org.jboss.logging.util.CategoryStream.java (the only place I found this error message), it looks like some suspect code in the write(byte[], int, int) method.

      The error message is triggered by inWrite being true. Setting/reading inWrite is guarded by synchronized blocks. But if a thread is in between the two synchronized blocks when another thread calls write, inWrite will be true because of threading issues, not config issues.

      I know this is more of a bug report, but I wanted a sanity check first.

      If someone with more experience with the code could comment on this, it would be greatly appreciated.

      If someone has an alternative explanation for why we'd see this error under high load, but only sporadically and not at all under light load, please comment.