Author |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
Posted: Fri 13 Jun '14 20:47 Post subject: |
|
|
No idea, test and try 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
|
Posted: Fri 13 Jun '14 21:18 Post subject: |
|
|
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
|
Posted: Fri 13 Jun '14 21:48 Post subject: |
|
|
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
|
Posted: Fri 13 Jun '14 22:01 Post subject: |
|
|
I found the correct name for it.
No video buffering while flash player is paused. That is what i was trying to ask/explain |
|
Back to top |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
|
Back to top |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
Posted: Fri 13 Jun '14 23:39 Post subject: |
|
|
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? |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Sat 14 Jun '14 19:13 Post subject: |
|
|
Today was a sad day for me using apache
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 , But i am staying on this forum for php builds and everything else related to windows web servers .
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
|
Posted: Sat 14 Jun '14 22:30 Post subject: |
|
|
ng4win wrote: |
Duh... does anyone ever read the readme? |
RTFM is the hardest thing for any admin |
|
Back to top |
|
gijs
Joined: 27 Apr 2012 Posts: 189 Location: The Netherlands
|
Posted: Sun 15 Jun '14 18:34 Post subject: |
|
|
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
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
|
Posted: Sun 15 Jun '14 19:39 Post subject: |
|
|
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
|
Posted: Sun 15 Jun '14 20:09 Post subject: |
|
|
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
|
Posted: Sun 15 Jun '14 22:32 Post subject: |
|
|
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
|
Posted: Sun 15 Jun '14 23:46 Post subject: |
|
|
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
|
Posted: Mon 16 Jun '14 0:09 Post subject: |
|
|
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
|
Posted: Mon 16 Jun '14 0:23 Post subject: |
|
|
Yes, that is normal.
My joomla says the same: 18446744073709551099 |
|
Back to top |
|
C0nw0nk
Joined: 07 Oct 2013 Posts: 241 Location: United Kingdom, London
|
Posted: Mon 16 Jun '14 2:01 Post subject: |
|
|
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
|
Posted: Mon 16 Jun '14 9:57 Post subject: |
|
|
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
|
Posted: Mon 16 Jun '14 11:56 Post subject: |
|
|
Can you share your xcache config ? |
|
Back to top |
|
ng4win
Joined: 25 May 2014 Posts: 78
|
Posted: Mon 16 Jun '14 13:10 Post subject: |
|
|
C0nw0nk wrote: | Can you share your xcache config ? |
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 |
|