Welcome! Log In Create A New Profile

Advanced

Re: log rotation on windows?

Arthur Blake
August 24, 2010 07:14AM
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.\
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@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@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@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@nginx.org
>> > > http://nginx.org/mailman/listinfo/nginx
>> > >
>>
>> > _______________________________________________
>> > nginx mailing list
>> > nginx@nginx.org
>> > http://nginx.org/mailman/listinfo/nginx
>>
>>
>> --
>> Igor Sysoev
>> http://sysoev.ru/en/
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

log rotation on windows?

Arthur Blake August 23, 2010 09:08AM

Re: log rotation on windows?

edogawaconan August 23, 2010 10:34AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 10:48AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 11:00AM

Re: log rotation on windows?

Igor Sysoev August 23, 2010 11:04AM

Re: log rotation on windows?

Arthur Blake August 23, 2010 11:18AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 07:14AM

Re: log rotation on windows?

Igor Sysoev August 24, 2010 08:00AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 08:08AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 08:34AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 09:20AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 09:22AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 09:52AM

Re: log rotation on windows?

Igor Sysoev August 24, 2010 08:08AM

Re: log rotation on windows?

Arthur Blake August 24, 2010 08:22AM

Re: log rotation on windows?

Arthur Blake August 25, 2010 08:22AM

Re: log rotation on windows?

Igor Sysoev August 25, 2010 08:36AM

Re: log rotation on windows?

edogawaconan August 25, 2010 09:52AM

Re: log rotation on windows?

vesperto August 25, 2010 01:24PM

Re: log rotation on windows?

Igor Sysoev August 23, 2010 11:02AM

Re: log rotation on windows?

anyhow2 February 04, 2011 03:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready