CPU USAGE AFTER UPGRADING CPU USAGE AFTER UPGRADING
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPU USAGE AFTER UPGRADING

Started by JohannM, September 04, 2008, 05:32:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

JohannM

Hi there

I have upgraded to the latest coppermine version, and ever since, my server's CPU are running tops, totally 99.6% on average. This caused by mysql.

Any idea on how this can be possible ?

McKenzie

Do you know which query provoke the high CPU performance? If no you should look with "mtop".

McKenzie

mtop can you finde here: http://mtop.sourceforge.net/

Are your sure that is an mysql problem? Otherwise you should check your logfilers/traffic ... .

JohannM

Hi

According to the sysadmins running my server (rackforce), the CPU load is caused by mysql.  I never use to have this problem, only after the upgrade.

I am looking at mtop now, but i'm not sure how to use / install it.  The readme on the link you gave is dead.


McKenzie

It is hard to help you, because there can be different errors. Maybe a mod/admin can help you.

McKenzie


JohannM

Thanx

I downloaded mtop, and tried to install it with dependencies, but I'm very stupid if it comes to unix / linux things.

The sysadmin can install this at $ 100 per hour. I simply can not afford this.

McKenzie


McKenzie

Oh that cost also money  >:(

What is your url? Have you reboot your server?

JohannM

Taking a look at the mysql.log file I believe I have tracked down the issue:

Note: ****** changed due to security reasons, YSF-PHOTOS2008 is the database name used on my site

# Time: 080904 18:06:52
# User@Host: *****[*****] @ localhost []
# Query_time: 1303  Lock_time: 0  Rows_sent: 50  Rows_examined: 152474977
use YSF-PHOTOS2008;
SELECT user_id as user_id, user_name as user_name, user_email as user_email, UNIX_TIMEST
AMP(user_regdate) as user_regdate, UNIX_TIMESTAMP(user_lastvisit) as user_lastvisit, use
r_active as user_active, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as dis
k_usage, group_name, group_quota FROM `YSF-PHOTOS2008`.cpg_users AS u INNER JOIN cpg_use
rgroups AS g ON u.user_group = g.group_id LEFT JOIN cpg_pictures AS p ON p.owner_id = u.
user_id GROUP BY user_id ORDER BY user_regdate DESC LIMIT 0, 50;

According to the sysadmin, the number of rows (152474977) being queried is the source for the cpu to run in overhead / full capacity.

You know why this is ?

JohannM

Mc

Beleive me, with my limited knowledge, I have tried everything, rebooting, increasing memory, etc.

JohannM

Thing is I am running a sports photo company here in South Africa, the photo's became to much, so I splitted the photo's into years, each on their own "year" system, each with their own directory and databse ...


www.youth-sport-fotos.com 

then to

www.youth-sport-fotos.com/2005

www.youth-sport-fotos.com/2006

www.youth-sport-fotos.com/2007

www.youth-sport-fotos.com/2008


McKenzie

No, I need a query overview. Do you have an mysal backup for CPG?

JohannM

Just made one on the 2007 year system


JohannM

USER:
------------------
Array
(
    [ID] => 03008bc3007081748c34145428dc4cf1
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Admin
    [groups] => Array
        (
           
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 0
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 0
        [can_upload_pictures] => 1
        [can_create_albums] => 0
        [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
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `YSF-PHOTOS2008`.cpg_sessions where time<1220551152 and remember=0; (0.002s)
        [3] => delete from `YSF-PHOTOS2008`.cpg_sessions where time<1219345152; (0.001s)
        [4] => select user_id from `YSF-PHOTOS2008`.cpg_sessions where session_id = 'c786605aadf903a5fc272f1e0a130e4e' (0.001s)
        [5] => select user_id as id, user_password as password from `YSF-PHOTOS2008`.cpg_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 `YSF-PHOTOS2008`.cpg_users AS u INNER JOIN `YSF-PHOTOS2008`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `YSF-PHOTOS2008`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `YSF-PHOTOS2008`.cpg_sessions set time='1220554752' where session_id = 'c786605aadf903a5fc272f1e0a130e4e' (0.001s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_mod_online WHERE last_action < NOW() - INTERVAL 2 MINUTE (0.001s)
        [13] => REPLACE INTO cpg_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'Admin', '198.54.202.234', NOW()) (0.001s)
        [14] => SELECT name, value FROM cpg_config where name REGEXP '^plugin_displayfields_' (0s)
        [15] => SELECT * FROM cpg_shop_config ORDER BY 'priority' (0s)
        [16] => DELETE FROM cpg_banned WHERE expiry < '2008-09-04 18:59:12' (0.001s)
        [17] => SELECT * FROM cpg_banned WHERE (ip_addr='198.54.202.234' OR ip_addr='0.0.0.0' OR user_id=1) AND brute_force=0 (0.001s)
        [18] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = ''  ORDER BY name (0.001s)
        [19] => SELECT aid FROM cpg_albums WHERE category = 40 (0s)
        [20] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 40 (0.001s)
        [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='94872' (0.001s)
        [22] => SELECT aid FROM cpg_albums WHERE category = 2 (0s)
        [23] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0.001s)
        [24] => SELECT aid FROM cpg_albums WHERE category = 3 (0s)
        [25] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.001s)
        [26] => SELECT aid FROM cpg_albums WHERE category = 4 (0s)
        [27] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0.001s)
        [28] => SELECT aid FROM cpg_albums WHERE category = 5 (0s)
        [29] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0.001s)
        [30] => SELECT aid FROM cpg_albums WHERE category = 6 (0s)
        [31] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0.001s)
        [32] => SELECT aid FROM cpg_albums WHERE category = 7 (0s)
        [33] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0.001s)
        [34] => SELECT aid FROM cpg_albums WHERE category = 8 (0s)
        [35] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 8 (0.003s)
        [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='288781' (0.001s)
        [37] => SELECT count(*) FROM cpg_albums as a WHERE category = '8' (0s)
        [38] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=8 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [39] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (161)GROUP BY a.aid (0.013s)
        [40] => SELECT aid FROM cpg_albums WHERE category = 9 (0s)
        [41] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 9 (0.001s)
        [42] => SELECT aid FROM cpg_albums WHERE category = 41 (0s)
        [43] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 41 (0.003s)
        [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='234568' (0.001s)
        [45] => SELECT count(*) FROM cpg_albums as a WHERE category = '41' (0s)
        [46] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=41 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [47] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (142)GROUP BY a.aid (0.014s)
        [48] => SELECT aid FROM cpg_albums WHERE category = 10 (0s)
        [49] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 10 (0.001s)
        [50] => SELECT aid FROM cpg_albums WHERE category = 11 (0s)
        [51] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 11 (0.001s)
        [52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='244959' (0.001s)
        [53] => SELECT count(*) FROM cpg_albums as a WHERE category = '11' (0s)
        [54] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=11 ORDER BY a.pos LIMIT 0,2 (0.001s)
        [55] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (148, 154)GROUP BY a.aid (0.005s)
        [56] => SELECT aid FROM cpg_albums WHERE category = 12 (0s)
        [57] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 12 (0.001s)
        [58] => SELECT aid FROM cpg_albums WHERE category = 13 (0s)
        [59] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 13 (0.001s)
        [60] => SELECT aid FROM cpg_albums WHERE category = 14 (0s)
        [61] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 14 (0.003s)
        [62] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='295908' (0.001s)
        [63] => SELECT count(*) FROM cpg_albums as a WHERE category = '14' (0s)
        [64] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=14 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [65] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (165)GROUP BY a.aid (0.014s)
        [66] => SELECT aid FROM cpg_albums WHERE category = 15 (0s)
        [67] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 15 (0.002s)
        [68] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='292363' (0.001s)
        [69] => SELECT count(*) FROM cpg_albums as a WHERE category = '15' (0s)
        [70] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=15 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [71] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (163)GROUP BY a.aid (0.008s)
        [72] => SELECT aid FROM cpg_albums WHERE category = 16 (0.001s)
        [73] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 16 (0.001s)
        [74] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='303537' (0.001s)
        [75] => SELECT count(*) FROM cpg_albums as a WHERE category = '16' (0s)
        [76] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=16 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [77] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (171)GROUP BY a.aid (0.005s)
        [78] => SELECT aid FROM cpg_albums WHERE category = 43 (0s)
        [79] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 43 (0.005s)
        [80] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='300064' (0.001s)
        [81] => SELECT count(*) FROM cpg_albums as a WHERE category = '43' (0s)
        [82] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=43 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [83] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (168)GROUP BY a.aid (0.031s)
        [84] => SELECT aid FROM cpg_albums WHERE category = 17 (0.001s)
        [85] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 17 (0.063s)
        [86] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='220432' (0.001s)
        [87] => SELECT count(*) FROM cpg_albums as a WHERE category = '17' (0s)
        [88] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=17 ORDER BY a.pos LIMIT 0,11 (0.002s)
        [89] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (134, 140, 146, 150, 151, 152, 156, 157, 158, 159, 160)GROUP BY a.aid (0.579s)
        [90] => SELECT aid FROM cpg_albums WHERE category = 18 (0s)
        [91] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 18 (0.001s)
        [92] => SELECT aid FROM cpg_albums WHERE category = 19 (0s)
        [93] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 19 (0.001s)
        [94] => SELECT aid FROM cpg_albums WHERE category = 20 (0s)
        [95] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 20 (0.001s)
        [96] => SELECT aid FROM cpg_albums WHERE category = 21 (0s)
        [97] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 21 (0.001s)
        [98] => SELECT aid FROM cpg_albums WHERE category = 22 (0s)
        [99] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 22 (0.001s)
        [100] => SELECT aid FROM cpg_albums WHERE category = 23 (0s)
        [101] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 23 (0.001s)
        [102] => SELECT aid FROM cpg_albums WHERE category = 24 (0s)
        [103] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 24 (0.004s)
        [104] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='302549' (0.001s)
        [105] => SELECT count(*) FROM cpg_albums as a WHERE category = '24' (0s)
        [106] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=24 ORDER BY a.pos LIMIT 0,2 (0.001s)
        [107] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (169, 170)GROUP BY a.aid (0.021s)
        [108] => SELECT aid FROM cpg_albums WHERE category = 25 (0s)
        [109] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 25 (0.001s)
        [110] => SELECT aid FROM cpg_albums WHERE category = 26 (0s)
        [111] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 26 (0.001s)
        [112] => SELECT aid FROM cpg_albums WHERE category = 27 (0s)
        [113] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 27 (0.001s)
        [114] => SELECT aid FROM cpg_albums WHERE category = 28 (0s)
        [115] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 28 (0.001s)
        [116] => SELECT aid FROM cpg_albums WHERE category = 29 (0s)
        [117] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 29 (0.044s)
        [118] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='221733' (0.001s)
        [119] => SELECT count(*) FROM cpg_albums as a WHERE category = '29' (0s)
        [120] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=29 ORDER BY a.pos LIMIT 0,13 (0.002s)
        [121] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (135, 136, 137, 139, 141, 143, 144, 145, 147, 153, 166, 167, 172)GROUP BY a.aid (0.402s)
        [122] => SELECT aid FROM cpg_albums WHERE category = 42 (0s)
        [123] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 42 (0.002s)
        [124] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='245119' (0.001s)
        [125] => SELECT count(*) FROM cpg_albums as a WHERE category = '42' (0s)
        [126] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=42 ORDER BY a.pos LIMIT 0,2 (0.001s)
        [127] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (149, 155)GROUP BY a.aid (0.008s)
        [128] => SELECT aid FROM cpg_albums WHERE category = 30 (0s)
        [129] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 30 (0.004s)
        [130] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='228296' (0.001s)
        [131] => SELECT count(*) FROM cpg_albums as a WHERE category = '30' (0s)
        [132] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=30 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [133] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (138)GROUP BY a.aid (0.021s)
        [134] => SELECT aid FROM cpg_albums as a WHERE category>=10000 (0s)
        [135] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
        [136] => SELECT aid FROM cpg_albums WHERE category = 31 (0s)
        [137] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 31 (0.001s)
        [138] => SELECT aid FROM cpg_albums WHERE category = 32 (0s)
        [139] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 32 (0.001s)
        [140] => SELECT aid FROM cpg_albums WHERE category = 33 (0s)
        [141] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 33 (0.004s)
        [142] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='292919' (0.001s)
        [143] => SELECT count(*) FROM cpg_albums as a WHERE category = '33' (0s)
        [144] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=33 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [145] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (164)GROUP BY a.aid (0.024s)
        [146] => SELECT aid FROM cpg_albums WHERE category = 34 (0s)
        [147] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 34 (0.005s)
        [148] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='289875' (0.001s)
        [149] => SELECT count(*) FROM cpg_albums as a WHERE category = '34' (0s)
        [150] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=34 ORDER BY a.pos LIMIT 0,1 (0.001s)
        [151] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (162)GROUP BY a.aid (0.029s)
        [152] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
        [153] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
        [154] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.182s)
        [155] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
        [156] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
        [157] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0.423s)
        [158] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
        [159] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
        [160] => SELECT COUNT(*) FROM `YSF-PHOTOS2008`.cpg_users (0.001s)
        [161] => SELECT COUNT(*) FROM cpg_mod_online (0s)
        [162] => SELECT COUNT(*) FROM cpg_mod_online WHERE user_id <> 0 (0.001s)
        [163] => SELECT user_id, user_name FROM `YSF-PHOTOS2008`.cpg_users ORDER BY user_id DESC LIMIT 1 (0.001s)
        [164] => SELECT user_id, user_name FROM cpg_mod_online WHERE user_id <> 0 (0.001s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.6 - OK
    ------------------
    mySQL version: 5.0.62-log
    ------------------
    Coppermine version: 1.4.19(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    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.22
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.1.2
    Linked Version 1.2.1.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | 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 | .:.:.:.: | .:.:.:.:
    open_basedir | /var/www/vhosts/youth-sport-fotos.com/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 | 30000 | 30000
    max_input_time | 600000 | 600000
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 2.429 seconds - 165 queries in 1.996 seconds - Album set : ; Meta set: ;

    www.youth-sport-fotos.com/2007

    www.youth-sport-fotos.com/2008


    [/quote]

McKenzie

Here is the Backup Plugin, make an Backup: http://forum.coppermine-gallery.net/index.php/topic,40439.0.html ... . Maybe you must reinstall your gallery

This facts won't help me at the moment (it need time to check them),  I'm new @ CPG.

I hope Joachim can help you?

McKenzie

Here are my DEBUG, maybe it is helpful for you (7460 files in 5104 albums and 359 categories), but I don't think so:

JohannM

Let me think ...

When I redone 2007, I stopped with an image count of e.g. 25 847 for year 2007.  When I created the db tables for 2008, I set the auto increasement of pid to 25 848.

Do you think that can be a reason ?

McKenzie

Yes if there is alot of downloading and the script is running contiuously. But not with 200 vistors/day.

Of course, if you have many visitors who watch many files you have a high CPU. If you have 10.000.000.000.000.000.000 Pics and 0 vistors you have 1-2% CPU only.