Analiza obciążenia i czasu generowania

Założony przez  meto.

lukasamd napisał(a):Jeżeli hosting nie dawał Ci znać, że za bardzo obciążasz, to wina może należeć do kogoś innego.
No właśnie nie nie dawał a teraz nagle o...
Generated in 0.1734650 seconds (63.84% PHP / 36.16% MySQL)
SQL Queries: 42 / Global Parsing Time: 0.0903471 / Memory Usage: 7.75 MB
PHP version: 5.4.19 / Server Load: Nieznany / GZip Compression: Disabled

http://eu-trans.cba.pl/index.php

MyBB Debug Information
Page Generation
Page Generation Statistics
Page Generation Time:     0.39451694488525 seconds     No. DB Queries:     42
PHP Processing Time:     0.1870277 seconds (47.41%)     DB Processing Time:     0.2074893 seconds (52.59%)
Extensions Used:     mysqli, xml     Global.php Processing Time:     0.1658819 seconds
PHP Version:     5.4.19     Server Load:     Nieznany
GZip Encoding Status:     Disabled     No. Templates Used:     69 (69 Cached / 1 Manually Loaded)
Memory Usage:     7.75 MB (8126464 bytes)     Memory Limit:     70M
Database Connections (1 Total)
[READ] Wojtas5@mysql.cba.pl (Connected in 0s)

Database Queries (42 Total)
#1 - Write Query
SET NAMES 'utf8'
Query Time: 0.00039005279541016

#2 - Select Query
SELECT title,cache FROM mybb_datacache
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_datacache     ALL                     41     
Query Time: 0.0029761791229248

#3 - Select Query
SELECT u.*, f.* FROM mybb_users u LEFT JOIN mybb_userfields f ON (f.ufid=u.uid) WHERE u.uid='1' LIMIT 1
table     type     possible_keys     key     key_len     ref     rows     Extra
u     const     PRIMARY     PRIMARY     4     const     1     
f     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.063333988189697

#4 - Write Query
DELETE FROM mybb_sessions WHERE uid='1'
Query Time: 0.0030918121337891

#5 - Write Query
REPLACE INTO mybb_sessions SET `uid`='1',`sid`='002202841559bb06c7b7987aad594042',`time`='1377278540',`ip`='83.6.88.140',`location`='/index.php?debug=1',`useragent`='Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0',`location1`='0',`location2`='0',`nopermission`='0'
Query Time: 0.0080380439758301

#6 - Select Query
SELECT name, tid, properties, stylesheets FROM mybb_themes WHERE tid='5' LIMIT 1
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_themes     const     PRIMARY     PRIMARY     2     const     1     
Query Time: 0.002716064453125

#7 - Select Query
SELECT title,template FROM mybb_templates WHERE title IN ('' ,'index' ,'index_whosonline' ,'index_whosonline_memberbit' ,'forumbit_depth1_cat' ,'forumbit_depth1_forum' ,'forumbit_depth2_cat' ,'forumbit_depth2_forum' ,'forumbit_depth1_forum_lastpost' ,'forumbit_depth2_forum_lastpost' ,'forumbit_moderators' ,'forumbit_subforums' ,'index_birthdays_birthday' ,'index_birthdays' ,'index_loginform' ,'index_logoutlink' ,'index_stats' ,'forumbit_depth3' ,'forumbit_depth3_statusicon' ,'index_boardstats' ,'thanks_postbit_count' ,'prostats' ,'prostats_readstate_icon' ,'prostats_newmembers' ,'prostats_newmembers_row' ,'prostats_topposters' ,'prostats_topposters_row' ,'prostats_topreferrers' ,'prostats_topreferrers_row' ,'prostats_mostthanks' ,'prostats_mostthanks_row' ,'prostats_newestposts' ,'prostats_newestposts_row' ,'prostats_newestposts_specialchar' ,'prostats_mostreplies' ,'prostats_mostreplies_row' ,'prostats_mostviews' ,'prostats_mostviews_row' ,'prostats_topdownloads' ,'prostats_topdownloads_row' ,'prostats_mostreputation' ,'prostats_mostreputation_row' ,'prostats_message' ,'prostats_onerowextra' ,'prostats_tworowextra' ,'headerinclude' ,'header' ,'footer' ,'gobutton' ,'htmldoctype' ,'header_welcomeblock_member' ,'header_welcomeblock_guest' ,'header_welcomeblock_member_admin' ,'global_pm_alert' ,'global_unreadreports' ,'global_pending_joinrequests' ,'nav' ,'nav_sep' ,'nav_bit' ,'nav_sep_active' ,'nav_bit_active' ,'footer_languageselect' ,'header_welcomeblock_member_moderator' ,'redirect' ,'error' ,'global_boardclosed_warning' ,'global_bannedwarning' ,'error_inline' ,'error_nopermission_loggedin' ,'error_nopermission') AND sid IN ('-2','-1','4') ORDER BY sid ASC
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_templates     ALL                     788     Using where; Using filesort
Query Time: 0.0033910274505615

