Coppermine Gallery - íàãðóçêà íà ñåðâåð Coppermine Gallery - íàãðóçêà íà ñåðâåð
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Coppermine Gallery - íàãðóçêà íà ñåðâåð

Started by tdmitry, September 03, 2007, 02:28:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tdmitry

Ó êîãî êàêîé îïûò ïî ñàáæó?
Ïî ñåáå ñêàæó, ÷òî îí ñîçäàåò íàèáîëüøóþ íàãðóçêó èç âñåõ ñêðèïòîâ, ðàáîòàþùèõ íà íàøåì ñàéòå (ôîðóì, áëîã).
Èëè ÷òî-òî ó ìíó íå òàê?
Û

Makc666

Quote from: tdmitry on September 03, 2007, 02:28:58 PM
Ó êîãî êàêîé îïûò ïî ñàáæó?
Ïî ñåáå ñêàæó, ÷òî îí ñîçäàåò íàèáîëüøóþ íàãðóçêó èç âñåõ ñêðèïòîâ, ðàáîòàþùèõ íà íàøåì ñàéòå (ôîðóì, áëîã).
Èëè ÷òî-òî ó ìíó íå òàê?
Äóìàþ, ÷òî ïðè ïîäîáíîì îïèñàíèè ïðîáëåìû, ÷òî-òî ó òåáÿ íå òàê.  :-X

GeXu3

Àíàëîãè÷íàÿ ãàäîñòü.
USER:
------------------
Array
(
    [ID] => a0b4ea6c4da711a768de0bf926ecda2a
    [am] => 1
    [liv] => Array
        (
            [0] => 101217
            [1] => 101362
            [2] => 101268
            [3] => 101363
            [4] => 101361
        )

    [lap] => 1
    [search] => Array
        (
            [params] => Array
                (
                    [filename] => 1
                    [keywords] => 1
                    [caption] => 1
                    [title] => 1
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => GeX
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 1
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
    [1] => select * from cpg132_plugins order by priority asc; (0s)
    [2] => delete from `gex_mp20061015`.cpg132_sessions where time<1199677019 and remember=0; (0.001s)
    [3] => delete from `gex_mp20061015`.cpg132_sessions where time<1198471019; (0.001s)
    [4] => select user_id from `gex_mp20061015`.cpg132_sessions where session_id=md5("812ea7bf67766adbbf56943d5de2c3daee24ce1ce70881e5e1a018c69b95e1c7"); (0s)
    [5] => select user_id as id, user_password as password from `gex_mp20061015`.cpg132_users where user_id=1 (0.001s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `gex_mp20061015`.cpg132_users AS u INNER JOIN `gex_mp20061015`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `gex_mp20061015`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `gex_mp20061015`.cpg132_sessions set time='1199680619' where session_id=md5('812ea7bf67766adbbf56943d5de2c3daee24ce1ce70881e5e1a018c69b95e1c7'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg132_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
    [13] => REPLACE INTO cpg132_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'GeX', '10.6.18.207', NOW()) (0s)
    [14] => DELETE FROM cpg132_banned WHERE expiry < '2008-01-07 07:37:00' (0s)
    [15] => SELECT * FROM cpg132_banned WHERE (ip_addr='10.6.18.207' OR ip_addr='10.6.18.207' OR user_id=1) AND brute_force=0 (0s)
    [16] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos (0s)
    [17] => SELECT aid FROM cpg132_albums as a WHERE category>=10000 (0.015s)
    [18] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.085s)
    [19] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos (0.001s)
    [20] => SELECT aid FROM cpg132_albums WHERE category = 2 (0s)
    [21] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.001s)
    [22] => SELECT count(*) FROM cpg132_albums as a WHERE category = '2' (0s)
    [23] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,6 (0.002s)
    [24] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (6140, 4276, 4074, 4010, 3887, 3007)GROUP BY a.aid (0.003s)
    [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='56216' (0s)
    [26] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '2'  ORDER BY pos (0s)
    [27] => SELECT aid FROM cpg132_albums WHERE category = 12 (0s)
    [28] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0.001s)
    [29] => SELECT aid FROM cpg132_albums WHERE category = 7 (0s)
    [30] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0.001s)
    [31] => SELECT aid FROM cpg132_albums WHERE category = 6 (0s)
    [32] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [33] => SELECT aid FROM cpg132_albums WHERE category = 3 (0.001s)
    [34] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.001s)
    [35] => SELECT count(*) FROM cpg132_albums as a WHERE category = '3' (0s)
    [36] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,10 (0.001s)
    [37] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg132_albums AS a  LEFT JOIN cpg132_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3108, 73, 74, 75, 76, 77, 79, 80, 81, 82)GROUP BY a.aid (0.003s)
    [38] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '3'  ORDER BY pos (0s)
    [39] => SELECT aid FROM cpg132_albums as a WHERE category = '0' (0s)
    [40] => SELECT count(*) FROM cpg132_albums as a WHERE 1 (0s)
    [41] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.081s)
    [42] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1 (0.628s)
    [43] => SELECT count(*) FROM cpg132_categories WHERE 1 (0s)
    [44] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1 (0.276s)
    [45] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
    [46] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0' (0s)
    [47] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'  (0.056s)
    [48] => SELECT * FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
    [49] => SELECT COUNT(*) FROM `gex_mp20061015`.cpg132_users (0s)
    [50] => SELECT COUNT(*) FROM cpg132_mod_online (0s)
    [51] => SELECT COUNT(*) FROM cpg132_mod_online WHERE user_id <> 0 (0s)
    [52] => SELECT user_id, user_name FROM `gex_mp20061015`.cpg132_users ORDER BY user_id DESC LIMIT 1 (0s)
    [53] => SELECT user_id, user_name FROM cpg132_mod_online WHERE user_id <> 0 (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.1.22
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE no value
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | popen,dl,set_time_limit,passthru,system,exec,proc_open,shell_exec,proc_close,symlink | popen,dl,set_time_limit,passthru,system,exec,proc_open,shell_exec,proc_close,symlink
file_uploads | On | On
include_path | .: | .:
open_basedir | /usr/local/psa/home/vhosts/myphoto.ck.ua/httpdocs:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i 
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 5 | 5
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 64M | 64M
==========================
Page generated in 1.567 seconds - 54 queries in 1.16 seconds - Album set : ; Meta set: ;

Âîïðîñ - ÷òî åãî òàê òîðìîçèòü ìîæåò è ãäå îïòèìèçèðîâàòü ìîæíî? (êîïåð 1.4.14, ïðåôèêñû òî äëÿ êîíñïèðàöèè :))

