|
|||||||||
![]() |
|||||||||
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: CRONOLOG: VS: Cronolog processes
Andrew, I ran into a similar issue. I am using cronolog on W2K. A server started complaining heavily once I went over 50 pipes. I had to dig around and increase the limit. But W2K doesn't support having more than ~100 pipes and each one takes up a number of resources. Also when Apache starts up I get numerous stdin errors in the W2K application event logs (resulting in numerous pop-up windows which can block automatic restart of the service) which I believed are triggered when cronolog is told to access a piped log file that does not yet exist. I can check into this more but I suspect it would go away if some of the changes you mentioned were made. If you need someone to test things on Apache 1.3 and W2K just drop me an e-mail, -Ellis Teer On Wed, 27 Jun 2001 21:49:13 +0100 (BST), wrote: >Apache 1.3 provides the piped log facility which creates a process to >filter a log stream -- if you have 500 webs each with its own piped >log then you will have 500 extra processes, or perhaps 1000! as >Apache >spawns /bin/sh to process the command line, and the shell process >sticks around too. Within the confines of piped-logs there is >nothing >much that can be done about the processes. > >There are a couple of ways to redesign cronolog as a module to cope >better in this sort of situation: > >1. the module could just open the required file (in append mode), >write the log message and close the file > >2. the module could maintain a cache (in each process) of the most >recently accessed log files, closing the least recently used file >descriptor (and/or any descriptors that are no longer valid >according to their templates) > >3. have a server process to handle all the logging requests > > >I started along the third route a couple of months ago, but other >demands on my time intervened. I might have a look at the second >approach, as it might be simpler and would avoid the complexities of >interprocess communication, etc. > >Things are starting to ease off here (we have been launching a new >publishing imprint for cookery books -- see www.pauntley- >press.co.uk), >and I may well have a chance to revisit the cronolog code in the next >couple of weeks. > >Andrew >-- >Andrew Ford, Director Ford &Mason Ltd Tel: +44 >1531 829900 >A.Ford@xxxxxxxxxxxxxxxx South Wing, Compton House Fax: +44 >1531 829901 >http://ford-mason.co.uk Compton Green, Redmarley Mobile: +44 >7785 258278 >http://pauntley-press.co.uk Gloucester, GL19 3JB >http://refcards.com Great Britain > > > > >Ronnie Bach Nielsen writes: >>Hi, >> >>I'm using the cronolog script to rotate logfiles on my Apache >server and >>well satisfied with it. >>But it creates a new process for every virtual web I create... >>Is this good? >> >>I mean what if I have 500 webs running on the same machine, then >cronolog >>will have 500 processes running??? >> >>Why does the cronolog process keeps running? >>I would expect it to start a process when a request hits the >apache, then >>write to the log and then quit the process. Or is this too slow??? >> >>Thanks in advance. >> >>-- >>Ronnie __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
|