#8 - Select Query
SELECT pm.subject, pm.pmid, fu.username AS fromusername, fu.uid AS fromuid FROM mybb_privatemessages pm LEFT JOIN mybb_users fu ON (fu.uid=pm.fromid) WHERE pm.folder='1' AND pm.uid='1' AND pm.status='0' ORDER BY pm.dateline DESC LIMIT 1
table     type     possible_keys     key     key_len     ref     rows     Extra
pm     ref     uid     uid     6     const,const     73     Using where; Using filesort
fu     eq_ref     PRIMARY     PRIMARY     4     eu_trans_cba_pl.pm.fromid     1     
Query Time: 0.002532958984375

(Plugin Hook: index_start)
#9 - Select Query
SELECT `fid`, `pid`, `lastpost`, `lastposteruid` FROM `mybb_forums` WHERE `threads` > '0'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_forums     ALL                     56     Using where
Query Time: 0.056381940841675

(Plugin Hook: index_start)
#10 - Select Query
SELECT u.username, u.uid, u.usergroup, u.displaygroup, u.invisible, u.lastactive, s.sid FROM mybb_users u LEFT JOIN mybb_sessions s ON (u.uid=s.uid) WHERE (u.lastactive > 1377192140 OR s.time > 1377192140) ORDER BY u.username
table     type     possible_keys     key     key_len     ref     rows     Extra
u     ALL                     43     Using filesort
s     ref     uid     uid     4     eu_trans_cba_pl.u.uid     12     Using where
Query Time: 0.0034329891204834

(Plugin Hook: index_start)
#11 - Select Query
SELECT gid,title,namestyle FROM mybb_usergroups WHERE gid NOT IN ('3','5','7','6','1')
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_usergroups     ALL     PRIMARY                 21     Using where
Query Time: 0.001345157623291

(Plugin Hook: index_start)
#12 - Select Query
SELECT template FROM mybb_templates WHERE title='viewgroups_index' AND sid IN ('-2','-1','4') ORDER BY sid DESC LIMIT 1
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_templates     ALL                     788     Using where; Using filesort
Query Time: 0.0006108283996582

(Plugin Hook: index_start)
#13 - Select Query
SELECT * FROM mybb_moderators WHERE ((id IN (4,'10') AND isgroup='1') OR (id='1' AND isgroup='0'))
table     type     possible_keys     key     key_len     ref     rows     Extra
                            Impossible WHERE noticed after reading const tables
Query Time: 0.0022048950195312

