log rotation on windows?

Arthur Blake arthur.blake at gmail.com
Tue Aug 24 16:03:49 MSD 2010


Thank you.  I would be happy to test this build for you as well.

On Tue, Aug 24, 2010 at 7:55 AM, Igor Sysoev <igor at sysoev.ru> wrote:

> On Tue, Aug 24, 2010 at 07:03:43AM -0400, Arthur Blake wrote:
>
> > My apologies:  I see now that this behavior is clearly documented here:
> > http://nginx.org/en/docs/windows.html it was confusing to me whether
> > wiki.nginx.org or nginx.org is the official documentation page.\
>
> nginx can run as a service itself, but it should be run by another
> utility. Probably nginx should use "Global\" prefix, i.e.
> "Global\ngx_reopen_XXX", because srvany/etc may change session.
> Tomorrow I will make a test-build with this prefix to test it.
>
> > Thanks for this great software!
> > I was able to replace 4 load balanced Apache servers that could not
> handle a
> > high request load (>1000 requests per second) with one nginx instance on
> a
> > single server that could handle all that load with a small amount of
> memory
> > and staying at around 10% cpu.  Is nginx on windows still considered
> > inferior in performance to the linux version?  Despite that, it seems to
> > blow away apache on windows.
> >
> > On Mon, Aug 23, 2010 at 11:13 AM, Arthur Blake <arthur.blake at gmail.com
> >wrote:
> >
> > > I tried that and it does not work either, but I've found that if I run
> > > nginx directly from the command line, it does work.
> > >
> > > I am using a windows service wrapper so that nginx can continue to run
> when
> > > I'm logged off (as documented here
> > > http://misterdai.wordpress.com/2009/10/16/nginx-windows-service/)
> > > In fact, none of the -s commands work when I'm running it under a
> service.
> > >  Any ideas why not?  I tried it both under an administrator account and
> the
> > > actual account that it is running under as a service...
> > >
> > > It wasn't clear to me that "-s reopen" was for reopening the log files
> (not
> > > anywhere on the wiki or faq.  I guess it's supposed to be obvious?)
> > >
> > > On Mon, Aug 23, 2010 at 10:56 AM, Igor Sysoev <igor at sysoev.ru> wrote:
> > >
> > >> On Mon, Aug 23, 2010 at 10:53:38AM -0400, Arthur Blake wrote:
> > >>
> > >> > C:\nginx>tasklist /fi "imagename eq nginx"
> > >> > INFO: No tasks are running which match the specified criteria.
> > >> >
> > >> > C:\nginx>tasklist /fi "imagename eq nginx.exe"
> > >> >
> > >> > Image Name                     PID Session Name        Session#
>  Mem
> > >> Usage
> > >> > ========================= ======== ================ ===========
> > >> ============
> > >> > nginx.exe                     1884 Services                   0
> > >>  4,460 K
> > >> > nginx.exe                     1752 Services                   0
> > >>  5,512 K
> > >>
> > >> Strange, there is a process with 1884 pid. The event should exist.
> > >> Could you terminate the nginx processes, then start nginx again and
> try
> > >> to run "nginx -s reopen" ?
> > >>
> > >> > On Mon, Aug 23, 2010 at 10:51 AM, Igor Sysoev <igor at sysoev.ru>
> wrote:
> > >> >
> > >> > > On Mon, Aug 23, 2010 at 10:44:21AM -0400, Arthur Blake wrote:
> > >> > >
> > >> > > > I get this error:
> > >> > > >
> > >> > > > C:\nginx>nginx -s reopen
> > >> > > > [error]: OpenEvent("ngx_reopen_1884") failed (2: The system
> cannot
> > >> find
> > >> > > the
> > >> > > > file specified)
> > >> > >
> > >> > > What does
> > >> > >
> > >> > > tasklist /fi "imagename eq nginx.exe"
> > >> > >
> > >> > > show ?
> > >> > >
> > >> > >
> > >> > > --
> > >> > > Igor Sysoev
> > >> > > http://sysoev.ru/en/
> > >> > >
> > >> > > _______________________________________________
> > >> > > nginx mailing list
> > >> > > nginx at nginx.org
> > >> > > http://nginx.org/mailman/listinfo/nginx
> > >> > >
> > >>
> > >> > _______________________________________________
> > >> > nginx mailing list
> > >> > nginx at nginx.org
> > >> > http://nginx.org/mailman/listinfo/nginx
> > >>
> > >>
> > >> --
> > >> Igor Sysoev
> > >> http://sysoev.ru/en/
> > >>
> > >> _______________________________________________
> > >> nginx mailing list
> > >> nginx at nginx.org
> > >> http://nginx.org/mailman/listinfo/nginx
> > >>
> > >
> > >
>
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100824/b1e876d9/attachment-0001.html>


More information about the nginx mailing list