[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] log stopped



On Fri, 29 Sep 2000, Fabrice Prémel wrote:
> >so the question is, is there some kind of size-limit imposed on this
> >log-file, and if so, where can I increase it?   Is it possible this
> 
> Not to log-file per se. To every file. I think that 2.2.X kernels 
> have a 2 GB/file limit. (well, new kernels don't have this 
> limitation, and althrough I'm not sure, I think 2.2.X has this 
> limitation)

It's also a limitation of all the applications, the c library file
functions all use 32 bit int's to store file poisition/size...

> 
> >This also brings up a point to me... what size >is< a reasonable 
> size
> >for a web access log file (combined)? 
> 
> If you ever want to process it, too big means too long.

So split it more often, 2gig is a lot of hits...

> 
> On the other hand, if you have lots of virtual sites, you'll bang in 
> another limitations : a process can not open too many file 
> descriptor. Don't remember either what's the limit, but I think it's 
> 256.

Unless changed..(it can be, but you pay a price, you increase the chances
of something going nuts and using up all available resources, only a rare
few processes use so many descriptors, personally i think cobalt should
have had a way to run a server per IP , then at least there would be 
some solution....(eg multiple vsites per ip, multiple servers..)

> 
> The best solution I think is to log to a single file, and have a 
> daily script that cuts it into part.
> 
> But, well, it's what's supposed to happen with Cobalt's scripts ...