(Plugin Hook: index_start)
#14 - Select Query
SELECT t.subject,t.username,t.uid,t.tid,t.fid,t.lastpost,t.lastposter,t.lastposteruid,t.replies,t.visible,tr.uid AS truid,tr.dateline,tp.displaystyle AS styledprefix,f.name FROM mybb_threads t LEFT JOIN mybb_threadsread tr ON (tr.tid=t.tid AND tr.uid='1') LEFT JOIN mybb_threadprefixes tp ON (tp.pid = t.prefix) LEFT JOIN mybb_forums f ON (f.fid = t.fid) WHERE (t.visible = '1' OR '1'='1' ) AND t.closed NOT LIKE 'moved|%' AND f.active = '1' ORDER BY t.lastpost DESC LIMIT 0,11
table     type     possible_keys     key     key_len     ref     rows     Extra
tp     system     PRIMARY                 0     const row not found
f     ALL     PRIMARY                 56     Using where; Using temporary; Using filesort
t     ref     fid     fid     2     eu_trans_cba_pl.f.fid     2     Using where
tr     eq_ref     tid     tid     8     eu_trans_cba_pl.t.tid,const     1     
Query Time: 0.0026040077209473

(Plugin Hook: index_start)
#15 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '3'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0025348663330078

(Plugin Hook: index_start)
#16 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '3'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0031659603118896

(Plugin Hook: index_start)
#17 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '3'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0034589767456055

(Plugin Hook: index_start)
#18 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '3'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0016100406646729

(Plugin Hook: index_start)
#19 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '2'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0011467933654785

(Plugin Hook: index_start)
#20 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0010170936584473

(Plugin Hook: index_start)
#21 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '8'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.001129150390625

(Plugin Hook: index_start)
#22 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0008549690246582

(Plugin Hook: index_start)
#23 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '8'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00076103210449219

(Plugin Hook: index_start)
#24 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0080099105834961

(Plugin Hook: index_start)
#25 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '8'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.003554105758667

(Plugin Hook: index_start)
#26 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00044798851013184

(Plugin Hook: index_start)
#27 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '7'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00093197822570801

(Plugin Hook: index_start)
#28 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '7'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00070810317993164

(Plugin Hook: index_start)
#29 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00078582763671875

(Plugin Hook: index_start)
#30 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '4'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00093603134155273

(Plugin Hook: index_start)
#31 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00088191032409668

(Plugin Hook: index_start)
#32 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '4'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.00070786476135254

(Plugin Hook: index_start)
#33 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '8'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0021219253540039

(Plugin Hook: index_start)
#34 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '4'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0013778209686279

(Plugin Hook: index_start)
#35 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '9'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.001478910446167

(Plugin Hook: index_start)
#36 - Select Query
SELECT username,usergroup,displaygroup FROM mybb_users WHERE uid = '14'
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     const     PRIMARY     PRIMARY     4     const     1     
Query Time: 0.0010139942169189

(Plugin Hook: index_start)
#37 - Select Query
SELECT t.subject,t.tid,t.fid,t.replies,t.lastpost,t.visible,tr.uid AS truid,tr.dateline FROM mybb_threads t LEFT JOIN mybb_threadsread tr ON (tr.tid=t.tid AND tr.uid='1') LEFT JOIN mybb_forums f ON (f.fid = t.fid) WHERE (t.visible = '1' OR '1'='1' ) AND t.closed NOT LIKE 'moved|%' AND f.active = '1' ORDER BY t.replies DESC LIMIT 0,5
table     type     possible_keys     key     key_len     ref     rows     Extra
f     ALL     PRIMARY                 56     Using where; Using temporary; Using filesort
t     ref     fid     fid     2     eu_trans_cba_pl.f.fid     2     Using where
tr     eq_ref     tid     tid     8     eu_trans_cba_pl.t.tid,const     1     
Query Time: 0.0018019676208496

(Plugin Hook: index_start)
#38 - Select Query
SELECT username,postnum,uid,usergroup,displaygroup FROM mybb_users ORDER BY postnum DESC LIMIT 0,5
table     type     possible_keys     key     key_len     ref     rows     Extra
mybb_users     ALL                     43     Using filesort
Query Time: 0.0011899471282959

