where are logs

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jun 12 12:51:25 CEST 2007


In message <466E741B.2010200 at cybercartes.com>, swann writes:
>Hi,
>
>I've problem with logs when i stress varnish with Apache Bench.
>I use varnishlog to store logs in logfile, and i (try to) get ncsa 
>format log with varnishncsa to generate statistics with awstats
>
>It works fine with some requests but when I attac varnish by 100000 
>requests with 500 in concurrency (this is my requirements ) I loose info 
>in logs !

There are some parameters with respect to the shared memory log we
have not tuned yet, the most important one being the size of the
shared memory we use.

If you look at the end of varnishd.c you will find a line like this:

        VSL_MgtInit(SHMLOG_FILENAME, 8*1024*1024);

That sets the size to 8MB.  Apart from some RAM/disk space, there
is no penalty for increasing that size, so give it a fact 10 and
see if that helps.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list