GeXu3

Íó â ïðåäûäóùåì ëèñòèíãå ïîêà è ñàì ðàçîáðàëñÿ - òàì 2 çàïðîñà î÷åíü òÿæåëûå åñëè ãàëåðåÿ ðàáîòàëà 3 ãîäà... óáðàë - ïîëåã÷àëî, íî ÷òî äåëàòü òóò:
USER:
------------------
Array
(
    [ID] => a0b4ea6c4da711a768de0bf926ecda2a
    [am] => 1
    [liv] => Array
        (
            [0] => 101217
            [1] => 101362
            [2] => 101268
            [3] => 101363
            [4] => 101361
        )

    [lap] => 1
    [search] => Array
        (
            [params] => Array
                (
                    [filename] => 1
                    [keywords] => 1
                    [caption] => 1
                    [title] => 1
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => GeX
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 1
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg132_filetypes; (0s)
    [1] => select * from cpg132_plugins order by priority asc; (0s)
    [2] => delete from `gex_mp20061015`.cpg132_sessions where time<1199679296 and remember=0; (0.001s)
    [3] => delete from `gex_mp20061015`.cpg132_sessions where time<1198473296; (0.001s)
    [4] => select user_id from `gex_mp20061015`.cpg132_sessions where session_id=md5("812ea7bf67766adbbf56943d5de2c3daee24ce1ce70881e5e1a018c69b95e1c7"); (0s)
    [5] => select user_id as id, user_password as password from `gex_mp20061015`.cpg132_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `gex_mp20061015`.cpg132_users AS u INNER JOIN `gex_mp20061015`.cpg132_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `gex_mp20061015`.cpg132_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1 (0s)
    [10] => update `gex_mp20061015`.cpg132_sessions set time='1199682896' where session_id=md5('812ea7bf67766adbbf56943d5de2c3daee24ce1ce70881e5e1a018c69b95e1c7'); (0s)
    [11] => SELECT user_favpics FROM cpg132_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg132_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
    [13] => REPLACE INTO cpg132_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'GeX', '10.6.18.207', NOW()) (0s)
    [14] => DELETE FROM cpg132_banned WHERE expiry < '2008-01-07 08:14:56' (0s)
    [15] => SELECT * FROM cpg132_banned WHERE (ip_addr='10.6.18.207' OR ip_addr='10.6.18.207' OR user_id=1) AND brute_force=0 (0s)
    [16] => SELECT COUNT(*) FROM cpg132_pictures WHERE approved = 'NO' (0s)
    [17] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'  (0s)
    [18] => SELECT * FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,100 (0.001s)
)

==========================
GET :
------------------
Array
(
    [album] => lastup
    [cat] => 0
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.0 - OK
------------------
mySQL version: 4.1.22
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE no value
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | popen,dl,set_time_limit,passthru,system,exec,proc_open,shell_exec,proc_close,symlink | popen,dl,set_time_limit,passthru,system,exec,proc_open,shell_exec,proc_close,symlink
file_uploads | On | On
include_path | .: | .:
open_basedir | /usr/local/psa/home/vhosts/myphoto.ck.ua/httpdocs:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i 
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 5 | 5
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 64M | 64M
==========================
Page generated in 0.503 seconds - 19 queries in 0.003 seconds - Album set : ; Meta set: ;

Ñìóùàþò èìåííî Page generated in 0.503 seconds, ïðèòîì ÷òî 19 queries in 0.003 seconds, òîåñòü òóò áîê óæå íå â SQL, à ãäåòî ãëóáæå. Ìîæ êòî ñòàëêèâàëñÿ? Ëèñòèíã ïîëó÷åí ïî ññûëêå thumbnails.php?album=lastup&cat=0

Alex Revo

Ïîïðîáóéòå åùå îïèòèìèçèðîâàòü áàçó ñðåäñòâàìè ñàìîãî MySQL

Orhidea

Да, моя галерея тоже долго грузиться, но я думаю что эта из-за дуратского хостера. Знал бы что так будет грузиться - никогда бы не стал размещать сайт на его сервере

Makc666

Quote from: GeXu3 on January 07, 2008, 06:18:50 AM
Íó â ïðåäûäóùåì ëèñòèíãå ïîêà è ñàì ðàçîáðàëñÿ - òàì 2 çàïðîñà î÷åíü òÿæåëûå åñëè ãàëåðåÿ ðàáîòàëà 3 ãîäà... óáðàë - ïîëåã÷àëî, íî ÷òî äåëàòü òóò:
...........
Ñìóùàþò èìåííî Page generated in 0.503 seconds, ïðèòîì ÷òî 19 queries in 0.003 seconds, òîåñòü òóò áîê óæå íå â SQL, à ãäåòî ãëóáæå. Ìîæ êòî ñòàëêèâàëñÿ? Ëèñòèíã ïîëó÷åí ïî ññûëêå thumbnails.php?album=lastup&cat=0
À ïîñìîòðåòü íà ñàì ñàéò ìîæíî?

GeXu3

Закрыл на реконструкцию, обновление и перенос. Перенесу - покажу. Но он уже будет оптимизирован и жестоко пропатчен :( (сам то программер - могу гдето и порыццо)

AmAzonkA

ó ìåíÿ òàêàÿ ïðîáëåìà...çà 10 äíåé ñêðèïò ãàëåðåè ñëîïàë âåñü (2000ÌÂ) òðàôôèê...õîñòåð âðåìåííî äî êîíöà ìåñÿöà óâåëè÷èë äî 5000ÌÂ..â èòîãå çà ìàðò ñúåäåíî 6 ñ ëèøíèì ãèãà..ÿ â øîêå ïîòîìó-÷òî ïðèä¸òñÿ îòêàçàòüñÿ îò ãàëëåðåè, åñëè íå ïîäñêàæåòå(ïîïîäðîáíåå, ÿ íå ïðîãðàììåð, ñ ÁÄ íå î÷åíü äðóæó) êàê îïòèìèçèðîâàòü ãàëåðåþ....ïðè÷¸ì â äðóãîì ïðîåêòå ñòîèò äîñòàòî÷íî ìîùíûé ôîðóì ñî âñòðîåííîé ãàëåðååé (íå êóïåðìàéí)è íè÷åãî òàêîãî ñ òðàôèêîì íå ïðîèñõîäèò...êòî-òî ìîæåò ïðîèíòñðóêòèðîâàòü êàê îïòèìèçèðîâàòü?

Alex Revo

Для начала стоит все-таки выяснить запросы каких именно страниц генерят основной трафик, а потом уже думать. Может быть к вам боты весь месяц ломились, чтобы наспамить в комментариях и т.п. БД тут не причем.

AmAzonkA

â ñòàòèñòèêå âèäíî ÷òî ïî÷òè âåñü òðàôôèê óõîäèò íà äèíàìè÷íûé ÐÍÐ ñêðèïò...íà ñàéòå òàêîé ñêðèïò òîëüêî ó ãàëåðåè..áîòû òîæå ëîìèëèñü..èìåëà äóðîñòü çàðåãèñòðèðîâàòü ñàéò â ÿíäåêñå...íî ýòî ñåìå÷êè ïî ñðàâíåíèþ ñ òåì, ÷òî óõîäèò íà ñêðèïò
QuoteÄëÿ íà÷àëà ñòîèò âñå-òàêè âûÿñíèòü çàïðîñû êàêèõ èìåííî ñòðàíèö ãåíåðÿò îñíîâíîé òðàôèê

à ìîæíî (â äâóõ ñëîâàõ) ïîäñêàçàòü êàê ýòî ñäåëàòü?

Alex Revo

С этим вопросом стоит обратиться к хостеру, он лучше подскажет. Может быть у вас это будет доступно из cpanel.

AmAzonkA

Quote from: Alex Revo on April 04, 2008, 07:46:55 AM
Ñ ýòèì âîïðîñîì ñòîèò îáðàòèòüñÿ ê õîñòåðó, îí ëó÷øå ïîäñêàæåò. Ìîæåò áûòü ó âàñ ýòî áóäåò äîñòóïíî èç cpanel.
èç êîíòðîëüíîé ïàíåëè ìíîãî ÷åãî äîñòóïíî, ïîýòîìó õîñòåð íå ñïåøèò ñ ñîâåòàìè (ñïàñåíèå óòîïàþùèõ - äåëî ñàìèõ óòîïàþùèõ)...ïðîñòî ÿ íå óìåþ äåëàòü çàïðîñû ê ÁÄ...äóìàëà ïîäñêàæåòå

Alex Revo

БД тут не причем. Трафик генерит сервер по запросам страниц от браузеров, а страницы генерируются динамичными php скриптами, которые берут нужные данные из БД. Смотрите в статистике посещений какие страницы чаще всего запрашивают, смотрите в логах ошибок сервера и кодовых страниц.

AmAzonkA

äà ãîâîðþ æå, ãàëåðåÿ çàïðàøèâàåòñÿ ÷àùå âñåãî
âîò ñìîòðèòå ñàìè
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi048.radikal.ru%2F0804%2F0b%2F4da7188a0011.jpg&hash=b9def86766e54f33485dbeef17ac534c785daa17)


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi028.radikal.ru%2F0804%2F4a%2F8c5113c06eed.jpg&hash=9a06056551f833aef13aa08219af5f5eb82db885)
à 2 àïðåëÿ  ÿ å¸ îòêëþ÷èëà è âîò ñðàçó âèäíà ðàçíèöà
QuoteDay Number of visits Pages Hits Bandwidth
01 Apr 2008 44 13682 22786 440.89 MB
02 Apr 2008 29 4464 6304 274.76 MB
03 Apr 2008 21 120 1787 11.40 MB

Alex Revo


Makc666

Quote from: AmAzonkA on April 04, 2008, 09:26:53 AM
äà ãîâîðþ æå, ãàëåðåÿ çàïðàøèâàåòñÿ ÷àùå âñåãî
âîò ñìîòðèòå ñàìè
[img]http://i048.radikal.ru/0804/0b/4da7188a0011.jpg[/img]


[img]http://i028.radikal.ru/0804/4a/8c5113c06eed.jpg[/img]
à 2 àïðåëÿ  ÿ å¸ îòêëþ÷èëà è âîò ñðàçó âèäíà ðàçíèöà
À ÷òî äîëæíî åù¸ çàïðàøèâàòüñÿ, ãðóáî ãîâîðÿ?
Îòêðîéòå ñòðàíèöó:
http://coppermine-gallery.net/demo/cpg14x/displayimage.php?pos=-275
Âûáåðèòå â áðàóçåðå "Ïîêàçàòü HTML êîä".
Ñêîïèðóéòå âåñü êîä â íîâûé TXT ôàéë.
Ñîõðàíèòå åãî.
Âîò ýòî ðàçìåð âàøåé îäíîé âûäàâàåìîé ñòðàíèöû.

Ó Âàñ âíèçó æå íà êàðòèêå ÷åòêî âèäíî.
displayimage.php âåñèò 30,90 ÊÁàéò.
Áûëà çàïðîøåíà 95404 ðàçà.
Óìíîæàåì 30,90 íà 95404 ïîëó÷àåì 2947983,6 Êáàéò
Äåëèì íà 1024
Ïîëó÷àåì 2878,890234375 Ìåãàáàéò.
Îêðóãëÿåì íà 1000Ìáàéò.
Âîò âàøè ïåðâûé 2,8 Ãèãàáàéòà

thumbnails.php âåñèò 29,90 ÊÁàéò.
Áûëà çàïðîøåíà 42190 ðàçà.
Óìíîæàåì 29,90 íà 42190 ïîëó÷àåì 1261481 Êáàéò
Äåëèì íà 1024
Ïîëó÷àåì 1231,9150390625 Ìåãàáàéò.
Îêðóãëÿåì íà 1000Ìáàéò.
Âîò âàøè âòîðûå 1,2 Ãèãàáàéòà

2,8 Ãèãàáàéòà
+
1,2 Ãèãàáàéòà
=
4.0 Ãèãàáàéòà

+
Îñòàëüíîé "ìóñîð".

Ýòî îáû÷íàÿ ìàòåìàòèêà, ïîýòîìó ìíå íå ñîâñåì ÿñíî, ÷òî Âàñ òàê óäèâëÿåò :)