(Plugin Hook: index_start)
#39 - Select Query
SELECT t.subject,t.tid,t.fid,t.lastpost,t.views,t.visible,tr.uid AS truid,tr.dateline FROM mybb_threads t LEFT JOIN mybb_threadsread tr ON (tr.tid=t.tid AND tr.uid='1') LEFT JOIN mybb_forums f ON (f.fid = t.fid) WHERE (t.visible = '1' OR '1'='1' ) AND t.closed NOT LIKE 'moved|%' AND f.active = '1' ORDER BY t.views DESC LIMIT 0,5
table     type     possible_keys     key     key_len     ref     rows     Extra
f     ALL     PRIMARY                 56     Using where; Using temporary; Using filesort
t     ref     fid     fid     2     eu_trans_cba_pl.f.fid     2     Using where
tr     eq_ref     tid     tid     8     eu_trans_cba_pl.t.tid,const     1     
Query Time: 0.001378059387207

(Plugin Hook: index_start)
#40 - Select Query
SELECT u.uid,u.reputation,u.username,u.usergroup,u.displaygroup FROM mybb_users u LEFT JOIN mybb_usergroups ug ON (u.usergroup = ug.gid) WHERE ug.usereputationsystem='1' ORDER BY u.reputation DESC LIMIT 0,5
table     type     possible_keys     key     key_len     ref     rows     Extra
u     ALL     usergroup                 43     Using filesort
ug     eq_ref     PRIMARY     PRIMARY     2     eu_trans_cba_pl.u.usergroup     1     Using where
Query Time: 0.0036540031433105

#41 - Select Query
SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup FROM mybb_sessions s LEFT JOIN mybb_users u ON (s.uid=u.uid) WHERE s.time>'1377277640' ORDER BY u.username ASC, s.time DESC
table     type     possible_keys     key     key_len     ref     rows     Extra
s     range     time     time     8         6     Using where; Using temporary; Using filesort
u     eq_ref     PRIMARY     PRIMARY     4     eu_trans_cba_pl.s.uid     1     
Query Time: 0.0021209716796875

#42 - Select Query
SELECT f.*, fr.dateline AS lastread FROM mybb_forums f LEFT JOIN mybb_forumsread fr ON (fr.fid=f.fid AND fr.uid='1') WHERE f.active != 0 ORDER BY pid, disporder
table     type     possible_keys     key     key_len     ref     rows     Extra
f     ALL                     56     Using where; Using filesort
fr     eq_ref     fid     fid     8     eu_trans_cba_pl.f.fid,const     1     
Query Time: 0.0015621185302734

Template Statistics
Templates Used (Loaded for this Page) - 69 Total
global_boardclosed_warning, global_pm_alert, index, header_welcomeblock_member, header_welcomeblock_member_moderator, header_welcomeblock_member_admin, redirect, gobutton, forumbit_depth2_forum, forumbit_depth3, forumbit_depth3_statusicon, forumbit_subforums, footer, headerinclude, nav_sep, nav_sep_active, header_welcomeblock_guest, header, forumbit_depth1_cat, global_unreadreports, global_pending_joinrequests, index_loginform, index_whosonline, index_stats, index_birthdays_birthday, forumbit_moderators, index_birthdays, index_logoutlink, error_nopermission, error_nopermission_loggedin, error, index_whosonline_memberbit, forumbit_depth2_cat, nav, nav_bit, nav_bit_active, error_inline, global_bannedwarning, htmldoctype, footer_languageselect, index_boardstats, forumbit_depth2_forum_lastpost, forumbit_depth1_forum_lastpost, prostats, thanks_postbit_count, prostats_tworowextra, prostats_onerowextra, prostats_message, prostats_topreferrers_row, prostats_topreferrers, prostats_topposters_row, prostats_topposters, prostats_topdownloads_row, prostats_newmembers_row, prostats_topdownloads, prostats_newmembers, prostats_mostviews_row, prostats_mostthanks_row, prostats_mostviews, prostats_readstate_icon, prostats_newestposts, prostats_newestposts_row, prostats_newestposts_specialchar, prostats_mostreplies, prostats_mostreplies_row, prostats_mostreputation, prostats_mostreputation_row, prostats_mostthanks, viewgroups_index

