forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Cyberpawz on March 31, 2006, 05:44:34 am

Title: Slowdown...
Post by: Cyberpawz on March 31, 2006, 05:44:34 am
The rest of my site is fast, or faster than I can complain about, but every time I attempt to go to:

http://www.cyberpawz.com/coppermine/

The site takes nearly a minute plus to load.  Becore I uploaded to 1.4.4 the server had a decent amount of speed to it, now it seems to be rather slow.  Is there a reason for this?

The connection it has is a 5Mbps download, and a 1Mbps upload, this should not be happening.
Title: Re: Slowdown...
Post by: Joachim Müller on March 31, 2006, 08:08:43 am
reduce the number of queries needed to build the page by removing or reducing the meta albums. I have no other suggestions. Self-hosting is not recommended.
Title: Re: Slowdown...
Post by: Cyberpawz on March 31, 2006, 02:43:15 pm
reduce the number of queries needed to build the page by removing or reducing the meta albums. I have no other suggestions. Self-hosting is not recommended.

How exactly do I do that?

As for self hosting that isn't much of an issue soon I'm going to be upgrading up to a 30 down 15 up connection soon.
Title: Re: Slowdown...
Post by: Joachim Müller on March 31, 2006, 06:55:01 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Title: Re: Slowdown...
Post by: Cyberpawz on April 01, 2006, 12:01:47 am
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing


Changing the meta albums info is going to affect the index.php page? Just out of curiosity I'd like to know how that exactly works if possible.  I read what was on the link you gave me, and it says the meta data is something that the cameras utilize, but even so... how does that affect the front page when none of that data is shown?

Especially since it seems the rest of the site doesn't have the slowdown the main page does.
Title: Re: Slowdown...
Post by: Joachim Müller on April 01, 2006, 08:18:18 am
"meta (http://computing-dictionary.thefreedictionary.com/Meta)" is greek and means "transcending/above/beyond", so in computer terms this means "additional". You're mixing up terms here: in HTML, there is meta information that contains additional information about a page. Meta data from cameras contain additional information about a pic (e.g. the date when it was taken), there are several picture meta data specifications, e.g. EXIF or IPTC. In coppermine, we refer to the "pseudo"-albums like "last uploaded" or "random" as "meta albums", as they're not real albums, but they visually behave as if they were.
I was suggesting to get rid of those meta albums or reduce the number of them on your index pages, by changing "The content of the main page" from "catlist/alblist/random,2/lastup,2" to "catlist/alblist/random/lastup" or even "catlist/alblist".
The reason for my recommendation: when composing the meta albums, coppermine needs to perform huge queries, which may cause slowdowns for less powerful servers or for pages with huge traffic.
Title: Re: Slowdown...
Post by: Stramm on April 01, 2006, 09:19:01 am
don't allow private user galleries, that'll take a lot of heat of the mysql server
Files and thumbnails advanced settings - Albums can be private (Note: if you switch from 'yes' to 'no' any current private albums will become public) -> set this to 'no'

and maybe you want to enable debug mode
Title: Re: Slowdown...
Post by: Cyberpawz on April 01, 2006, 05:29:56 pm
OK, but still how come it seems to me that the only slowdown, is on the main page... not after you click anywhere else... I could understand if the server slowed down when you accessed folders, and had all data of theirs showing...which I don't have...

But this is where the intro page is I am a little lost of why the slowdown only exists on the first page and no where else...

Oh and I did the debug mode... want me to post the data here or PM it? So far nothing looks out of the ordinary, or nothing there shows what would cause this problem in the first place.
Title: Re: Slowdown...
Post by: Stramm on April 01, 2006, 07:27:28 pm
The index is the most resource hungry page.
Read above for my suggestions.
Title: Re: Slowdown...
Post by: Cyberpawz on April 01, 2006, 10:11:34 pm
The index is the most resource hungry page.
Read above for my suggestions.

There are only three people that utilize private galleries in my server... no more than that, and they each only have one gallery a piece with a maximum of 20 photos in one... so I don't know how that would cause my index.php to slow to a crawl after upgrading to 1.4.4 when 1.4.3 had no issues like this at all.
Title: Re: Slowdown...
Post by: Stramm on April 02, 2006, 10:48:21 am
don't allow private user galleries, that'll take a lot of heat of the mysql server
...
and maybe you want to enable debug mode

if you don't want my help... OK
Title: Re: Slowdown...
Post by: Cyberpawz on April 02, 2006, 05:11:57 pm
if you don't want my help... OK

Actually if you read the post again I stated I put debug mode on... and asked what I should do with the text that it creates... you never responded... I hate to be rude, but reading what the other person types goes both ways.
Title: Re: Slowdown...
Post by: Stramm on April 02, 2006, 08:41:21 pm
Before I wrote my last msg I checked and didn't see debug on... same as now
Title: Re: Slowdown...
Post by: Cyberpawz on April 02, 2006, 11:00:11 pm
Before I wrote my last msg I checked and didn't see debug on... same as now

I put debug mode only on as for the Admins to see, I don't need the end users to see debugging information... if you want to see it then tell me, and I'll post it here.


USER:
------------------
Array
(
    [ID] => f0d043fcaded179e3f8efa09dfcb7420
    [am] => 1
    [liv] => Array
        (
            [search] => Array
        (
            [search] => private
            [album] => search
            [newer_than] =>
            [older_than] =>
            [type] => AND
        )

)

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

    [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] => 5
    [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
(
   
Title: Re: Slowdown...
Post by: Joachim Müller on April 03, 2006, 07:09:44 am
as expected, the query to populate the random meta album is burning most cpu cyles. Turn the random pics off as suggested.
Title: Re: Slowdown...
Post by: Cyberpawz on April 03, 2006, 07:22:05 am
as expected, the query to populate the random meta album is burning most cpu cyles. Turn the random pics off as suggested.

Which is where? I already tried to do so in the config section of the forum, and so far the option to do so isn't worded as elegant as you state it here.
Title: Re: Slowdown...
Post by: Joachim Müller on April 03, 2006, 07:28:52 am
I have a deja vu, is this thread stuck in an endless circle? Did you actually read the docs as I suggested:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Title: Re: Slowdown...
Post by: Cyberpawz on April 03, 2006, 02:09:39 pm
I have a deja vu, is this thread stuck in an endless circle? Did you actually read the docs as I suggested:

Yes and I figured it out myself, the reason I asked was because the page didn't load fast enough, and the link you gave me didn't go towards where you pointed. I was looking for the words you used, so cut down on the reading and the chase...