very slow response

dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Sun, 2014-07-06 23:31

I run Gallery 3 on my SME 8.1 server at www.staubig.com and it runs very slowly.
It appeared to slow down after I had installed several modules.
Disabling all these modules does not seem to have helped. The modules are:
akismet g2_import kohana23_compat recaptcha server_add watermark
comment gallery noffmpeg rest slideshow
exif image_block notification rss tag
forge info organize search user
Does anybody have any ideas on how I can speed it up, please?
Thanks,
- Dusty

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-07-07 20:15

Seems to be reasonably responsive to me.
What if you remove the Google Analytics code? and disable the nav carousel module?
the nav carousel items are not even showing up so I don't know why the code is still there in the source.

Even viewing items directly (items in the gallery3/var) seems to be a bit slow but not that bad. I’m no server expert but if the images directly from the file-system (gallery3/var) & (no DB or php involved) are slow then the rest will be slow as the browser has to wait to render those images.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Mon, 2014-07-07 22:12

It seems okay for me.
A few pages are a bit slower than expected, but I think it's because you're hosted in a different country (UK) than I'm in. (That's to be expected when the website data has to travel back and forth over along distance.)

Having said that, your site's TTFB seems to be much longer than normal. That could be because of your server's setup. There's no easy way for me to assist with that from here, but searching the internet for "TTFB" or "time to first byte" may give you some ideas.

(Also, note that some people think TTFB doesn't matter; others think it's really important. All relative, I guess.)

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2014-07-09 10:23

I have disabled both the Google Analytics and NAV carousel code and restarted the server, but it has not improved the response at all. NAV carousel was enabled for historical reasons.
Thanks for your help,

- Dusty

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Wed, 2014-07-09 11:52

The TTFB response is somewhat strange as www.staubig.com is a subset of www.pulver.co.uk (www.pulver.co.uk/gallery) and runs on the same server with an identical route to it.
However, the TTFB to pulver.co.uk is MUCH faster - I can only blame the code of Gallery3 itself.
I'm going to increase the memory available to PHP and report back.

- Dusty

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Wed, 2014-07-09 12:03

Been reading this out of interest.

Just a suggestion if you are doing some diagnosing on your two domains. Maybe you should try place a static html page on two sites to compare your TTFB. If they are about the same, then maybe you should put a very basic "Hello World" php page or phpinfo page.

I'm thinking this might help you to show whether the problem is Apache, PHP or Gallery.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2014-07-10 21:33

Echo @spags' recommendations.
This is NOT a G3 thing.
(FWIW: I have several G3 sites that all blow the socks off of either of your site's TTFB. It's unlikely that it's G3.)

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Fri, 2014-07-11 23:05

I doubled PHP memory limit to 1024Mb and it increased the TTFB from 6 secs to 7.2secs.
I suspect that this is a problem in my distro - SME server 8.1.
Will head over to the SME forums and try there.
Note that although SME does things in strange ways and is quite well locked down (so no PHP tweaks) it's a brilliant out of the box solution for small businesses, with web server, email server including webmail, backup etc.
I've been using it for fifteen years and this is the first problem I've encountered.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2014-07-17 22:32

@dustypulver: Just checking in. Did you find that it was, in fact, SME? If not, did you try what @spags suggested (above)?

 
dustypulver
dustypulver's picture

Joined: 2013-11-17
Posts: 10
Posted: Fri, 2014-07-18 12:34

Haven't had time to check out whether it's SME and due to my unusual network setup, can't check out @spags suggestion.
Will report back when I get time. Before that I need to upgrade to SME 9.0