logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Nginx vs Other Webservers on WINDOWS ONLY Page Previous  1, 2, 3, 4, 5, 6  Next
Author
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Fri 13 Jun '14 20:47    Post subject: Reply with quote

No idea, test and try Very Happy Technically I'd assume idle connections (paused) will timeout, a resume should always pass info from where to resume from. If both are true then there should not be a problem.
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Fri 13 Jun '14 21:18    Post subject: Reply with quote

Just tested and did not work wish i could find out how youtube limit it like that.
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Fri 13 Jun '14 21:48    Post subject: Reply with quote

What did you try? what did you expect to happen? with nginx and modules it's 99% a config issue when behavior is not as expected.
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Fri 13 Jun '14 22:01    Post subject: Reply with quote

I found the correct name for it.

No video buffering while flash player is paused. That is what i was trying to ask/explain Razz
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Fri 13 Jun '14 22:46    Post subject: Reply with quote

I think this is it https://github.com/arut/nginx-rtmp-module/issues/331
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Fri 13 Jun '14 22:52    Post subject: Reply with quote

Yeah doing some deeper digging i found out its actualy called dash protocol.

https://developer.mozilla.org/en-US/docs/Web/HTML/DASH_Adaptive_Streaming_for_HTML_5_Video

http://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP

But the mp4 module does not work with dash streaming nor does anything on nginx. I am looking to see what alternatives use / have it.

I recon if it is rtmp module that does it, Do you have it added/compiled into your nginx build ?
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Fri 13 Jun '14 23:39    Post subject: Reply with quote

C0nw0nk wrote:
I recon if it is rtmp module that does it, Do you have it added/compiled into your nginx build ?

Duh... does anyone ever read the readme? Mr. Green
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Sat 14 Jun '14 19:13    Post subject: Reply with quote

Today was a sad day for me using apache Sad

I hit the max concurrent connections in apache with the traffic on my site, As a result I have now had to drop apache from all my servers To run fastcgi with nginx on everything. On the bright side of life it is faster on the downside i will miss apache Sad, But i am staying on this forum for php builds and everything else related to windows web servers Smile.

Also @ng4win i will be setting up and testing your builds with rtmp either this weekend or next week if i get the motivation to do so.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Sat 14 Jun '14 22:30    Post subject: Reply with quote

ng4win wrote:

Duh... does anyone ever read the readme? Mr. Green


RTFM is the hardest thing for any admin Wink
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Sun 15 Jun '14 18:34    Post subject: Reply with quote

I'm trying to test it but every time I start it I get:

Quote:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. Alle rechten voorbehouden.

C:\Users\Gijs
> cd C:\Users\Gijs\Desktop\nginx

C:\Users\Gijs\Desktop\nginx
> nginx.exe
nginx: [emerg] CreateFile() "C:\Users\Gijs\Desktop\nginx/conf/nginx.conf" failed
(2: FormatMessage() error:(15100))

C:\Users\Gijs\Desktop\nginx
>


also when I run it as admin, any ideas?
Should I put it in C:\nginx instead?

Update: C:\nginx doesn't work either.
Update 2: had to rename the file Embarassed

I now get

Code:
C:\nginx
> nginx.exe -t
nginx: [emerg] "server" directive is not allowed here in C:\nginx/conf/nginx.con
f:69
nginx: configuration file C:\nginx/conf/nginx.conf test failed


Config:
Quote:
server {
listen IP:443 ssl spdy;
listen [Ipv6]:443 ssl spdy;
server_name server_name domains;

ssl on;
ssl_certificate "C:/Program Files/Apache Software Foundation/Apache24/bin/ssl2/certificate.crt";
ssl_certificate_key "C:/Program Files/Apache Software Foundation/Apache24/bin/ssl2/egs.net.key";

ssl_session_timeout 5m;

ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers RC4:HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

root "C:/Program Files/Apache Software Foundation/Apache24/htdocs/site 2"
}
}


}
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Sun 15 Jun '14 19:39    Post subject: Reply with quote

