Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

loading speed of webpage slowed down after https enabled, how to improve?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
19 posts
  • 1
  • 2
  • Next
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by baijianpeng » Wed Feb 03, 2016 9:25 am

I have a very small budget so I bought a simple VPS with following hardware specs:

CPU: 1 core
Momory: 2GB
bandwidth: 1MB
OS: CentOS 7.0 64-bit

I installed VestaCP as my web admin panel.

After enabled https for my entire website, I noticed that the loading speed of webpages slowed down than before.

You know that loading speed is an important factor that affects SEO and user experience. So I want to improve this. I want to make the pages load faster. But I don't know what should I upgrade first?

Sorry I can not upgrade every facet of my VPS to a higher level. I only want to upgrade the hardware which is the "shortest board", which is a bottleneck.

Should I upgrade CPU? or add more memory? or entend bandwidth? which one will do the biggest affection on loading speed of webpages visited by HTTPS?

Thank you.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by skurudo » Wed Feb 03, 2016 9:40 am

https uses more resources because the processing of the data requires additional capacity (roughly speaking, your webserver need to encrypt data). it would be logical to look at the load on the server: CPU, memory.

Try to use spdy or http/2 (if you have nginx 1.95 or newer).
https://en.wikipedia.org/wiki/SPDY

Always good to use nginx cache.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by baijianpeng » Wed Feb 03, 2016 12:46 pm

My nginx was installed by VestaCP itself. I just checked the version :
# nginx -v
nginx version: nginx/1.8.0
It seems that I need to upgrade my nginx to v1.95 to use SPDY or http/2.

Do you mean that I don't need to upgrade hardwares of my VPS? Since this is a "cloud VPS", the hardware can be easily upgraded without to move data. Just more money to do it.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by skurudo » Wed Feb 03, 2016 12:57 pm

baijianpeng wrote:My nginx was installed by VestaCP itself.
VestaCP installed soft, but source of this soft from OS repo.
baijianpeng wrote:It seems that I need to upgrade my nginx to v1.95 to use SPDY or http/2.
http/2 - yes, needs upgrade
SPDY - no, there's no need

Nginx support spdy since 2012 and from version 1.3.x
baijianpeng wrote:Do you mean that I don't need to upgrade hardwares of my VPS?
Yes, you should first try to optimize your server and than upgrade if needed.
Tests need to do. ;-)
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by baijianpeng » Thu Feb 04, 2016 2:28 pm

skurudo wrote: http/2 - yes, needs upgrade
SPDY - no, there's no need
Great!

Since my nginx version is 1.8.0, which already have built-in SPDY 3.1 support, I decided to enable it.

Well, it is very easy! I followed this article to enable it:

https://www.scalescale.com/tips/nginx/h ... -on-nginx/

In fact, I don't to need to install them, just a little more configure In snginx.conf:
Replace:

listen x.x.x.x:443;

to:

listen x.x.x.x:443 ssl spdy;
Now my website has SPDY enabled!

Do you think my webpage loading speed will be improved?

Thank you.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by skurudo » Sat Feb 06, 2016 7:45 pm

baijianpeng wrote: Do you think my webpage loading speed will be improved?
Try to take some test or read about benchmark:
https://blog.httpwatch.com/2015/01/16/a ... nt-page-1/

(your site to far from me and it's slow for me, but main reason - bad channel between my uplink and your provider)
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by baijianpeng » Mon Feb 08, 2016 5:27 pm

I visited my website from the same computer both before and after SPDY eanbled. It seems that very limited improved.

So I still think maybe I need to upgrade some hardware of my VPS.

However, I don't know which is the bottle neck, the CPU, or memory, or bandwidth?

How to determine what is the bottle neck that limits the webpage speed of my website?

Thank you.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by pandabb » Mon Feb 08, 2016 6:25 pm

What is your website? i'll test it
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by baijianpeng » Tue Feb 09, 2016 4:38 am

My website URL is: http://www.joomlagate.com
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: loading speed of webpage slowed down after https enabled, how to improve?
  • Quote

Post by pandabb » Tue Feb 09, 2016 6:36 am

it loads 5+sec to me

https://gtmetrix.com/reports/www.joomlagate.com/

Can you bencmark your vps so we can see your vps speed and etc.

SSH: wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
Top


Post Reply
  • Print view

19 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password