Author Topic: Gallery VERY slow: Problem? Lots of users/images?  (Read 29348 times)

0 Members and 1 Guest are viewing this topic.

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« on: June 04, 2003, 08:06:51 PM »
Hi guys

would appreciate if you could help.

I have a gallery and currently use it for vids and images. have around 2500 pics and 50 vids.

However the gallery runs very slowly whenever there are lots of users online. at peak times I get 35 simultantous users browsing and downloading.

anything higher than 20 users and the gallery slows down.

so can anyone suggest direct ways to improve the gallery speed as during peak times it takes an initital 20 seconds just to load the front page, even with my broadband connection.

My forums which is hosted on same server loads instantly, then again it only has around 5-10 users online at once.

plz plz suggest methods to make gallery faster.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Gallery VERY slow: Problem? Lots of users/images?
« Reply #1 on: June 04, 2003, 10:23:28 PM »
first I'd turn off random image feature (u can find lots of posts around here with how to do so. or search for random_image)
also, if u use MOD "Random new images" then I'd restore that to default, that just shows new images.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #2 on: June 04, 2003, 10:37:58 PM »
Quote from: V@no
first I'd turn off random image feature (u can find lots of posts around here with how to do so. or search for random_image)
also, if u use MOD "Random new images" then I'd restore that to default, that just shows new images.


yep i have done that as that is the obvious thing that came to mind first. iit did make a small difference. but any other tips?

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Gallery VERY slow: Problem? Lots of users/images?
« Reply #3 on: June 04, 2003, 10:40:07 PM »
Could you possibly provide a link so we can check it out?
Thanks

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #4 on: June 04, 2003, 10:48:20 PM »
http://www.masalahome.com/gallery/

would appreciate any other help u guys can give to increase speed of gallery

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #5 on: June 04, 2003, 10:49:26 PM »
this is the code i removed in the pages (random images)
____________________________________________________________

{if random_cat_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">
                        <br />
                        {random_cat_image}
                        <br />
                        <br />
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {endif random_cat_image}

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Gallery VERY slow: Problem? Lots of users/images?
« Reply #6 on: June 04, 2003, 10:53:43 PM »
Yep, loaded very slow.
First thought, remove the code for your popups and see how it goes.
Second thought, how's your hosting?  Have you had any problems as far as speed (possibly server load) before?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Gallery VERY slow: Problem? Lots of users/images?
« Reply #7 on: June 04, 2003, 10:55:52 PM »
Quote from: rohanrohanrohan
this is the code i removed in the pages (random images)

by removing it from template, doesnt do ANY good, 4images still generate the random images.
check in /includes/constants.php file for random image. set to 0 (there should be two define(..);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #8 on: June 04, 2003, 10:57:04 PM »
well hosting is fine as have a forums hosting on it and it runs fine even with 10 users online at once.

im not to worried about forum speed. its gallery speed as the gallery is becoming more and more popular.

as for popups that is not problem. i just added the popups about 2-3 days. gallery speed was slow before that anyways.

do i think removing the "new images" section would increase gallery speed?

any other suggestions

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Gallery VERY slow: Problem? Lots of users/images?
« Reply #9 on: June 04, 2003, 11:03:06 PM »
Well, other than that, I really can't think of why the gallery as a whole might be slow.  It can't be pin-pointed to one particular feature of the gallery since the gallery is slow on every page (and most pages don't have the random image stuff, etc).

<opinion>I don't think it's a problem with the gallery.  My site doesn't get quite as many hits, but it still gets a decent chunk of traffic, and I have had no problems.  If you think about it, the script is just PHP and MySQL, which runs very fast.  I just dunno, but I don't think it's the script.</opinon>

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #10 on: June 04, 2003, 11:04:44 PM »
Ah! thanks veno! done that change in constants.php.

well definitely saw speed increase. still are there any other suggestions? cause the gallery will grow more and more and if i can implement changes now it will be better for future growth

thanks for the help so far.

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #11 on: June 04, 2003, 11:07:21 PM »
BTW i read on this forum that turning on/off gzip may have an effect.

i know turning it on will save bandwidth as pages will be compressed but wouldnt that increase server load as for every page requested the server has to run an extra command.

currently i have it turned on to compression level 5

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Gallery VERY slow: Problem? Lots of users/images?
« Reply #12 on: June 04, 2003, 11:08:31 PM »
What about bandwidth being sucked dry by video downloads?
Would that be a possible source?

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #13 on: June 04, 2003, 11:12:55 PM »
well yes thats an effect also. but i had vids before on the server anyways. yes i have added more vids than last time so more server load. but im just looking for ways to increase gallery db loading

also BTW my forums loads fast. actually it loads instantly hosted onsame server.

Offline rohanrohanrohan

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Gallery VERY slow: Problem? Lots of users/images?
« Reply #14 on: June 07, 2003, 03:08:17 PM »
have made the changes suggested and gallery does run faster. but still anotceable slowness when 20+ users logged in. ive turned off guest browsing of caps also.

any other way to make gallery faster?