for the php-cgi.exe are there any command line options that limit requests or set a maxmimum number of requests a php process will handle for nginx fastcgi ?
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Sun 15 Jun '14 20:09    Post subject: Reply with quote

C0nw0nk wrote:
for the php-cgi.exe are there any command line options that limit requests or set a maxmimum number of requests a php process will handle for nginx fastcgi ?

About the server directive: see the default conf example files or the prove archive which has many different location examples.

About php: see the link to the batchfiles I posted, it lists 10k I think, set via 'set' variables.
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Sun 15 Jun '14 22:32    Post subject: Reply with quote

Would this work at all ?

Setting in the fastcgi.conf
Code:
fastcgi_param  pm.max_children 0;
fastcgi_param  pm.max_requests 0;
fastcgi_param PHP_FCGI_CHILDREN 0;
fastcgi_param PHP_FCGI_MAX_REQUESTS 0;


Or in the php.ini setting
Code:
pm.max_requests=0
pm.max_children=0
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Sun 15 Jun '14 23:46    Post subject: Reply with quote

Not really, in the nginx world php is loaded permanently and independently which is why setting runtime settings is best done in the .cmd file that loads php(-cgi). Having children maybe useful for linux but is slow for windows, create a pool and let nginx cycle them.
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Mon 16 Jun '14 0:09    Post subject: Reply with quote

I was also looking in my PHP info and i see a bit of a high number.

mysqlnd
Code:
active_connections 18446744073709551531


Is that normal or...?
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Mon 16 Jun '14 0:23    Post subject: Reply with quote

Yes, that is normal.

My joomla says the same: 18446744073709551099
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Mon 16 Jun '14 2:01    Post subject: Reply with quote

Thanks gijs.

Since i notice everyone in this thread seems to use a different caching method what is the best from experience such as memcache, XCache etc ?
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Mon 16 Jun '14 9:57    Post subject: Reply with quote

It depends on your needs and also how you load and manage php-cgi, most caching is based upon children because the parent then loads and controls the cache which the children will also use, the downside is that each child is loaded/unloaded all the time which can bog down resources with many concurrent users and of-course many children being spawned. (and everyone is moaning about too many children... duh..)

My way (and possibly the best way for windows) is to load 10 to 20 php-cgi instances permanently with xcache listening on different tcp ports with zero children. nginx then cycles through this pool without bogging down anything allowing many concurrent users. downside is that each instance has its own cache which needs to fill and optimize for each instance which takes time. This cache issue can be solved when the designers understand the need to separate cache management from the cache (which they still don't).
Back to top
C0nw0nk



Joined: 07 Oct 2013
Posts: 241
Location: United Kingdom, London

PostPosted: Mon 16 Jun '14 11:56    Post subject: Reply with quote

Can you share your xcache config Smile ?
Back to top
ng4win



Joined: 25 May 2014
Posts: 78

PostPosted: Mon 16 Jun '14 13:10    Post subject: Reply with quote

C0nw0nk wrote:
Can you share your xcache config Smile ?

Sure, mine is near the end of php.ini

Code:
[xcache-common]
extension = php_xcache.dll

[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "user"
xcache.admin.pass = md5($your_password)

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               32M
xcache.count =                 1
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0
xcache.var_size  =            4M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.var_namespace_mode =    0
xcache.var_namespace =        ""
xcache.readonly_protection = Off
xcache.mmap_path =    "/webroot/xcache"
xcache.coredump_directory =   ""
xcache.coredump_type =         0
xcache.disable_on_crash =    Off
xcache.experimental =        Off
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =            On

[xcache.coverager]
xcache.coverager =          Off
xcache.coverager_autostart =  On
xcache.coveragedump_directory = ""
Back to top


Reply to topic   Topic: Nginx vs Other Webservers on WINDOWS ONLY View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page Previous  1, 2, 3, 4, 5, 6  Next