|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Prudent [sic!] mode logging to NFS-mounted fileThank you very much for the fast answer. I feel so stupid.
-----Original Message----- From: logback-user-bounces@... [mailto:logback-user-bounces@...] 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). On 21.12.2011 16:30, ThomasSchuessler2@... wrote: > We seem to be losing quite a few log records in a clustered web > application writing to an NFS-mounted file with the configuration > shown below. > > We are running logback-1.0.0. Any suggestions? > > <appendername=/"file"/ > > class=/"ch.qos.logback.core.rolling.RollingFileAppender"/> > <append>true</append> > <prudend>true</prudend> > <encoder> > <pattern>%d ${HOSTNAME} [%t] %-5p %c - {%marker} %m%n</pattern> > </encoder> -- Ceki http://twitter.com/#!/ceki _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user -------------------------------------------------------------------------- _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user |
|
|
Re: Prudent [sic!] mode logging to NFS-mounted fileLogback 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@... wrote: > Thank you very much for the fast answer. I feel so stupid. > > -----Original Message----- > From: logback-user-bounces@... [mailto:logback-user-bounces@...] > 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@... http://mailman.qos.ch/mailman/listinfo/logback-user |
|
|
Re: Prudent [sic!] mode logging to NFS-mounted fileWe 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@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@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) -----Original Message----- From: logback-user-bounces@... [mailto:logback-user-bounces@...] 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@... wrote: > Thank you very much for the fast answer. I feel so stupid. > > -----Original Message----- > From: logback-user-bounces@... [mailto:logback-user-bounces@...] > 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@... http://mailman.qos.ch/mailman/listinfo/logback-user -------------------------------------------------------------------------- _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user |
|
|
Re: Prudent [sic!] mode logging to NFS-mounted fileMy experience with file locks on NFS is "use at your own risk". Some NFS implementations are better than others. If you must log to a single file I would recommend writing to a socket and then have a single process write to the file. Although many people here seem to have no problems, in the data center I work on we ran into this years ago and don't allow it anymore.
Ralph On Dec 28, 2011, at 1:19 PM, <ThomasSchuessler2@...> <ThomasSchuessler2@...> 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@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@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) > > -----Original Message----- > From: logback-user-bounces@... [mailto:logback-user-bounces@...] > 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@... wrote: >> Thank you very much for the fast answer. I feel so stupid. >> >> -----Original Message----- >> From: logback-user-bounces@... [mailto:logback-user-bounces@...] >> 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@... > http://mailman.qos.ch/mailman/listinfo/logback-user > > -------------------------------------------------------------------------- > _______________________________________________ > Logback-user mailing list > Logback-user@... > http://mailman.qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user |
|
|
Re: Prudent [sic!] mode logging to NFS-mounted fileWe 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@..." <ThomasSchuessler2@...> 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@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@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@... [mailto:logback-user-bounces@...] 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@... wrote: > Thank you very much for the fast answer. I feel so stupid. > > -----Original Message----- > From: logback-user-bounces@... [mailto:logback-user-bounces@...] > 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@... http://mailman.qos.ch/mailman/listinfo/logback-user -------------------------------------------------------------------------- _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list Logback-user@... http://mailman.qos.ch/mailman/listinfo/logback-user |
| Free embeddable forum powered by Nabble | Forum Help |