Could it be possible my server slows down because all connections are in use ?by c0nw0nk - Nginx Mailing List - English
Maxim Dounin Wrote: ------------------------------------------------------- > Hello! > > On Thu, Jun 26, 2014 at 09:41:15AM -0400, c0nw0nk wrote: > > > So i spent a while on this one and turns out the problem is a little > > function in nginx's core called "worker_rlimit_nofile". > > > > > > But for me on windows (i don't know if itby c0nw0nk - Nginx Mailing List - English
I don't know how you would try to replicate this issue because i have thousands upon thousands of files being accessed simultaneously without me setting that value insanely high pages and access to thing take 10 seconds and more even timeouts was occurring but as soon as i set that value it all stops and everything seems to be running fast as its suppose to.by c0nw0nk - Nginx Mailing List - English
I recon its because i have media sites with lots of files and pictures videos content etc so i need it to be a large limit.by c0nw0nk - Nginx Mailing List - English
Well without a value everything is very very slow. With a value its nice and fast.by c0nw0nk - Nginx Mailing List - English
So i spent a while on this one and turns out the problem is a little function in nginx's core called "worker_rlimit_nofile". But for me on windows (i don't know if it does it for linux users too.) grinds my site down to a halt unless you increase its value. Why does it do this ? http://nginx.org/en/docs/ngx_core_module.html#worker_rlimit_nofile Even with the following nginx bby c0nw0nk - Nginx Mailing List - English
I found the cause on ever page i noticed it had Google Map's/Location running the person who wrote the Location addon in the component on Joomla for some reason thought it was good coding to wait for a link load. So the reason it time'd out is because it is connecting to a google maps link that never ever loads or finishes loading. (Invalid link.)by c0nw0nk - Nginx Mailing List - English
Yep it is a PHP application error. My Nginx log now outputs this. I doing more digging to see why it is acting up. 2014/06/18 23:20:49 3792#7764: *22709 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response headerby c0nw0nk - Nginx Mailing List - English
Upon the change it gets worse now i do not even get a error the browser just time's out. I have no idea if it is a Joomla issue or if it is actualy something with PHP on windows. I get the feeling it is a bit of both.by c0nw0nk - Nginx Mailing List - English
Doing further testing i have discoverd something disturbing. I can execute a page upon the website, the page never loads. Then when i go to load other pages they all give of a error. Fatal error: Maximum execution time of 30 seconds exceeded in C:\server\websites\ps\public_www\libraries\loader.php on line 183 So the one page that does not load triggers a knock on effect to all other pagesby c0nw0nk - Nginx Mailing List - English
Looking at it PHP, MySQL and Nginx have no changes in CPU although PHP did spike in I/O usage. And i disabled caching in Joomla and sometimes i came across this. PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\server\websites\ps\public_www\libraries\loader.php on line 183 Do you recon that could be my bottle neck ?by c0nw0nk - Nginx Mailing List - English
Even with PHP_FCGI_MAX_REQUESTS=10000 i still get it what log setting would you like nginx set to ? Because mysql has no outputs in the slow query log that take more than 2 seconds and PHP has no error outputs or crashes in my syslog. error_log logs/error.log crit; Is my current setting should i change it to debug ?by c0nw0nk - Nginx Mailing List - English
Could traffic surges do that too ? Such as after i leave php running for a while it seems to not take as long to load ?by c0nw0nk - Nginx Mailing List - English
What logs you want me to paste PHP or Nginx ?by c0nw0nk - Nginx Mailing List - English
I am still having the same issue read time outs. If every request made to the server circles the upstream then it has to be the upstream that is the issue not php. PHP loads are fine no crashes no errors.by c0nw0nk - Nginx Mailing List - English
Not a bad suggestion steve to test it i just changed my php mark to 100 processes will wait and see if i still get read time outs. And to answer your other question about why i do not use linux. I don't use linux because i am not very good with linux machines my understanding and trying to get to grips with setting one up and putty is very hard for me. And i suppose i have the kind of attby c0nw0nk - Nginx Mailing List - English
So this is going to be a bit of a long post but if i have encounterd this issue no doubt someone else will. Basically i keep getting read time outs or my web pages take a very long time to load. My server is Windows 2008 R2 64bit. Everything runs under either System or Root 1GBPS Connection server is from OVH.co.uk | http://www.ovh.co.uk/dedicated_servers/infra/2014-EG-32.xml My web appby c0nw0nk - Nginx Mailing List - English
So does anyone know how to edit the SYSTEM account privileges if not i have a way around it anyway.by c0nw0nk - Nginx Mailing List - English
After doing some more testing there is one way it does not work still. When Nginx runs on windows it runs under your user account. For example my account name is root. So it says nginx is running under the root user. But when i restart the server(local machine) it says nginx is running under the SYSTEM user and that is when all files other than plain text give of a 404 not found error. Itsby c0nw0nk - Nginx Mailing List - English
I also did use the Microsoft fix it that you posted itpp2012 so as of what actually fixed it i think it was probably the Microsoft option but i don't need the file cache anyway. Thanks for all the help much appreciated.by c0nw0nk - Nginx Mailing List - English
Thanks for the information and sorry for making so many posts and such a fuss over it. I think i may have found the true culprit behind this silly error. In my Http server section of my nginx config i had this. #open_file_cache max=900000 inactive=10m; #open_file_cache_valid 20m; #open_file_cache_min_uses 1; #open_file_cache_errors on; I nulled out my open file cache andby c0nw0nk - Nginx Mailing List - English
http://i633.photobucket.com/albums/uu52/C0nw0nk/Untitled9.png If you look at that picturei think that is why i have a 404 error. Because when i first connect to the drive all works fine i can access the media, Then i restart nginx and it says 404 not found. What is the file path to delete the caches of the windows file shares.by c0nw0nk - Nginx Mailing List - English
Try it with a mp4,flv,jpg file. Not documents that have a plain text mime type. > To: nginx@nginx.org > Subject: Re: RE: Windows | Nginx Mapped Hard Drive | Network Sharing > From: nginx-forum@nginx.us > Date: Fri, 4 Apr 2014 18:59:50 -0400 > > I did a simple config: > > server { > listen 80; > server_name localhost; > > root Y:/www.mydomain.nl; > index iby c0nw0nk - Nginx Mailing List - English
I think it is a nginx issue it works fine on the localhost and i have full read write and execute access to that hard drive via my remote machine even browsing it and confirm the files exsist nginx keeps saying 404 not found. I think its a bug.by c0nw0nk - Nginx Mailing List - English
Yep that is my current config and i still recieve a 404 error accessing my static files jpg, mp4, flv etc.by c0nw0nk - Nginx Mailing List - English
Also if it helps my current version of nginx is 1.5.12by c0nw0nk - Nginx Mailing List - English
Sorry made a mistake and can't edit my previous post. Nginx handles all static content and Apache handles all dynamic content.by c0nw0nk - Nginx Mailing List - English
Here is my config. server { listen 80; listen [::]:80; server_name domain.com www.domain.com; root z:/server/websites/ps/public_www; index index.php index.html index.htm default.html default.htm; location / { root z:/server/websites/ps/public_www; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; pby c0nw0nk - Nginx Mailing List - English
Same issue removed it from the server block i don't think nginx is compatible with windows network sharing. Subject: Re: Windows | Nginx Mapped Hard Drive | Network Sharing From: kworthington@gmail.com Date: Fri, 4 Apr 2014 18:08:44 -0400 To: nginx@nginx.org Replied on SO. Mirroring here: Try removing the root and index blocks from the server block. Leave it only in the location block. --Kevinby c0nw0nk - Nginx Mailing List - English
Thanks for the response i posted my config and tried you way but still no luck nginx delivers dynamic content fine but as for the static content that it should be delivering from the mapped hard drive it just keeps saying 404 not found. Date: Fri, 4 Apr 2014 16:47:55 -0400 Subject: Re: Windows | Nginx Mapped Hard Drive | Network Sharing From: kworthington@gmail.com To: nginx@nginx.org Answered yoby c0nw0nk - Nginx Mailing List - English