Templates Requiring Additional Calls (Not Cached at Startup) - 1 Total
viewgroups_index

Pluginy:
- Coupon Codes Generator (1.2)
- Cytowanie selektywne (1.5)
- Fit on Page (2.3)
- Game Section (1.2.3-1)
- Avatary przy ostatnich postach (1.5)
- Powiadomienia moderatora (1.7)
- Notatka moderatora (1.5.3)
- MyShoutbox (1.7)
- NewPoints (1.9)
- ProStats /proʊˈstæts/ (1.9.2)
- Przyjazne (SEO) tytuły (1.6)
- Kolorowe nicki (1.8)
- Thanks (3.9)
- Nieprzeczytane posty (2.9.6)
- View Groups (1.5)
- Dodatkowe pytanie antyspamowe podczas rejestracji (1.0)
- Kto Był Dzisiaj Online (1.2)

Forum wystartowało kilka dni temu. Martwi mnie bardzo duża liczba zapytań do bazy danych, która powinna być mniejsza. Wiem, że bardzo duże obciążenie generuje MyShoutbox i ProStats, ale nie mogę się z nich pozbyć. Raz na jakiś czas występuję błąd too many connections czyli, że serwer bazy danych nie nadąża i chce się tego błędu pozbyć. Co ciekawe dzisiaj, gdy na forum były 33 osoby online to nie wyskoczył żaden błąd. Dziękuję i pozdrawiam :)
@kru129: Zmiana hostingu, albo wyłączenie kilku pluginów. Te drugie pomoże na krótki okres, jak przybędzie użytkowników to i tak będziesz musiał zmienić hosting.
Sam prostats to kombajn SQL Query i potrafi spowolnić wczytywanie strony.
Następne to:
Avatary przy ostatnich postach

(02.03.2012, 22:09)lukasamd napisał(a):
CipiS napisał(a):Spoko to możesz wytłumaczyć mi co mi może generować taki obciążenie, że mi strone zawieszają?

Inne strony hostowane przez tą samą firmę. Load wskazuje na to, jak bardzo zajęty jest procesor. W zależności od sprzętu jaki jest w serwerze, load o wartości np. 4-5 może być koszmarnie duży, ale może też być całkiem niewielki.
Firma powinna to regulować i ograniczać użytkowników obciążających za mocno serwer, ale zawsze musisz się liczyć z tym, że nie dostajesz gwarantowanych zasobów i ktoś inny może wpływać na działanie Twojej witryny.

Jeżeli hosting nie dawał Ci znać, że za bardzo obciążasz, to wina może należeć do kogoś innego.
A jak się miewa ilość procesorów/rdzeni na platformie do tej informacji ?
cba.pl to największe dno z darmowych rozwiązań, mimo że nie polecam już bardziej opłacił by Ci się ''proserwer.pl'' za pakiet w kwocie 5zł za miesiąc, 5zł to nie dużo a serwer tak szybko nie padnie przy generowanym ruchu z takimi pluginami, pod warunkiem że faktycznie nie chcesz żadnego z nich wyłączać.

gloverek, plugin game slection również jest kombajnem zużycia zasobów, w prawdzie nie takim jak prostats ale swoje też ma ''że tak powiem'' do powiedzenia.
Nie dziwcie się, że prostats "kopie" serwer, skoro on za każdym razem wszystko pobiera.
Buforowanie danych nawet na te 5-10 minut znacznie by go odchudziło (hm.. może zerknę?).

gloverek napisał(a):A jak się miewa ilość procesorów/rdzeni na platformie do tej informacji ?