Alex Revo

Да, математика сильная вещь.

Я сейчас посмотрел у себя даные за прошлый год, когда одна галерея работала. При средней посещаемости 300 человек в день, расход трафика в месяц был 23Gb...

GeXu3

Quoteу меня такая проблема...за 10 дней скрипт галереи слопал весь (2000МВ) траффик...хостер временно до конца месяца увеличил до 5000МВ..в итоге за март съедено 6 с лишним гига
Блин, счастливые люди. У меня один openads жрёт 6 гиг в день...

У меня webailzer в месяц рожал по 100 гб трафа (по cnstats посещаемость около 1000 уникалов, по webalizer - за 3 перевалило... видать линки на других сайтах)

AmAzonkA, ну что тут можно посоветовать... хостинг с более широким bandwidth, ибокак 6 и даж 10 гигами не ограничисся. Ща переполз на серваж - очень медленно, но бендвиса полтерабайта... зато дешевле собственного ящика... как временная мера пока не привезут серверный корпус и не поставлю у провайдера свой тазик.

Ipock

QuoteÑìóùàþò èìåííî Page generated in 0.503 seconds, ïðèòîì ÷òî 19 queries in 0.003 seconds, òîåñòü òóò áîê óæå íå â SQL, à ãäåòî ãëóáæå. Ìîæ êòî ñòàëêèâàëñÿ? Ëèñòèíã ïîëó÷åí ïî ññûëêå thumbnails.php?album=lastup&cat=0

