Jump to content

Server Move - Optimization - Time to First Byte


Recommended Posts

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 !

Link to comment
Share on other sites

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 ?

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ^_^

Link to comment
Share on other sites

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 :D 

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 ? 

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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).:unsure:

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.

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ..

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...