4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2018, 07:59:46 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Gallery VERY slow: Problem? Lots of users/images?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 » »» Print
Author Topic: Gallery VERY slow: Problem? Lots of users/images?  (Read 22778 times)
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« 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.
Logged

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)
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: June 04, 2003, 10:37:58 PM »

Quote from: V@no   [Expand]
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?
Logged
www.girls-on-bikes.com
Full Member
***
Offline Offline

Posts: 145

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #3 on: June 04, 2003, 10:40:07 PM »

Could you possibly provide a link so we can check it out?
Thanks
Logged

rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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}
Logged
www.girls-on-bikes.com
Full Member
***
Offline Offline

Posts: 145

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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?
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #7 on: June 04, 2003, 10:55:52 PM »

Quote from: rohanrohanrohan   [Expand]
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(..);
Logged

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)
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
www.girls-on-bikes.com
Full Member
***
Offline Offline

Posts: 145

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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>
Logged

rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
www.girls-on-bikes.com
Full Member
***
Offline Offline

Posts: 145

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« 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?
Logged

rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged
rohanrohanrohan
Full Member
***
Offline Offline

Posts: 200

Thank You
-Given: 0
-Receive: 0


View Profile
« 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?
Logged
Pages: [1] 2 3 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.083 seconds with 19 queries.