îõ ìëèí íó è êàêà ýòîò êîïåðìàí!  íèêàêîé ãóãëü íåïåðåâàðèò ñòðóêòóðó ñàéòà, êîíòåíò äóáëèðóåòñÿ.
êîíå÷íî îí äîëãî áóäåò ãðóçèòüñÿ - ôàéëû îãðîìíûå, íåíóæíûõ âñÿêèõ øíÿã äî ÷åðòà, âñå îíè íàâàëåíû âïåðåìåøêó.. íåäåëþ ïàðèëñÿ, ÷òîá êîåêàê ïîäðàáîòàòü. õòìë- êîä ïîëó÷àåòñÿ ïåðåãðóæííûé ÿâà-ñêðèïòàìè ñî ññûëêàìè.
êîå ÷òî òàê è íå äîëîïàòèë.
displayimage.php?pos=-$1 - êîåêàê íàøåë êîä íà ýòó óðîäñêóþ ññûëêó íà äóáëü ñòðàíèöû è çàêðûë nofollow, âîîáùå íèêîãäà åùå òàê íåèñïîëüçîâàë íîóôîëëîó, êàê â ýòîì ÷åðòîâîì ñêðèïòå.

êîðî÷å - ïðîåêò íå â òó ñòîðîíó èäåò, õîòÿ åìó ñêîëüêî ëåò óæå?..
èìõî, íàäî ìàêñèìàëüíî ðàçáðîñàòü ïî ìîäóëÿì ôóíêöèè ñêðèïòà - òîò æå ëàíã-ôàéë 120 êá âåñîì. ðàçáèòü íà äâà - äëÿ àäìèíà è äëÿ þçåðà. âûíåñòè îòäåëüíî âñå ýòè áá-êîäû, ãîëîñîâàëêè,ñëàéä-øîó. êîðî÷å, ðåáÿòà, îáëåã÷àòü íàäî ñêðèïò!

ýõ åëûïàëû, âðåìåíè è íåðâîâ æàëêî. ãóãëü íàëîïàòèë íà ñàéòå 2ê äóáëèðóþùèõñÿ ñòðàíèö, è íå îäíà ôîòêà íå âûëåçëà. è íåìóäðåíî. âîîáùå çà äîðâåé-ñàéò ìîæåò ïðèíÿòü. ïëîõîé õòìë-êîä ó êîïïåðìàéíà!