Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Performance Issues  (Read 2364 times)

0 Members and 1 Guest are viewing this topic.

slowhand

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Performance Issues
« on: February 23, 2006, 09:40:13 pm »

First, I successfully installed the board and that is a great testament to the documentation and its ease.

However, I am having serious performance issues.  I do not know if this is related to something I have/have not done with the install or whether the host is poor.  Most of the time, pages take forever to load and occasionally time out.  Every once in a while, it is very fast, so I am beginning to suspect my host.

I am hosted on yahoo and below is the debug info if anything usefull can be extracted from it.

USER:
------------------
Array
(
    [ID] => ad8405cb5ca60391f03059006e82d842
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 2
  • [1] => 9
                [2] => 78
                [3] => 65
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
[user_id] => 1
    [user_name] => ocean_461
    [groups] => Array
        (
           
  • => 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] => 5
    [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
(
   
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.015s)
  • [1] => select * from cpg143_plugins order by priority asc; (0.024s)
        [2] => delete from `photoalbum`.cpg143_sessions where time<1140722391 and remember=0; (0.012s)
        [3] => delete from `photoalbum`.cpg143_sessions where time<1139516391; (0.007s)
        [4] => select user_id from `photoalbum`.cpg143_sessions where session_id=md5("85ac573ac5b23440c07fdd1ff8a7112ae7b6a2fb4828ff534f193aefe0b67769"); (0.002s)
        [5] => select user_id as id, user_password as password from `photoalbum`.cpg143_users where user_id=1 (0.01s)
        [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 `photoalbum`.cpg143_users AS u INNER JOIN `photoalbum`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.006s)
        [7] => SELECT user_group_list FROM `photoalbum`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0.007s)
        [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 cpg143_usergroups WHERE group_id in (1) (0.003s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.003s)
        [10] => update `photoalbum`.cpg143_sessions set time='1140725991' where session_id=md5('85ac573ac5b23440c07fdd1ff8a7112ae7b6a2fb4828ff534f193aefe0b67769'); (0.004s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.013s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-02-23 20:19:52' (0.022s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='xxx.xxx.xxx.xxx' OR ip_addr='xxx.xxx.xxx.xxx' OR user_id=1) AND brute_force=0 (0.009s)
        [14] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = ''  ORDER BY pos (0.013s)
        [15] => SELECT aid FROM cpg143_albums WHERE category = 2 (0.019s)
        [16] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category = 2 (0.01s)
        [17] => SELECT count(*) FROM cpg143_albums as a WHERE category = '2' (0.002s)
        [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,7 (0.04s)
        [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 cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 2, 3, 5, 6, 8, 12)GROUP BY a.aid (0.008s)
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='25' (0.004s)
        [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='59' (0.006s)
        [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='51' (0.008s)
        [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='55' (0.002s)
        [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='73' (0.003s)
        [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='80' (0.002s)
        [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='65' (0.002s)
        [27] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '2'  ORDER BY pos (0.003s)
        [28] => SELECT aid FROM cpg143_albums as a WHERE category>=10000 (0.003s)
        [29] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category >= 10000 (0.004s)
        [30] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '1'  ORDER BY pos (0.007s)
        [31] => SELECT aid FROM cpg143_albums as a WHERE category = '0' (0.01s)
        [32] => SELECT count(*) FROM cpg143_albums as a WHERE 1 (0.02s)
        [33] => SELECT count(*) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.119s)
        [34] => SELECT count(*) FROM cpg143_comments as c LEFT JOIN cpg143_pictures as p ON c.pid=p.pid LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0.023s)
        [35] => SELECT count(*) FROM cpg143_categories WHERE 1 (0.003s)
        [36] => SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1 (0.004s)
        [37] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.006s)
        [38] => SELECT count(*) FROM cpg143_albums as a WHERE category = '0' (0.011s)
        [39] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,4 (0.005s)
        [40] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (4, 9, 10, 11)GROUP BY a.aid (0.091s)
        [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='64' (0.004s)
        [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='85' (0.005s)
        [43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='87' (0.063s)
        [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg143_pictures WHERE pid='92' (0.005s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.11 - OK
    ------------------
    mySQL version: 4.1.14
    ------------------
    Coppermine version: 1.4.3(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
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    sql.safe_mode | Off | Off
    disable_functions | leak, symlink | leak, symlink
    file_uploads | On | On
    include_path | .:/include:/usr/lib/php | .:/include:/usr/lib/php
    open_basedir | no value | 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 | 90 | 90
    max_input_time | -1 | -1
    upload_max_filesize | 50M | 50M
    post_max_size | 50M | 50M
    ==========================
    Page generated in 4.765 seconds - 45 queries in 0.642 seconds - Album set : ; Meta set: ;
« Last Edit: February 23, 2006, 11:27:40 pm by Nibbler »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Performance Issues
« Reply #1 on: February 23, 2006, 10:54:25 pm »

Quote
I am hosted on yahoo

You hit the nail right on the head.  I'm fairly certain your problems stem from your host.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

slowhand

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Performance Issues
« Reply #2 on: February 23, 2006, 11:24:20 pm »

You hit the nail right on the head.  I'm fairly certain your problems stem from your host.

Figured as much.  I think I'll go and find myself another host.

Thanks and kudos to you and the rest of the team for a well documented and painless process.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 21 queries.