Soapa Posted October 17, 2013 Share Posted October 17, 2013 Hi there. Please send this mail to somebody who knows what to do with it. I made some parts bold.Hello,I have looked into this and I must agree that a VPS may improve the performance of this website. I must stress the use of "may" in this case, as there are many factors which would affect the performance of a complex application like PrestaShop. I was able to determine that the "first byte response time" is being primarily delayed by the application PS itself (parsing and executing PHP and database queries) rather than heavy web server load.Unfortunately, very complex shop software such as Magento and PrestaShop do tend to fare much better on a VPS due to the limitations in place on our shared servers. These applications cannot make use of advanced caching features since our shared servers are optimized for hosting many different websites rather than providing the specific features that could enable better performance.However, a VPS is typically not considered a direct upgrade from a shared hosting plan. With a shared server, limitations are put in place to ensure that any one user cannot negatively affect performance for the entire server. With a VPS, these limitations are not in place, but the total available memory and disk space, as well as processor speed, is lower. On the other hand, with a VPS, PHP and the Apache web server can be custom-compiled based on your requirements, and alternative PHP handlers such as FastCGI can be used.Additional factors to consider are how much traffic the website receives and how much data is stored in the database. As an example, Magento stores data in the database in a very flexible way, but at the cost of efficiency, and typically makes heavy use of caching to achieve high performance. I cannot make this same assessment about PrestaShop, as I simply do not know the software well enough. Another factor which can negatively affect performance is making heavy use of .htaccess files. The Apache web server reads these files from the disk for each request, and if many requests are performed to directories with .htaccess files, this will negatively affect performance.In my opinion, the single best way to improve performance for a resource-intensive application like this is to generate static HTML content and use Apache mod_rewrite rules to serve this content when available. This method completely avoids spawning, parsing, and executing PHP processes, and generally results in a drastic increase in page load time when the bottleneck is being caused by the application. With PrestaShop, this can be partially accomplished by enabling filesystem caching, although as far as I am aware this does not automatically create mod_rewrite rules.I hope this information has been useful, and I know it can be frustrating that there is no simple, straightforward way to just improve site performance. If you have any additional questions or concerns, please let us know and we will be more than happy to help you!Sincerely, Alex M. Linux Administrator HostGator.com LLC http://support.hostgator.com So far so good..Now. 1. My site is slow because of the combination of Prestashop and a shared host plan? Can the PrestaShop team tell me if an upgrade to a VPS would solve the First Byte Response Time? 2. I found 38 .htaccess files in my /public_html/ . Is that much? Too much? What to do? Can I combine? Should I ask my theme-developer? 3. How to generate static HTML content? Ho to use Apache mod_rewrite rules to serve this content when available. Line of code, module, ?? If it is hard it does work, I am willing to pay you. 4.How to enable file-system caching?5. Do you have other remarks? Thank you very much for reading. Thank you Link to comment Share on other sites More sharing options...
Soapa Posted October 27, 2013 Author Share Posted October 27, 2013 Can anybody confirm that the site can be slow because of how PrestaShop handles the server? Link to comment Share on other sites More sharing options...
Pressed0024 Posted November 18, 2013 Share Posted November 18, 2013 The insights from Host Gator is quite useful. I;m still interested to hear if anyone can confirm if VPS will bring down First Btye Response Time. If so, what exactly did the VPS do to help? Purely CPU? Purely disk i/o (SSD)? Ability to use APC (or other opcode)? Ability to use Varnish? I know this is a "your miles may vary" kinda question but had like to hear from others who are willing to share their experience. Meanwhile, here is something I use to create cached HTML. Useful if you are in Shared Hosting where you are limited to many server configs: http://www.prestashop.com/forums/topic/281654-module-page-cache-speedup-your-shop/ Link to comment Share on other sites More sharing options...
HavanA Posted March 5, 2014 Share Posted March 5, 2014 <bump> Interesting topic. I also would like to know what others had experienced when upgrading to VPS. I recently moved to a VPS and added APC, Nginx and Varnish. The ttfb did improve, but still there are issues because it should load faster. I learned from Unixy.net that my Prestashop with lots of categories (>1500) needs lots of RAM and my VPS from openvz.io has 5GB, but it isn't using it efficiently yet, I guess. And with such RAM, my guess is that Varnish could use more of it to speed things up even more. Since an extra code was written to my htaccess I noticed a slightly slower loading time and therefore I find the remarks of Hostgator interesting; I need to further investigate that also. If anyone would like to share their improvements (and recomendations) on ttfb/speed when upgraded to VPS, I think there are several merchants who are curious also. Please tell your TTFB (time to first byte) to get an overall impression of what other Prestashop owners have and what kind of hosting/resources you use and how big your prestashop is in terms of number of products and categories. Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2014 Share Posted December 10, 2014 Hi! I'm interested also in improving the TTFB as it is the half of the time I spent when loading my website: http://nutri-cosmetica.com In my case it is a shared hosting placed in SPAIN, im happy with the relation between Price/performance however a bit of improvement is always welcome The hosting offers prestashop shared dedicated servers so they are shared but only for prestashop customers. I have full Access to modify the htacces files, do you think that I can improve the performance of TTFB in any way? Thanks Link to comment Share on other sites More sharing options...
the.rampage.rado Posted December 10, 2014 Share Posted December 10, 2014 @Antakarana - I think your load time is great. Btw very good implementation of Warehouse. I also use this theme but in a more basic design. 1 Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2014 Share Posted December 10, 2014 (edited) On 12/10/2014 at 2:30 PM, the.rampage.rado said: @Antakarana - I think your load time is great. Btw very good implementation of Warehouse. I also use this theme but in a more basic design. Thanks for your comments When using pingdomtools I see this: I think that maybe there is some option to improve this load times. I know that the server from pingdom tool is placed at amsterdam and my server is at Spain... but maybe there is some way to get a better response time. Edited December 10, 2014 by Antakarana (see edit history) Link to comment Share on other sites More sharing options...
the.rampage.rado Posted December 10, 2014 Share Posted December 10, 2014 My shared hositng is in NED and I'm testing with the Amsterdam server and it's pretty much the same probably 200 ms less. 1 Link to comment Share on other sites More sharing options...
Antakarana Posted December 10, 2014 Share Posted December 10, 2014 On 12/10/2014 at 3:22 PM, the.rampage.rado said: My shared hositng is in NED and I'm testing with the Amsterdam server and it's pretty much the same probably 200 ms less. OK thanks for the info. I feel better now... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now