I was just able to monitor one of the slowdowns, this time it got as response eventually. So i screenshot the request and the database entries to go with it. The database entry was not added until the main page responded. Normally the requests never get a reply at all.by bigjme - How to...
So i just created a logging script that can log all my request to php files, images, everything. I just ran a few loads and got the server to fail a few times. Here is a start and end time for a single page load, but for 4 files being loaded 2015-03-23 21:05:24 - Start 0.011250019073486 - Run Time in Seconds 2015-03-23 21:05:24 - End 2015-03-23 21:05:24 - Start 0.0024559497833252 - Runby bigjme - How to...
So today i got round to setting up my local DNS server. i set up all my domains to point to 127.0.0.1 so they never get past my actual machine, i then tried accessing one to make sure it was going to the right ip and it was. But i still get the long times without a server reply. So it cant be my firewall blocking it nowby bigjme - How to...
Thank you very much for your help :) I used one of my developed sites at work today without any issues so it seems the error was because of me doing a full loop back to my system Regards, Jamieby bigjme - How to...
Ok, thanks. I may look at setting us a dns server on my dev machine to save the reboot each time i change the host filesby bigjme - How to...
Yes that's what I have thinking. That maybe my router is detecting a full loop back and rejecting the connections in the firewall thinking it may be a network attack. I can set a wildcard in this domains can't I? So any sub-domain goes to the same aswell? Again thanks for all your help so farby bigjme - How to...
This may sound daft but do you think it may be an issue with it being connected to itself. So my server is on my machine, I can access it using my local ip, but it has domains bound to it. I always connect to it using either an external domain which then connects back to the server so Pc - domain - router - server I'm entirely sure as if I do random connections from my mobile while isby bigjme - How to...
I get the error even loading up basic pages which just a simple echoby bigjme - How to...
So reading those, they are saying to increase the timeout time, 60 seconds loading a page on this type of server when only I have access isn't a timeout that should happen. The other recommendations are to simply use 127.0.0.1 for the php proxy (so ip4) which mine already is doing. I will keep looking bit as it stands, I am lostby bigjme - How to...
I removed opcache and the issue persisted still so its not an opcache problem. The server is running on a dedicated physical machine (i'm sitting at it now) and the server is running off a dedicated SSD with nothing else on it but the server. So no shared or mapped drives and no vm's It happens across 2 different servers, one is my external which uses my own framework proxy, and the other isby bigjme - How to...
Ok so i have been doing some deving on my server today and the issue with retrieving no data or no receiving a response has gotten much worse. I have disabled opcache entirely to rule that out of the situation. Is there any way to see if it is nginx itself that isn't handling the page requests?by bigjme - How to...
Ok that makes sense, i have changed my shutdown script to this (newline is the taskill) @ECHO OFF start nginx -s quit taskkill /f /im nginx.exe taskkill /f /im php-cgi.exe start apps/mysql/5.6.23/bin/mysqladmin -u root -p shutdown EXIT So that should work. I will leave the settings as they are for now for a few days with the lower opcache size set to see how that works. Thanks for yoby bigjme - How to...
I started the server and managed to make it lock up in a few minutes. I have attached the error files to see if that may help. I have looked at xcache and that doesnt seem to support php 5.6.6 atall and actually seems to not have been updated since september 2014 so seems to have been abandoned. I have also updated my php config with only a 256mb opcache size and have adjusted my nginx confiby bigjme - How to...
So i tried these settings and have left it a few days. My phpmyadmin server config which just is like a normal website is showing the very long response time that other pages were as well. I just get "waiting for ...." responses off the server like it isnt giving a reply but if i load another webpage in a new tab while the other is waiting then i get a reply and the waiting page doesby bigjme - How to...
Ok, I will try those settings when I get home. I have seen rumours and some stats that setting revalidate_freq=0 doesn't make much of an effect on load times. Yes it adds some slight overhead but not a lot by the result graphs I've seen. Also enabling the following line opcache.validate_timestamps Overrides the default "reload ever x seconds" and just checks the timestamp for chaby bigjme - How to...
As another note, if the script takes around 30 seconds to load, the page loads fine (60 second timeout doesn't trigger) The issue with the server responding but not getting any data happens instantly like the php server never gave a reply but nginx thinks it has and just serves nothingby bigjme - How to...
php.ini - http://pastebin.com/SPL14Z83 nginx.conf - http://pastebin.com/E2Jnriga i thought it easier to pastebin it then paste or attach it. Regards, Jamieby bigjme - How to...
Can I just ask a final question? Now I have opcache enabled I am getting some server response issues. Every so often I will get load times of around 35 seconds for a page that usually takes 5ms. And some times it will just say no data received. So the server is responding but nothing is being output to the screen. This seems to occur when opcache does its 60 second cache refresh but it will woby bigjme - How to...
Right now, unless I hit it with about 1000 page views per second it still runs nowhere near 100% cpu. I plan on upgrading soon to a 16 core 4.5ghz cpu so it should handle it easily :-)by bigjme - How to...
I am using the nginx you pointed to, the latest version. It seems to be running 9 instances in total, my CPU is a quad core with hyper-threading (intel e3-1230v2, with 8 worker processes running (didn't go above my theoretical core count) that is with 10 php instances open, set up with the 9001 - 9010 port switchby bigjme - How to...
I think for now i will leave it :) i have just simulated 426,000 clicks per hour to my server (i don't have access to many stress test tools) on a stock wordpress site and it handles it, 100% cpu but it handled it, and used around 200mb ram in its entirity. If i had access to better tools i would test it more but sadly i don't, and as this is just my home server (with no paying users on it ataby bigjme - How to...
So i have just gotten home and enabled opcache with an update every 60 seconds as in the default example. This seems to be working amazing. My own framework has gone from 12ms to 6ms page load (server is on a hdd and network ping is 6ms) drupal install had gone down to 64ms from 186ms wordpress has gone down to 34ms from 176ms joomla has gone from 670ms to between 170ms - 320ms all in allby bigjme - How to...
Because the server will either be on my editing machine or behind an FTP, it will always be overwritten or edited directlyby bigjme - How to...
Thanks again, I will look at how to use this more when I get home. I have been reading through the settings and some shown examples and I have a question you may be able to answer. So I have these 2 settings opcache.revalidate_freq opcache.validate_timestamps They both read to do a similar thing except that one can disable checks and the other can't. Is there a way to set it up so it wilby bigjme - How to...
Can i just say a huge thank you. Changing that also seems to have fixed the issues i was having with drupal instances as well (30 second load with checks now takes 800ms with no errors!!) i noticed on the website that you also have a download for setting up a ram drive. Is that something you recommend for running nginx? initially i had it on my SSD, but have just moved it back to a dedicated rby bigjme - How to...
Thank you, i always meant to use that but never could figure put the difference. reading through the scripts it seems i can use what i have now, but using nginx for windows, changing my start bat file to start a php instance on ports 9001 to 9010, and in the nginx.conf i will only need to set the following, and not both if im reading it correctly fastcgi_pass myLoadBalancer; # or multiple,by bigjme - How to...
Hi everyone, so i am setting up a standalone web server using nginx, php 5.6.6, and mysql. This is on windows, and nothing is a service. It is windows for a reason, but i know linux is better and more preferred. This is currently all working and seems to function fine except for one issue. If i load certain pages (in a test drupal install) the php service or nginx seems to stop entirely.by bigjme - How to...