[logback-user] Prudent [sic!] mode logging to NFS-mounted file

Casey Lucas CLucas at e-miles.com
Thu Dec 29 19:30:08 CET 2011


We recently (within the last few months) decided to try prudent mode on an
NFS mounted file system.  We saw apparent deadlocks but in reality it
ended up being a bug in the Solaris NFS code (non java) that made the
locks very slow (not deadlocked). It was on Solaris 10.x x86. Oracle
identified it as a bug and came back with a patch, but we had since given
up on NFS locking.  If you're familiar with C and running commands like
"truss", you might also want to verify NFS locking support with java and
logback out of the picture. I can send a test C program if desired.

-casey







On 12/28/11 3:19 PM, "ThomasSchuessler2 at Eaton.com"
<ThomasSchuessler2 at Eaton.com> wrote:

We are getting stuck threads, any advice?

####<Dec 28, 2011 9:29:30 AM EST> <Error> <WebLogicServer>
<[obfuscated]> <soa_server1> <[STANDBY] ExecuteThread: '395' for queue:
'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <>
<8f08ad23754ca371:-6015b447:13484e5a335:-7ffe-0000000000005269>
<1325082570435> <BEA-000337> <[STUCK] ExecuteThread: '261' for queue:
'weblogic.kernel.Default (self-tuning)' has been busy for "707" seconds
working on the request
"weblogic.servlet.internal.ServletRequestImpl at 429fb0e6[
POST /Custom[obfuscated]Service/Custom[obfuscated]Port HTTP/1.1
TE: trailers, deflate, gzip, compress
User-Agent: Oracle HTTPClient Version 10h
SOAPAction: "null"
Authorization: [obfuscated]
Accept-Encoding: gzip, x-gzip, compress, x-compress
ECID-Context:
1.a161c6d66e04e744:-2716b1b5:1346c7f4437:-7ffe-00000000000a19aa;kXhDsLK[
obfuscated]KIVPToLQSJLQSqPRO_GNRmKS
Content-type: text/xml; charset=UTF-8
Content-Length: 3607
Connection: Keep-Alive
Proxy-Client-IP: [obfuscated]
X-Forwarded-For: [obfuscated]
X-WebLogic-KeepAliveSecs: 30
X-WebLogic-Force-JVMID: unset
X-WebLogic-Request-ClusterInfo: true

]", which is more than the configured time (StuckThreadMaxTime) of "600"
seconds. Stack trace:
Thread-1020 "[STUCK] ExecuteThread: '261' for queue:
'weblogic.kernel.Default (self-tuning)'" <alive, suspended, blocked,
priority=1, DAEMON> {
    -- Blocked trying to get lock: java.lang.Object at 489d327d[fat lock]

ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.
java:205)

ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileApp
ender.java:149)

ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.jav
a:104)

ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAp
penderBase.java:67)

ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(App
enderAttachableImpl.java:51)
    ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:281)
    ch.qos.logback.classic.Logger.callAppenders(Logger.java:267)

ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:468
)
    ch.qos.logback.classic.Logger.filterAndLog_2(Logger.java:450)
    ch.qos.logback.classic.Logger.debug(Logger.java:559)

The information contained in this e-mail message is intended for the use of the recipient(s) named above and is privileged and confidential. If you are not the intended recipient, you are formally notified that you have received this message in error and that any review, dissemination, distribution, or copying of the message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the original message.-----Original Message-----
From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch]
On Behalf Of ceki
Sent: Mittwoch, 21. Dezember 2011 18:55
To: logback users list
Subject: Re: [logback-user] Prudent [sic!] mode logging to NFS-mounted
file

Logback should have complained about the unknown property. Anyway, let
us know if prudent mode work with NFS. (Prudent mode under NFS was
tested a long time ago and if I remember correctly it worked fine.)
--
Ceki
http://twitter.com/#!/ceki

On 21.12.2011 18:40, ThomasSchuessler2 at Eaton.com wrote:
> Thank you very much for the fast answer. I feel so stupid.
>
> -----Original Message-----
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch]
> On Behalf Of ceki
> Sent: Mittwoch, 21. Dezember 2011 17:49
> To: logback users list
> Subject: Re: [logback-user] Prudent mode logging to NFS-mounted file
>
>
> Check spelling of prudent (not prudend).
>

_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user

--------------------------------------------------------------------------
_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list