To jest liczone per rdzeń widziany przez system.
Zakładając, że masz procesor dwurdzeniowy i oba są widoczne, to load równy 1.0 oznacza, że zajęte są zasoby na poziomie 100% jednego rdzenia i 0% drugiego. To tak dla uproszczenia, bo ogólnie masz wtedy do dyspozycji 200% (2x po 100% każdy rdzeń). Load na poziomie 2.0 przy takiej konfiguracji oznacza, że procesory są zajęte w pełni no i nadal sobie wyrabiają, choć zapasu nie ma już żadnego.

Gdy w takiej konfiguracji zobaczymy np. load 4.0, to oznacza, że procesory są tak zajęte, że mają 2x więcej do zrobienia niż są w stanie zrobić no i wszystko czeka. Load oczywiście może być znacznie większy. Ogólnie jak się na serwerze widzi load np. ponad 10 to wcale nie powód, aby mówić, że coś jest nie tak. Dobry serwer to mogą być np. 4 procesory po 4 rdzenie (a jak wliczymy HT to będzie to widział jako 32 rdzenie).
Generated in 0.8201940 seconds (81.90% PHP / 18.10% MySQL)
SQL Queries: 46 / Global Parsing Time: 0.0640049 / Memory Usage: 16.25 MB
PHP version: 5.2.17 / Server Load: 3.79 / GZip Compression: Enabled
Valkiria.com.pl

Subforums In Columns (1.0)
Advanced Quick Reply Form (1.0.3)
Antyspam Akismet (1.2.2)
ChangUonDyU - Extra File Chatbox (3.7.0)
Default Avatar (1.0)
Google SEO (1.6.6)
Image Resizer & Optimizer with GD (1.1.1)
Avatary przy ostatnich postach (1.3)
Wiadomość od moderatora (1.5.2)
Detektor rejestracji Multikont (1.1)
Notices (0.1 Beta)
PluginLibrary (12)
Poll on Index (0.3)
Quacktacular Themes (1.0)
Quick Theme OnChange (2.1)
Return to top postbit button (1.6)
Lista serwerów (2.0)
Side Boxes! (2.1)
Ulepszony antyspam (2.0.1)
SR MyBBCoder (1.5.0)
Simple TagCloud (beta) (0.9a)
Kolorowe nicki (1.7)
Tapatalk (3.7.2)
Statystyki Top (2.1)
Top Posters edit by Qedro (0.1)
Nieprzeczytane posty (2.9.1)
Usergroup legends (2.0)
Kto Był Dzisiaj Online (1.2)

Mam sporo plugów, mam google SEO okej, chce udźgnąć zapytań i możliwie jak najbardziej przyspieszyć stronkę przy jak najmniejszej liczbie wyłączonych pluginów, co polecacie?
Pluginy generujące więcej query to:
Avatary przy ostatnich postach (1.3)
I każdy inny plugin do statystyk :)
Timingi masz dobre a ilość query 46 to nie aż tak dużo :)
Jeśli chcesz aby Twoja strona była szybsza, to stosować jak najlżejszy styl(najmniej grafik i skryptów)
Memory usage to 16mb, to trochę dużo, ale to normalna wartość dla php 5.2/5.3
Zmiana wersji php na 5.4/5.5 pozwoli Ci na mniejsze zużycie pamięci i to jak jest skonfigurowany serwer/hosting.
Aby pluginy nie generowały tyle zapytań, trzeba by było przerabiać je stosując tzw bufor i najlepiej aby miały swój oddzielny task, tak jak to robi LukasAMD, tylko na takie przeróbki trzeba mieć czas i wiedzę :)
Największym żarłokiem do statystyk jest plugin http://mods.mybb.com/view/ajax-forum-stat-v4-5
Potrafi wygenerować ponad 200 query :D
A ja mam prośbę dotyczącą optymalizacji pamieci przegladrki, konkretnie uzywam narzedzia google pagespeed insights, i dostaję informację:

