Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ASTRAPI Posted June 2, 2016 Posted June 2, 2016 Quote Is there a way to check if you have Op Cache and Memcache installed on your VPS? Both are the best options to use and to verify if they are installed you can run from ssh: php -v and you should see a line related to Zend opcache: with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies and for memcached php --ri memcached and you should see a line like: memcached support => enabled Keep in mind that this is for php support and you will need to install memcached on the system also using for Centos 7 : yum -y install memcached You can read more info about them and how they work on the official sites Enjoy !
ABGenc Posted June 2, 2016 Author Posted June 2, 2016 Well I have a problem. The read operations are really fast with current config but when I try to write something ( post an answer, post a new topic ) it takes longer. And added to that sometimes I get the following error (when the system tries to make REPLACE INTO, INSERT INTO ) "MySQL server has gone away" Although the server doesnt actually is not gone I suspect a timeout or a bottleneck occurs. Any specific area that I should look into ?
Zen Geek Posted June 2, 2016 Posted June 2, 2016 9 hours ago, ABGenc said: Actually I have WHM/cPanel on VPS and it has modules that I can check if they are installed or not. Opcache is for PHP caching as far as I get but memcache is for SQL which I have not implemented yet. I test the performance differences using following site ; http://www.webpagetest.org/ Memcache didn't do anything for me, so I removed it. Host recommended OPcache over memcache anyway. My host seems to have narrowed it down to the overuse for SQL Temporary tables
ASTRAPI Posted June 2, 2016 Posted June 2, 2016 Memcache don't do anything for IPB 3 but for IPB 4 is doing a lot They do different things Zend opcache and Memcache and if you use IPB 4 is good to use both. If you are on IPB 3 then zend opcache will be fine alone
The Old Man Posted June 2, 2016 Posted June 2, 2016 Thanks Astrapi! Looks like I need to get to grips with SSH first!
ayuki Posted June 4, 2016 Posted June 4, 2016 memcache is stop in 2012 for php latest version is for php 5.4
ASTRAPI Posted June 5, 2016 Posted June 5, 2016 Memcached https://memcached.org/ Latest release about 6 months ago ...
ABGenc Posted June 6, 2016 Author Posted June 6, 2016 On 02.06.2016 at 5:37 PM, ABGenc said: Well I have a problem. The read operations are really fast with current config but when I try to write something ( post an answer, post a new topic ) it takes longer. And added to that sometimes I get the following error (when the system tries to make REPLACE INTO, INSERT INTO ) "MySQL server has gone away" Although the server doesnt actually is not gone I suspect a timeout or a bottleneck occurs. Any specific area that I should look into ? Thanks for the responses , I really appreciate I have searched the error and found out that it was caused by two parameters ; wait_timeout interactive_timeout After removing them ( which meant they were all set to default values which are both 28800 ) the error has gone away. Why this values set as around 30s caused this error is still a misery. The other thing is that I still have a small issue for posting and replying actions. They are still not as fast ( or close ) as reading the posts or making searchs. Any idea ?
ayuki Posted June 7, 2016 Posted June 7, 2016 On 05/06/2016 at 9:43 PM, ASTRAPI said: Memcached https://memcached.org/ Latest release about 6 months ago ... not hardware but module php use mod in apache for work
ayuki Posted June 12, 2016 Posted June 12, 2016 i reduce my first byte time to 260ms but the transition homepage to forum is slow in this forum too it's normal?
ASTRAPI Posted June 12, 2016 Posted June 12, 2016 TTFB will not solve any forum performance issues . You may start communicating faster but after that you should have a fast connection and close to the Geo location of your users and also optimize server tcp and kernel related settings plus caching mechanisms and a lot more....
TDBF Posted June 13, 2016 Posted June 13, 2016 On 02/06/2016 at 8:05 PM, Zen Geek said: Memcache didn't do anything for me, so I removed it. Host recommended OPcache over memcache anyway. My host seems to have narrowed it down to the overuse for SQL Temporary tables Opcache and Memcache are not the same. Use Opcache, Memcache and mod_pagespeed and you will notice a big speed increase with IPB4.
ABGenc Posted June 13, 2016 Author Posted June 13, 2016 Just now, TDBF said: Opcache and Memcache are not the same. Use Opcache, Memcache and mod_pagespeed and you will notice a big speed increase with IPB4. Wish we could install Memcache on Apache 2.4. That is another issue.
TDBF Posted June 13, 2016 Posted June 13, 2016 8 minutes ago, ABGenc said: Wish we could install Memcache on Apache 2.4. That is another issue. I have Memcache installed on Apache 2.4. It is doable. I have WHM/Cpanel, but I had to play around to get it installed. When I installed I had to make sure I installed it without a dependency check (now I'm thinking about that, this could have been mod_pagespeed I had an issue with on Apache2.4). This is the speeds I am getting at the moment. https://tools.pingdom.com/#!/euYQVV/http://forum.thedarkblues.co.uk However, we plan on updating to PHP 7 with fpm using MPM event.
TDBF Posted June 13, 2016 Posted June 13, 2016 If anyone wants to know how to install mod_pagespeed on Apache 2.4, check this on how it is done.
ABGenc Posted June 13, 2016 Author Posted June 13, 2016 7 minutes ago, TDBF said: I have Memcache installed on Apache 2.4. It is doable. I have WHM/Cpanel, but I had to play around to get it installed. When I installed I had to make sure I installed it without a dependency check. This is the speeds I am getting at the moment. https://tools.pingdom.com/#!/euYQVV/http://forum.thedarkblues.co.uk However, we plan on updating to PHP 7 with fpm using MPM event. I am using WHM/Cpanel as well. I would appreciate if you could give a few hints or a link .. Edit : Received the answer from the post above, Thanks
TDBF Posted June 13, 2016 Posted June 13, 2016 On 02/06/2016 at 10:09 AM, ABGenc said: Actually I have WHM/cPanel on VPS and it has modules that I can check if they are installed or not. Opcache is for PHP caching as far as I get but memcache is for SQL which I have not implemented yet. I test the performance differences using following site ; http://www.webpagetest.org/ http://www.tecmint.com/install-memcached-caching-server-on-rhel-centos-fedora/ 5 minutes ago, ABGenc said: I am using WHM/Cpanel as well. I would appreciate if you could give a few hints or a link .. Edit : Received the answer from the post above, Thanks You should be able to install memcached and memcache straight from WHM. Under the software tab, modules installers and Perl module in the software tab. Just do a search for them both. Install memcached first and then then memcache afterwards.
ABGenc Posted June 13, 2016 Author Posted June 13, 2016 5 minutes ago, TDBF said: http://www.tecmint.com/install-memcached-caching-server-on-rhel-centos-fedora/ You should be able to install memcached and memcache straight from WHM. Under the software tab, modules installers and Perl module in the software tab. Just do a search for them both. Install memcached first and then then memcache afterwards. Memcache is not supported on Apache 2.4 ..
TDBF Posted June 13, 2016 Posted June 13, 2016 Install instructions for Memcached on WHM/Cpanel. https://gist.github.com/irazasyed/6066507 Then someone needs to tell me that, because I have Memcache installed on Apache 2.4, PHP 5.6 with MariaDB.
ABGenc Posted June 13, 2016 Author Posted June 13, 2016 @TDBF now that opcache and mod_pagespeed is installed I dont see much of a difference. Well still struggling installing memcahced on Apache 2.4 though
Recommended Posts
Archived
This topic is now archived and is closed to further replies.