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
  • Previous
  • 1
  • 2
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 11:08 am

I ran that script twice, the first time was interrupted by remote server:
[root@localhost tmp]# wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
Benchmark started on Tue Feb 9 17:59:51 CST 2016
Full benchmark log: /root/bench.log

System Info
-----------
Processor : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
CPU Cores : 1
Frequency : 2494.224 MHz
Memory : 1839 MB
Swap : MB
Uptime : 5 days, 21:17,

OS : \S
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-327.3.1.el7.x86_64
Hostname : localhost


Speedtest (IPv4 only)
---------------------
Your public IPv4 is 120.27.137.71

Location Provider Speed
CDN Cachefly

Atlanta, GA, US Coloat
Dallas, TX, US Softlayer 5.56MB/s

Connection closed by foreign host.

Disconnected from remote host at 18:01:07.

Type `help' to learn how to use Xshell prompt.

and the second time running was halted at the last line:
[root@localhost tmp]# wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
Benchmark started on Tue Feb 9 18:02:39 CST 2016
Full benchmark log: /root/bench.log

System Info
-----------
Processor : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
CPU Cores : 1
Frequency : 2494.224 MHz
Memory : 1839 MB
Swap : MB
Uptime : 5 days, 21:19,

OS : \S
Arch : x86_64 (64 Bit)
Kernel : 3.10.0-327.3.1.el7.x86_64
Hostname : localhost


Speedtest (IPv4 only)
---------------------
Your public IPv4 is 120.27.137.71

Location Provider Speed
CDN Cachefly 5.63MB/s

Atlanta, GA, US Coloat 3.82MB/s
Dallas, TX, US Softlayer 4.12MB/s
Seattle, WA, US Softlayer 5.48MB/s

It seems that this script can not help me to find the bottle neck.

Then I ran "top" command, the result shows that "clamd" was using 99% CPU! Though this number alters frequently, but always very high:

Image

Does this means that I need to do some work on ClamAV software?

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 » Tue Feb 09, 2016 11:56 am

baijianpeng wrote: Does this means that I need to do some work on ClamAV software?
http://bugs.vestacp.com/issues/122
There is links to topics and some temporary solution
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 12:41 pm

Which nginx template are you using? Domain > edit

cache
hosting
default

hile.
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 10, 2016 12:38 am

I will try to check and change the group and owner of that directory. I know nearly nothing about Linux, so I need to copy some command and paste into my Xshell window.

My nginx template is: Default.
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 10, 2016 12:45 am

I found that command but the command can not find that directory, there is no such a directory named "clamav", so strange!

Code: Select all

[root@localhost ~]# chown clam.clam /var/run/clamav
chown: cannot access ‘/var/run/clamav’: No such file or directory
[root@localhost ~]# 
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 10, 2016 12:58 am

Ok, I created that directory manually and changed the group/owner and then restarted clamd:

Code: Select all

# mkdir clamav
# chown clam.clam /var/run/clamav
# systemctl restart clamd
Now I check with "top" command, the "clamd" is not even in the list! I watched the list refreshed for almost 30 seconds, the highest number of CPU load is 10% .

It seems that the CPU occupation by ClamAV problem solved?

But the webpage loading speed seems not improved.
Top

jtwhite93
Posts: 2
Joined: Thu Feb 11, 2016 1:59 am

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

Post by jtwhite93 » Thu Feb 11, 2016 2:15 am

I just wanted to add that I also had this issue (unrelated to https) but with ClamAV eating all the CPU.

In my case the directory was there, it just was not owned by the proper group/user.

Immediately after running the below command the issue was resolved:

Code: Select all

chown clam:mail /var/run/clamav/
I'm running CentOS 7 and a fresh install of VestaCP
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 » Tue Feb 16, 2016 12:41 pm

jtwhite93 wrote:I just wanted to add that I also had this issue (unrelated to https) but with ClamAV eating all the CPU.
Thanks, man.
We have this bug - https://bugs.vestacp.com/issues/122
Something changed in clamav, I'm sure, we'll fix this.
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 Mar 02, 2016 1:50 pm

Today I noticed a weird thing: the /var/run/clamav directory on my CentOS 7 was disappear and my CPU usage roar up to 99% !

Then I had to manually create (mkdir) that folder again and assign owner and group to it again.

But, the point is: Why this folder was completely gone? Someone had attacked my server and deleted it ? I have no idea.
Top


Post Reply
  • Print view

19 posts
  • Previous
  • 1
  • 2

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