We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
loading speed of webpage slowed down after https enabled, how to improve?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: loading speed of webpage slowed down after https enabled, how to improve?
I ran that script twice, the first time was interrupted by remote server:
and the second time running was halted at the last line:
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:
Does this means that I need to do some work on ClamAV software?
Thank you.
[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:
Does this means that I need to do some work on ClamAV software?
Thank you.
Re: loading speed of webpage slowed down after https enabled, how to improve?
http://bugs.vestacp.com/issues/122baijianpeng wrote: Does this means that I need to do some work on ClamAV software?
There is links to topics and some temporary solution
Re: loading speed of webpage slowed down after https enabled, how to improve?
Which nginx template are you using? Domain > edit
cache
hosting
default
hile.
cache
hosting
default
hile.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: loading speed of webpage slowed down after https enabled, how to improve?
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.
My nginx template is: Default.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: loading speed of webpage slowed down after https enabled, how to improve?
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 ~]#
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: loading speed of webpage slowed down after https enabled, how to improve?
Ok, I created that directory manually and changed the group/owner and then restarted 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.
Code: Select all
# mkdir clamav
# chown clam.clam /var/run/clamav
# systemctl restart clamd
It seems that the CPU occupation by ClamAV problem solved?
But the webpage loading speed seems not improved.
Re: loading speed of webpage slowed down after https enabled, how to improve?
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:
I'm running CentOS 7 and a fresh install of VestaCP
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/
Re: loading speed of webpage slowed down after https enabled, how to improve?
Thanks, man.jtwhite93 wrote:I just wanted to add that I also had this issue (unrelated to https) but with ClamAV eating all the CPU.
We have this bug - https://bugs.vestacp.com/issues/122
Something changed in clamav, I'm sure, we'll fix this.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: loading speed of webpage slowed down after https enabled, how to improve?
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.
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.