Bug 1266360
Summary: | [GSS](6.4.z) Asynchronous logging doesn't work with periodic-size-rotating-file-handler | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Ranjith Pulluru <rpulluru> | |
Component: | Logging | Assignee: | Panagiotis Sotiropoulos <psotirop> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikoleta Hlavickova <nziakova> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.4.3 | CC: | bmaxwell, brian.stansberry, cdewolf, jbilek, jperkins, jtruhlar, msochure, ppagolu, psotirop | |
Target Milestone: | CR1 | |||
Target Release: | EAP 6.4.11 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1306270 (view as bug list) | Environment: | ||
Last Closed: | 2017-01-17 13:11:54 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1306270, 1361648 |
Description
Ranjith Pulluru
2015-09-25 06:40:04 UTC
During boot the periodic-size-rotating-file-handler is removed and a new one is added. The async-handler still references the old closed one which has a null writer since it was marked for removal. All that needs to be done is the file handler needs to not be removed during the subsystem add. Here's the WildFly fix https://issues.jboss.org/browse/WFCORE-1018. I've experienced issue with periodic-rotating-file-handler too where the logs are not being rotated and eventually the Jboss server ends up with 'too many open files' error. I am using Jboss EAP 6.3, here is the configuration: <async-handler name="ASYNC"> <level name="INFO"/> <queue-length value="500"/> <overflow-action value="block"/> <subhandlers> <handler name="FILE"/> </subhandlers> </async-handler> .... .... <periodic-rotating-file-handler name="FILE" autoflush="true"> <formatter> <pattern-formatter pattern="%d{HH:mm:ss,SSS} %X{jsessionid} %-5p %X{deviceId} %X{principal} [%c] (%t) %s%E%n"/> </formatter> <file relative-to="jboss.server.log.dir" path="server.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> ... ... <root-logger> <level name="DEBUG"/> <handlers> <handler name="ASYNC"/> </handlers> </root-logger> Could you please suggest a fix or workaround? Regards, Prash Could you try the custom-handler for EAP 6.3 : <custom-handler name="PSRFILE" class="org.jboss.logmanager.handlers.PeriodicSizeRotatingFileHandler" module="org.jboss.logmanager"> <level name="TRACE"/> <formatter> <pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/> </formatter> <properties> <property name="fileName" value="${jboss.server.log.dir}/PSRFILE.log"/> <property name="rotateSize" value="1024"/> <property name="suffix" value=".yyyy-MM-dd"/> <property name="maxBackupIndex" value="5"/> <property name="append" value="true"/> <property name="autoFlush" value="true"/> </properties> </custom-handler> <root-logger> <level name="INFO"/> <handlers> <handler name="PSRFILE"/> </handlers> </root-logger> This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Verified with EAP 6.4.11.CP.CR1 Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. |