logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: How manu files opened per appender?
Date Fri, 07 Mar 2003 19:52:57 GMT

At any instance here is only one file per FileAppender (or subclass) 
regardless of the number of threads accessing the FileAppender.

At 01:36 PM 3/7/2003 -0600, you wrote:
>We are investigating an open file leak in our web server, and I was asked to
>try to find out more about Apache Log4j.
>We are using tools like pfiles (prints open file descriptors for a process)
>and lsof (List Open Files) to learn how many files, the file types, and the
>names of the files open in our web server process.
>
>Below is a portion of our log4j.properties file, where we set up a Rolling
>File Appender for 8 different areas.
>In a multi-threaded environment like a web server, will there be only one
>open file per appender, or multiple open files per appender?
>
>It appears that the number of open logging (Log4j) files is different
>running in the iPlanet environment (where open file problem is being
>exhibited) versus a Tomcat web server environment (where the problem is not
>being seen).
>
>What I'm looking for is a statement that either there is only one open file
>per appender, regardless of the number of threads accessing the Log4j
>package, or a statement indicating there might be more than one open file
>per appender in a web server.
>
>Thanks for any information you might provide.
>
>David Stevenson
>Thomson - West
>
>
>
>
>
>
>log4j.logger.com.westgroup.phoenix.user_interface2.Repository=DEBUG,
>repository
>log4j.logger.com.westgroup.phoenix.user_interface2.Workarea=ALL, work_area
>log4j.logger.com.westgroup.phoenix.user_interface2.RenderToWestlaw=DEBUG,
>e_render
>log4j.logger.com.westgroup.phoenix.user_interface2.PrintRender=DEBUG,
>print_render
>log4j.logger.com.westgroup.phoenix.user_interface2.Workflows=DEBUG,
>workflows
>log4j.logger.com.westgroup.phoenix.user_interface2.workflow_manager=DEBUG,
>workflow_manager
>log4j.logger.com.westgroup.phoenix.user_interface2.inbox=WARN, inbox
>log4j.logger.com.westgroup.phoenix.user_interface2.connection_pooling=INFO,
>connection_pooling
>log4j.logger.com.westgroup.phoenix.user_interface2.direct_allocates=INFO,
>direct_allocates
>
>log4j.appender.repository=org.apache.log4j.RollingFileAppender
>log4j.appender.repository.File=/apps/phoenix/devd/lib/webserver/user_interfa
>ce/webapps/ui/WEB-INF/repository.log
>
>log4j.appender.repository.MaxFileSize=1024KB
>log4j.appender.repository.MaxBackupIndex=7
>log4j.appender.repository.layout=org.apache.log4j.PatternLayout
>log4j.appender.repository.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>
>log4j.appender.work_area=org.apache.log4j.RollingFileAppender
>log4j.appender.work_area.File=/apps/phoenix/devd/lib/webserver/user_interfac
>e/webapps/ui/WEB-INF/work_area.log
>
>log4j.appender.work_area.MaxFileSize=1024KB
>log4j.appender.work_area.MaxBackupIndex=7
>log4j.appender.work_area.layout=org.apache.log4j.PatternLayout
>log4j.appender.work_area.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>log4j.appender.e_render=org.apache.log4j.RollingFileAppender
>log4j.appender.e_render.File=/apps/phoenix/devd/lib/webserver/user_interface
>/webapps/ui/WEB-INF/e_render.log
>log4j.appender.e_render.MaxFileSize=1024KB
>log4j.appender.e_render.MaxBackupIndex=7
>log4j.appender.e_render.layout=org.apache.log4j.PatternLayout
>log4j.appender.e_render.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>log4j.appender.print_render=org.apache.log4j.RollingFileAppender
>log4j.appender.print_render.File=/apps/phoenix/devd/lib/webserver/user_inter
>face/webapps/ui/WEB-INF/print_render.log
>log4j.appender.print_render.MaxFileSize=1024KB
>log4j.appender.print_render.MaxBackupIndex=7
>log4j.appender.print_render.layout=org.apache.log4j.PatternLayout
>log4j.appender.print_render.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>log4j.appender.workflows=org.apache.log4j.RollingFileAppender
>log4j.appender.workflows.File=/apps/phoenix/devd/lib/webserver/user_interfac
>e/webapps/ui/WEB-INF/workflows.log
>log4j.appender.workflows.MaxFileSize=1024KB
>log4j.appender.workflows.MaxBackupIndex=7
>log4j.appender.workflows.layout=org.apache.log4j.PatternLayout
>log4j.appender.workflows.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>log4j.appender.workflow_manager=org.apache.log4j.RollingFileAppender
>log4j.appender.workflow_manager.File=/apps/phoenix/devd/lib/webserver/user_i
>nterface/webapps/ui/WEB-INF/workflow_manager.log
>log4j.appender.workflow_manager.MaxFileSize=1024KB
>log4j.appender.workflow_manager.MaxBackupIndex=7
>log4j.appender.workflow_manager.layout=org.apache.log4j.PatternLayout
>log4j.appender.workflow_manager.layout.ConversionPattern=%d %-10.10t %-5p
>%-15.15c{1} - %m%n
>
>log4j.appender.inbox=org.apache.log4j.RollingFileAppender
>log4j.appender.inbox.File=/apps/phoenix/devd/lib/webserver/user_interface/we
>bapps/ui/WEB-INF/inbox.log
>log4j.appender.inbox.MaxFileSize=1024KB
>log4j.appender.inbox.MaxBackupIndex=7
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

--
Ceki 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message