Optimize Coppermine for fast loading, is there anything ive missed? Optimize Coppermine for fast loading, is there anything ive missed?
 

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

Optimize Coppermine for fast loading, is there anything ive missed?

Started by dke, July 08, 2007, 10:19:48 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dke

Hi guys/girls,

Ive had some issues with coppermine running choppy at times, im not sure why cause my server dosnt seem to have any cpu peaks...

I think my issue might be related to users clicking HQ images..

Heres my debug log for the index.php, is there anything you can see that i could remove to improve preformance?

USER:
------------------
Array
(
    [ID] => 0c065d1e749672926757dbd4502bb611
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 159525
            [1] => 159524
            [2] => 159523
            [3] => 159139
            [4] => 158830
        )

)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg147_filetypes; (0s)
    [1] => select * from cpg147_plugins order by priority asc; (0s)
    [2] => delete from `coppermine`.cpg147_sessions where time<1183911560 and remember=0; (0s)
    [3] => delete from `coppermine`.cpg147_sessions where time<1182705560; (0s)
    [4] => select user_id from `coppermine`.cpg147_sessions where session_id=md5("b63d1b3e5fde3b430c9f57fdb9149c2f094962d09bc000fbad9be511cb9af529"); (0s)
    [5] => select user_id as id, user_password as password from `coppermine`.cpg147_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 `coppermine`.cpg147_users AS u INNER JOIN `coppermine`.cpg147_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `coppermine`.cpg147_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 cpg147_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg147_usergroups WHERE group_id= 1 (0s)
    [10] => update `coppermine`.cpg147_sessions set time='1183915160' where session_id=md5('b63d1b3e5fde3b430c9f57fdb9149c2f094962d09bc000fbad9be511cb9af529'); (0s)
    [11] => SELECT user_favpics FROM cpg147_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg147_banned WHERE expiry < '2007-07-08 10:19:20' (0s)
    [13] => SELECT * FROM cpg147_banned WHERE (ip_addr='192.168.0.2' OR ip_addr='192.168.0.2' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = ''  ORDER BY pos (0s)
    [15] => SELECT aid FROM cpg147_albums WHERE category = 14 (0s)
    [16] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0s)
    [17] => SELECT count(*) FROM cpg147_albums as a WHERE category = '14' (0s)
    [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg147_albums as a LEFT JOIN cpg147_pictures as p ON a.thumb=p.pid WHERE category=14 ORDER BY a.pos LIMIT 0,3 (0s)
    [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg147_albums AS a  LEFT JOIN cpg147_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (100, 101, 102)GROUP BY a.aid (0s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg147_pictures WHERE pid='161003' (0s)
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg147_pictures WHERE pid='150180' (0s)
    [22] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '14'  ORDER BY pos (0s)
    [23] => SELECT aid FROM cpg147_albums as a WHERE category>=10000 (0s)
    [24] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [25] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '1'  ORDER BY pos (0s)
    [26] => SELECT aid FROM cpg147_albums WHERE category = 6 (0s)
    [27] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [28] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '6'  ORDER BY pos (0s)
    [29] => SELECT aid FROM cpg147_albums WHERE category = 9 (0s)
    [30] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0s)
    [31] => SELECT aid FROM cpg147_albums WHERE category = 15 (0s)
    [32] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0s)
    [33] => SELECT aid FROM cpg147_albums WHERE category = 11 (0s)
    [34] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0s)
    [35] => SELECT aid FROM cpg147_albums WHERE category = 7 (0s)
    [36] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
    [37] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '7'  ORDER BY pos (0s)
    [38] => SELECT aid FROM cpg147_albums WHERE category = 13 (0s)
    [39] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 13 (0s)
    [40] => SELECT aid FROM cpg147_albums WHERE category = 12 (0s)
    [41] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0s)
    [42] => SELECT aid FROM cpg147_albums as a WHERE category = '0' (0s)
    [43] => SELECT count(*) FROM cpg147_albums as a WHERE 1 (0s)
    [44] => SELECT count(*) FROM cpg147_pictures as p LEFT JOIN cpg147_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [45] => SELECT count(*) FROM cpg147_comments as c LEFT JOIN cpg147_pictures as p ON c.pid=p.pid LEFT JOIN cpg147_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [46] => SELECT count(*) FROM cpg147_categories WHERE 1 (0s)
    [47] => SELECT sum(hits) FROM cpg147_pictures as p LEFT JOIN cpg147_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [48] => SELECT COUNT(*) FROM cpg147_pictures WHERE approved = 'NO' (0s)
    [49] => SELECT count(*) FROM cpg147_albums as a WHERE category = '0' (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 5.1.4 - OK
------------------
mySQL version: 4.0.26-nt
------------------
Coppermine version: 1.4.10(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:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.7
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
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 | no value | no value
file_uploads | On | On
include_path | .;C:\php5\pear | .;C:\php5\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | no value | no value
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 200 | 200
upload_max_filesize | 20M | 20M
post_max_size | 20M | 20M
==========================
Page generated in 0.036 seconds - 50 queries in 0 seconds - Album set : ; Meta set: ;


Edited by sami:
added Code block

Sami

Posting gallery link would be better choice instead of debug output :)
‍I don't answer to PM with support question
Please post your issue to related board

dke

ooops, saw that i was running an old release, updated to the most current one for security reasons , new debug:


USER:
------------------
Array
(
    [ID] => 0c065d1e749672926757dbd4502bb611
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 158830
            [1] => 152478
            [2] => 154048
            [3] => 161958
            [4] => 151651
        )

)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg147_filetypes; (0.001s)
    [1] => select * from cpg147_plugins order by priority asc; (0s)
    [2] => delete from `coppermine`.cpg147_sessions where time<1183913104 and remember=0; (0s)
    [3] => delete from `coppermine`.cpg147_sessions where time<1182707104; (0s)
    [4] => select user_id from `coppermine`.cpg147_sessions where session_id=md5("b63d1b3e5fde3b430c9f57fdb9149c2f094962d09bc000fbad9be511cb9af529"); (0s)
    [5] => select user_id as id, user_password as password from `coppermine`.cpg147_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 `coppermine`.cpg147_users AS u INNER JOIN `coppermine`.cpg147_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `coppermine`.cpg147_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 cpg147_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg147_usergroups WHERE group_id= 1 (0s)
    [10] => update `coppermine`.cpg147_sessions set time='1183916704' where session_id=md5('b63d1b3e5fde3b430c9f57fdb9149c2f094962d09bc000fbad9be511cb9af529'); (0.001s)
    [11] => SELECT user_favpics FROM cpg147_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg147_banned WHERE expiry < '2007-07-08 10:45:04' (0s)
    [13] => SELECT * FROM cpg147_banned WHERE (ip_addr='192.168.0.2' OR ip_addr='192.168.0.2' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = ''  ORDER BY pos (0s)
    [15] => SELECT aid FROM cpg147_albums WHERE category = 14 (0s)
    [16] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0s)
    [17] => SELECT count(*) FROM cpg147_albums as a WHERE category = '14' (0s)
    [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg147_albums as a LEFT JOIN cpg147_pictures as p ON a.thumb=p.pid WHERE category=14 ORDER BY a.pos LIMIT 0,3 (0s)
    [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg147_albums AS a  LEFT JOIN cpg147_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (100, 101, 102)GROUP BY a.aid (0s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg147_pictures WHERE pid='161003' (0s)
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg147_pictures WHERE pid='150180' (0s)
    [22] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '14'  ORDER BY pos (0s)
    [23] => SELECT aid FROM cpg147_albums as a WHERE category>=10000 (0s)
    [24] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [25] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '1'  ORDER BY pos (0s)
    [26] => SELECT aid FROM cpg147_albums WHERE category = 6 (0s)
    [27] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [28] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '6'  ORDER BY pos (0s)
    [29] => SELECT aid FROM cpg147_albums WHERE category = 9 (0s)
    [30] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0s)
    [31] => SELECT aid FROM cpg147_albums WHERE category = 15 (0s)
    [32] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0s)
    [33] => SELECT aid FROM cpg147_albums WHERE category = 11 (0s)
    [34] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0s)
    [35] => SELECT aid FROM cpg147_albums WHERE category = 7 (0s)
    [36] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
    [37] => SELECT cid, name, description, thumb FROM cpg147_categories WHERE parent = '7'  ORDER BY pos (0s)
    [38] => SELECT aid FROM cpg147_albums WHERE category = 13 (0s)
    [39] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 13 (0s)
    [40] => SELECT aid FROM cpg147_albums WHERE category = 12 (0s)
    [41] => SELECT count(*) FROM cpg147_pictures as p, cpg147_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0s)
    [42] => SELECT aid FROM cpg147_albums as a WHERE category = '0' (0s)
    [43] => SELECT count(*) FROM cpg147_albums as a WHERE 1 (0s)
    [44] => SELECT count(*) FROM cpg147_pictures as p LEFT JOIN cpg147_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [45] => SELECT count(*) FROM cpg147_comments as c LEFT JOIN cpg147_pictures as p ON c.pid=p.pid LEFT JOIN cpg147_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [46] => SELECT count(*) FROM cpg147_categories WHERE 1 (0s)
    [47] => SELECT sum(hits) FROM cpg147_pictures as p LEFT JOIN cpg147_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [48] => SELECT COUNT(*) FROM cpg147_pictures WHERE approved = 'NO' (0s)
    [49] => SELECT count(*) FROM cpg147_albums as a WHERE category = '0' (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 5.1.4 - OK
------------------
mySQL version: 4.0.26-nt
------------------
Coppermine version: 1.4.12(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:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.7
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
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 | no value | no value
file_uploads | On | On
include_path | .;C:\php5\pear | .;C:\php5\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | no value | no value
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 200 | 200
upload_max_filesize | 20M | 20M
post_max_size | 20M | 20M
==========================
Page generated in 0.037 seconds - 50 queries in 0.002 seconds - Album set : ; Meta set: ;

dke

XXXXXXX , thanks!

Edited By Sami:
Link removed as requested

Sami

Everything is looks fine for me ,
- Page generated in 0.037 seconds
- 50 queries in 0.002 seconds
Everything is smooth and running fast

[ot]
you should upgrade your Captcha plugin to last release asthe old one has an issue with new cpg version(1.4.12) plugin.api
[/ot]
‍I don't answer to PM with support question
Please post your issue to related board

dke


Joachim Müller

Quote from: dke on July 08, 2007, 10:44:14 AM
new debug:
Posting debug_output although Sami told you not to post it is silly and only clutters the board. When will you learn to read supporter's advice? ::)

dke

Quote from: GauGau on July 08, 2007, 11:05:17 AM
Posting debug_output although Sami told you not to post it is silly and only clutters the board. When will you learn to read supporter's advice? ::)

i was in the "posting mode" when he posted so i didnt see hes post before i had posted the second time :/

Joachim Müller

When submitting a posting, the forum SMF will alert you if a reply has been written while you have been composing your message and asks you if you still want to post your message anyway, so you should first have read Sami's advice no matter what. Yours is a lame excuse.