CPU Usage
7 naročnikov
7 naročnikov
Pozdravljeni.
Kako naredim optimizaciju Joomle ? Ker me je hosting provider obavestil da aktualna različica Joomle presega dovoljene server resurse CPU over 46 %.Velikost Mysql je 47 MB.Naredil sem tole :
1.Cache omogočen
2.Moduli,komponente ter plugini ki so nepotrebni so izbrisani.
3.Znanjšao sam število povezav iz naslovnice.
Pri pregledu MYSQL sem ugotovil ne potrebne tabele,lahko ih pobrišem ?
Lep pozdrav.Sorry zarad moje slovenščine.
10 odgovorov
Če so tabele od Joomle jih ne smeš, če želiš pravilno delovanje. Prav tako ti nebi nič koristlo če izbrišeš tabele saj one ne porabljajo CPU.
Kje imaš hosting, katera stran?
Ce imas razmeroma popularno stran in si pofockal vse izmed resitev, potem je dejstvo predvsem to, da stran ni vec primerna za shared hosting. Pocasi jo bo treba nadgradit na klasicen VPS, cloud VPS ali dedicated, odvisno od tvoje porabe.
Pomoje lahko zacnes na kakem slovenskem (oz. insert language) cloud VPS serverju, kar te pride najceneje in se ga da fino razsirjat po potrebi.
Se ena zadeva, ki je lahko ozko grlo:
Preveri, ce imas na bazi indexe, poglej kateri queryji jih ne uporabljajo in kateri queryji so pocani.
Stran je pr webhostingbuzz in strežnik se nahaja v Angliji.Za enkrat sem zadovoljan saj je Load Averages ispod 0,30 0,37 0,41.Na njem je nameščen CLOUDLINUX 6.3 x86_64 standard in značilnosti strežnika so nasljednje. 4 CPU 16 GB RAM
Tole pa je sporočilo ponudnika spl. gostovanja.
top -u bhsuper -c -d 1 -b -n 120 | grep "^\ [0-9]"
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
595960 bhsuper 20 0 236m 12m 8080 R 6.9 0.1 0:00.07 /usr/bin/php /home/bhsuper/public_html/index.php
595960 bhsuper 20 0 0 0 0 Z 45.6 0.0 0:00.53
<defunct>
595966 bhsuper 20 0 0 0 0 Z 13.9 0.0 0:00.14 [php] <defunct>
595969 bhsuper 20 0 250m 28m 9956 S 19.8 0.2 0:00.20 /usr/bin/php /home/bhsuper/public_html/administrator/index.php
595966 bhsuper 20 0 0 0 0 Z 0.0 0.0 0:00.14 [php] <defunct>
595973 bhsuper 20 0 0 0 0 Z 50.5 0.0 0:00.51 [php] <defunct>
595976 bhsuper 20 0 256m 34m 9.9m R 30.7 0.2 0:00.31 /usr/bin/php /home/bhsuper/public_html/index.php
595987 bhsuper 20 0 0 0 0 Z 51.5 0.0 0:00.52 [php] <defunct>
595993 bhsuper 20 0 235m 12m 7928 R 5.0 0.1 0:00.05 /usr/bin/php /home/bhsuper/public_html/modules/mod_sptab/assets/css/style3.css.php
596015 bhsuper 20 0 249m 26m 9880 R 16.8 0.2 0:00.17 /usr/bin/php /home/bhsuper/public_html/index.php
596017 bhsuper 20 0 257m 35m 9.9m R 46.6 0.2 0:00.47 /usr/bin/php /home/bhsuper/public_html/index.php
596021 bhsuper 20 0 0 0 0 Z 14.9 0.0 0:00.15 [php] <defunct>
596022 bhsuper 20 0 74812 34m 7128 S 5.9 0.2 0:00.06 /usr/local/cpanel/cpanel ./frontend/x3/softaculous/index.live.php
596023 bhsuper 20 0 103m 12m 5972 S 2.0 0.1 0:00.02 /var/cpanel/3rdparty/bin/php ./frontend/x3/softaculous/index.live.php
596035 bhsuper 20 0 256m 34m 9.9m S 39.6 0.2 0:00.40 /usr/bin/php /home/bhsuper/public_html/index.php
596044 bhsuper 20 0 238m 15m 8704 R 6.9 0.1 0:00.07 /usr/bin/php /home/bhsuper/public_html/index.php
596050 bhsuper 20 0 0 0 0 Z 14.9 0.0 0:00.15 [php] <defunct>
596052 bhsuper 20 0 165m 15m 8484 R 13.9 0.1 0:00.14 /usr/bin/php /home/bhsuper/public_html/modules/mod_sptab/assets/css/style3.css.php
596080 bhsuper 20 0 0 0 0 Z 50.7 0.0 0:00.51 [php] <defunct>
596083 bhsuper 20 0 259m 37m 10m D 48.6 0.2 0:00.49 /usr/bin/php /home/bhsuper/public_html/index.php
596086 bhsuper 20 0 0 0 0 Z 52.5 0.0 0:00.53 [php] <defunct>
596091 bhsuper 20 0 235m 12m 7932 R 5.0 0.1 0:00.05 /usr/bin/php /home/bhsuper/public_html/index.php
596093 bhsuper 20 0 235m 11m 7924 R 3.0 0.1 0:00.03 /usr/bin/php /home/bhsuper/public_html/modules/mod_sptab/assets/css/style3.css.php
596111 bhsuper 20 0 256m 34m 9.9m R 38.8 0.2 0:00.39 /usr/bin/php /home/bhsuper/public_html/index.php
596114 bhsuper 20 0 236m 78m 64m R 49.5 0.5 0:00.50 /usr/bin/php /home/bhsuper/public_html/index.php
596118 bhsuper 20 0 256m 34m 9.9m R 28.8 0.2 0:00.29 /usr/bin/php /home/bhsuper/public_html/index.php
596152 bhsuper 20 0 0 0 0 Z 13.9 0.0 0:00.14 [php] <defunct>
596152 bhsuper 20 0 0 0 0 Z 0.0 0.0 0:00.14 [php] <defunct>
596155 bhsuper 20 0 0 0 0 Z 48.6 0.0 0:00.49 [php] <defunct>
596155 bhsuper 20 0 0 0 0 Z 0.0 0.0 0:00.49 [php] <defunct>
596158 bhsuper 20 0 256m 34m 9.9m R 29.7 0.2 0:00.30 /usr/bin/php /home/bhsuper/public_html/index.php
596161 bhsuper 20 0 334m 69m 52m R 33.7 0.4 0:00.34 /usr/bin/php /home/bhsuper/public_html/administrator/index.php
596163 bhsuper 20 0 0 0 0 Z 51.5 0.0 0:00.52 [php] <defunct>
596174 bhsuper 20 0 257m 35m 9.9m R 32.7 0.2 0:00.33 /usr/bin/php /home/bhsuper/public_html/index.php
596185 bhsuper 20 0 0 0 0 Z 13.9 0.0 0:00.14 [php] <defunct>
596186 bhsuper 20 0 0 0 0 Z 51.5 0.0 0:00.52 [php] <defunct>
596188 bhsuper 20 0 229m 34m 27m R 9.9 0.2 0:00.10 /usr/bin/php /home/bhsuper/public_html/modules/mod_sptab/assets/css/style3.css.php
596189 bhsuper 20 0 256m 34m 9.9m R 28.8 0.2 0:00.29 /usr/bin/php /home/bhsuper/public_html/index.php
596189 bhsuper 20 0 0 0 0 Z 19.8 0.0 0:00.49 [php] <defunct>
596211 bhsuper 20 0 247m 25m 9900 S 16.8 0.2 0:00.17 /usr/bin/php /home/bhsuper/public_html/index.php
596211 bhsuper 20 0 237m 46m 31m R 65.4 0.3 0:00.83 /usr/bin/php /home/bhsuper/public_html/index.php
===============================================================================================================
As you can see, the load is mainly caused by your 3rd party scripts/software. So it's recommended for you to investigate this issue(s). If necessary, please contact developer as we don't provide debugging/analyzing of 3rd party scripts/software.
Load je zagotovo majhen če je dober strežnik ampak to je shared hosting in nihče ne bo dovolil da porabljaš tretjino strežnika z eno spletno stranjo. Mislim da druge kot VPS/Dedicated ne bo..
urbe: 0,30 load ne pomeni, da uporabljaš tretjino strežnika.
eharbas: Moj predlog je, da tam kjer gostuješ ponudiš dvojno plačilo gostovanja, da ti malo bolj požrešno stran pustijo gostovat.
Živjo.
Koliko pa obiska imaš na spletni strani obiska?
Imaš kakšen iskalnik? Preveri porabo MySQL ter kateri SQL stavki se izvajajo.