"Leverage browser caching


Wyczytałem też że może mi brakować modułu mod_expires w apachu



EDIT.

Teoretycznie sobie poradziłem, tylko nie wiem czy dobrze zrobiłem

do /etc/apache2/mods-available/expires.conf

dodalem

# włączamy moduł
ExpiresActive on

# cacheowanie typowych obrazów przez 3 miesiące
ExpiresByType image/jpg "access plus 3 months"
ExpiresByType image/gif "access plus 3 months"
ExpiresByType image/jpeg "access plus 3 months"
ExpiresByType image/png "access plus 3 months"

# cacheowanie CSS i JavaScript przez 2-1 miesiąca
ExpiresByType text/css "access plus 2 month"
ExpiresByType text/javascript "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"

# domyślna wartość cachowania
ExpiresDefault "access plus 3 months"


zrestartowalem apache i niby działa, tylko teraz w rezultacie co się stanie? przez 3 miesiące żaden z obrazków dla danej przegladarki nie będzie się pobierał? co jeśli ja podmienie obrazek X na Y? wciąż będzie się wyświetlać stary?


EDIT2.
To rozwiązanie też nieco błędów dodało - jak ktoś dostanie pw to wiadomość już nie jest pogrubiona boldem, a gdy odswiezy shoutboxa to wiadomości archiwalne pokazuje.
Bo wartość ExpiresDefault jest tu zbędna.
Podobnie dla CSS masz zbyt długi czas.
która z tych wartości jest odpowiedzialna dla archiwum czatu oraz informacji o pw - css?

bardzo bym prosił o przykład zastosowany na mybboard.pl
Odgrzewam wielki kotlet :P.
Moje forum: http://truck-spd.pl/index.php

Statystyki:
Cytat:Nasi użytkownicy napisali 55.001 postów w 5.362 wątkach.
Mamy 4.984 zarejestrowanych użytkowników.

Statystyki debugowania:
Cytat:Generated in 0.1769519 seconds (43.46% PHP / 56.54% MySQL)
SQL Queries: 18 / Global Parsing Time: 0.0491610 / Memory Usage: 10,75 MB
PHP version: 5.3.27 / Server Load: 1.98 / GZip Compression: Enabled

Wtyczki:
Cytat:-DVX_Shoutbox
-ezGalerry Lite
-Fit on Page
-Game Section
-Google Analytics
-Google Seo
-Avatar przy ostatnich postach
-Modnotice Plus
-SR MyBBCoder
-Thanks
-Statystyki Top
-Undo Delete
-Nieprzeczytane posty
-Dodatkowe pytanie antyspamowe
-Kto był dzisiaj online
Kilka pytań:
Jak wyglądają statystyki generowania forum, czymś powinienem się przejmować?
Które z wyżej wymienionych wtyczek są nieoptymalne?
Hostuje się w pdg.pl, warto podpiąć forum pod cloudflare?
Zmienić mechanizm składowania danych na innodb?; Czy dobre byłoby zastosowanie częściowo innodb i myisam?
Z góry dziękuję za odpowiedź ;).
Serwer MySQL w jakiej jest wersji?
Jeśli 5.5.x i wyżej to warto przełączyć na MyBB.
Poza tym dobre byłoby działanie na PHP 5.4 lub 5.5, no ale tego pewnie nie możesz zmienić.
Wersja php: 5.3.27, natomiast MySQL w 5.5.9. I teraz dylemat bo mysql aktualne a php mogłoby być nowsze xD.
Tego na hostingu wspoldzielony nie przeskoczysz, tylko nieliczne firmy pozwalają na wybór wersji php.
Zmień na innodb i jeśli nie ma problemów z obciążeniem, to zostaw jak jest.

Wysłane z mojego Nexus 5 przy użyciu Tapatalka



Użytkownicy przeglądający ten wątek:

1 gości