Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
marklcfc Posted September 6, 2017 Posted September 6, 2017 I'm interested to hear what is recommended. Currently using php 7.1, set to dso, using php-fpm and opcache. my mod_expires looks like this without the ExpiresDefault "now plus 1 week" line as it seems to clash with opcache (pages are out of date, users logged out until page is refreshed), still not to find much more info on this. Apache 2.4 PHP Speed is ok but it could be faster with each click. Any advice welcome
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 On the above it will be good if you increase the Max keep alive requests at least at the default value or even better at 200 - 300 .... Also for the memory limit it will be good if you have free ram to increase it at values of 512 or even 768 MB.... Don't know what kind of server do you have Ram, Cpu and how much you use and how much is free or how much traffic do you get and so on.... so my recommendations are for testing only... The issue for the opcache is another story .....
marklcfc Posted September 6, 2017 Author Posted September 6, 2017 Yes I thought keep-alive was a bit low, I think my hosts set it as that. I can get big surges in traffic, would increasing keep-alive cause issues if I had say 1000 online. I have 64gb ram, 24gb currently used. what benefits are from upping the memory limit? Processor is Intel(R) Xeon(R) CPU X5550 @ 2.67GHz Any idea about the opcache issue? Had it for a year anytime I add expiresdefault it causes that issue
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 Quote I have 64gb ram, what benefits are from upping the memory limit? Better performance Quote Any idea about the opcache issue? Had it for a year anytime I add expiresdefault it causes that issue As i have many years to use such configuration my recommendation may not be accurate but i remember it was related to: PHP_FCGI_CHILDREN=1 PHP_FCGI_MAX_REQUESTS=10000 The children was needed to be 1 otherwise a lot of issues like yours waiting at the corner But again that info may not be accurate at all for your case !
marklcfc Posted September 6, 2017 Author Posted September 6, 2017 37 minutes ago, ASTRAPI said: The children was must to be 1 otherwise a lot of issues like yours waiting at the corner Does that apply to php-fpm as its running that.
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 No.... For performance you can use something like: pm = dynamic pm.max_children = 50 pm.start_servers = 10 pm.min_spare_servers = 5 pm.max_spare_servers = 49 pm.max_requests = 1000 You may need to test some values if you want: !!!First backup your existing values as you may need to revert them !!! (Use php --ini command from ssh to locate the zendopcache config file or try to locate it on any way that cpanel provide for it....) opcache.memory_consumption=80 opcache.interned_strings_buffer=8 opcache.max_wasted_percentage=5 opcache.max_accelerated_files=24000 opcache.revalidate_freq=180 opcache.fast_shutdown=0 opcache.enable_cli=0 opcache.save_comments=1 opcache.enable_file_override=1 opcache.validate_timestamps=1 opcache.huge_code_pages=1 Then save and restart Phpfpm and check Other than that i am not able to help sorry
marklcfc Posted September 6, 2017 Author Posted September 6, 2017 I tend to leave it to my host to edit stuff as if it goes wrong my site will be down which I can't risk. These are my current opcache settings. opcache.enable_cli = 1 opcache.fast_shutdown = 1 opcache.interned_strings_buffer = 8 opcache.max_accelerated_files = 4000 opcache.memory_consumption = 300 opcache.revalidate_freq = 60 Should I ask to change them to yours?
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 Can't see anything bad on them related to your issue so keep yours
marklcfc Posted September 6, 2017 Author Posted September 6, 2017 Ok, main problem is its quite sluggish when logged in. When I view other forums they seem more snappier clicking through the site.
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 That's related to server performance and optimization of system network/kernel/apache/phpfpm/Mysql e.t.c Another thing to check is if you have many addons loaded on the forum and if any of them cause a lot of delay....
marklcfc Posted September 6, 2017 Author Posted September 6, 2017 1 minute ago, ASTRAPI said: That's related to server performance and optimization of system network/kernel/apache/phpfpm/Mysql e.t.c Another thing to check is if you have many addons loaded on the forum and if any of them cause a lot of delay.... I'm clueless as to what I should be looking at hence the topic and screenshots of php/apache, I can provide any other details.. I don't have many hooks/addons though.
ASTRAPI Posted September 6, 2017 Posted September 6, 2017 You may need to post all your info (exact server specifications, exact software that you use and the configuration of them, and so on) here and wait for some help from other users as i offer optimization as a service and can't help further. Thank you
marklcfc Posted September 7, 2017 Author Posted September 7, 2017 @ASTRAPI I asked about the keep alive requests and was told this "You will find if this limit was increased your system wouldn't be able to move onto handling a new connection as quickly due to the way your website is poorly optimized for connection requests" I get told this a lot about the software from my hosts? Is there any truth in that @Charles
Management Charles Posted September 7, 2017 Management Posted September 7, 2017 No idea what they mean by poorly optimized for connection requests. Sounds like your host is artificially limiting your service.
-FP Posted September 7, 2017 Posted September 7, 2017 2 hours ago, marklcfc said: "You will find if this limit was increased your system wouldn't be able to move onto handling a new connection as quickly due to the way your website is poorly optimized for connection requests" It's easier to blame others
ASTRAPI Posted September 7, 2017 Posted September 7, 2017 Find a new host :-) Try IPB services or send me a PM and I will find you a better one and cheaper also !!!!
ptprog Posted September 14, 2017 Posted September 14, 2017 On 07/09/2017 at 12:12 PM, Charles said: No idea what they mean by poorly optimized for connection requests. Sounds like your host is artificially limiting your service. IPS adds the header "Connection: close" in the PHP code (file "system/Output/Output.php"), which disables the KeepAlive. So unless I missed something in the tests I made a while ago, the host's statement seems reasonable to me. BTW, I asked here if there was any reason to explicitly send that header through PHP.
sudo Posted September 14, 2017 Posted September 14, 2017 On 9/6/2017 at 7:30 PM, ASTRAPI said: Also for the memory limit it will be good if you have free ram to increase it at values of 512 or even 768 MB.... Didnt think the memory_limit would increase performance as its just a script cap on execution not caching unless it does more?
ASTRAPI Posted September 14, 2017 Posted September 14, 2017 When a script starts it may need 512 ram to run the task and you will get limited if you have 256MB and that will cause a delay that's why i recommend to use something higher.... It doesn't mean that opening a page will load faster but running scripts like tasks or any long running or in general scripts that needs more ram it will help
Recommended Posts
Archived
This topic is now archived and is closed to further replies.