[SOLVED] Gallery very slow

goosman

Joined: 2009-07-03
Posts: 15
Posted: Thu, 2009-08-20 07:14

Hi

I really like the new Gallery 3.0 beta 2.
Unfortunately the gellery is VERY slow. When I click in the menu it takes 3-5 seconds before a page like /admin/users is displayed. When I browse my photos, it even takes longer.

My server has a lot of power, and 5-6 other websites using TYPO3 are installed on the same server - running very smoothly.

What could be the problem?
Please help...

Regards Goos

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 78
Posted: Sun, 2009-08-23 11:05

I my case it was my hosting company (sity.nl (and their support sucks *** as well)). Did you rule that out?
Should be quite fast unless you run into errors. Did you check your apache & gallery logs?

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Mon, 2009-08-24 07:24

Hi the hoster should be OK ;-)

My galley log says:

2009-08-20 08:59:08 +02:00 --- error: Uncaught Kohana_404_Exception: The page you requested, combined/javascript/64a8abf40708d2c449343d2bfc90bf17.js, could not be found. in file system/core/Kohana.php on line 841
2009-08-20 08:59:08 +02:00 --- error: Uncaught Kohana_404_Exception: The page you requested, combined/css/0ee9b1fa8d5eb68dbb7eafffe58f9604.css, could not be found. in file system/core/Kohana.php on line 841

And thats true there are no such files...

Apache log no errors...

Any idears?

Thanx Goos

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 78
Posted: Mon, 2009-08-24 10:47
goosman wrote:
My server has a lot of power, and 5-6 other websites using TYPO3 are installed on the same server - running very smoothly.
Regards Goos

Should've known. Didn't read properly. Did you try the latest experimental version? A lot is changed since beta2

You can find it at http://github.com/gallery/gallery3/zipball/master
Upgrade instructions can be found here: http://codex.gallery2.org/Gallery3:Upgrading

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-08-24 13:05

Yes, that issue very most likely was fixed after B2 was released.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Mon, 2009-08-24 13:16

I tried the upgrader from 3.1.1 on this page: http://codex.gallery2.org/Gallery3:Upgrading
But no improvement.

The page: http://github.com/gallery/gallery3/zipball/master is not loading...

Help? Please ;-)
Goos

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-08-24 13:26

3.1.1? Not familiar with that version seeing as how 3.0 hasn't been released :)

Try to download from github later, or it might also take a bit as they are generating a zip on the fly just for you :) If you have SSH access to the server try this:
http://codex.gallery2.org/Gallery:Using_Git

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Mon, 2009-08-24 13:41

3.1.1 is not the version, but list number ;-)
I'll try later... thanx

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Wed, 2009-08-26 08:55

Just installed the latest version from http://github.com/gallery/gallery3/zipball/master and still VERY slow... hmmm what the **** is this...?? I would realy like to use gallery 3, maybe I just have to wait for a stable release...

Thanx for your help!!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-08-27 14:53

goosman, can you post a link to your G3 site?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Thu, 2009-08-27 15:45

Sure: http://foto.goos.dk

I added some test fotos so you can see how slow it is...

Gallery Stats

* Version: 3.0 git (pre-beta3)
* Albums: 2
* Photos: 10

Platform Information

* Host name: ***
* Operating System: Linux 2.6.18.8-xenU-static-i686-uk9
* Apache: Apache/2.2
* PHP: 5.2.10
* MySQL: 5.0.32-Debian_7etch10-log
* Server load: Unavailable

Regards
Goos

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-08-27 17:05

Thanks. Yes, we're seeing that the generation for the combined JS and CSS is slower than it should be. Could you give us a bit more info about your virtual server's environment?

How much memory do you have allocated to your server? Are you able to see if swap it getting hit?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Thu, 2009-08-27 18:09

This is the server: http://www.hosteurope.de/produkt/WebPack-Pro-XL
Most of it should be readable even though it is german...

How do I see if "swap is getting hit"? I don't have root access...

Goos

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-08-27 18:21

Do you have SSH access?

If so, try running the free command. Is your VPS managed then if you don't have root access?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Thu, 2009-08-27 19:11

Yes it is managed... I have SSH access, but nothing happens when I run the free command... No output.

I also tried this one: cat /proc/meminfo
But I don't have access to that file...

Anything else I can do to find out whats wrong?

Goos

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-08-27 20:49

See if your host can either give you access to run the free command or can work with you that at about the same time you are browsing your site. It would be great to see if the swap file is being used.

I know a work around would be to create static JS and CSS files for your theme, but we'd like to try and see if we can fix this.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Fri, 2009-08-28 07:52

I wrote to my host, and they say there is no swap file (is that the problem) and they can't give me access to the /proc/meminfo file...
Not much help there ;-(
What else can I do to help you find the problem?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-08-28 17:07

I don't think no swap would be a problem unless you are running out of memory. Do you know what the memory usage is?

Are they able to see what the load on the disk I/O is when browsing your G3 install?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Mon, 2009-08-31 08:38

Unfortunately I don't have access to that information, and they are not very helpfull at my hoster with that kind of information...

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-09-04 16:05

Sorry for the long silence. I'd love to jump in and debug this. Any chance I can get direct access to your system, Okat? I'd want to read/write the Gallery3 code so that I can enable profiling and make some tweaks to see if I can get it to go faster for you.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 78
Posted: Fri, 2009-09-04 17:06

@bharat: I think you mean goosman (OP). I changed hosts to www.in.nl. Costs more but I actually get support. Wrong PHP version though (5.2.0-8+etch13). Doesn't seem to cause any problems, though.

Unless you want access for the access problem I talked about in "http://gallery.menalto.com/node/90675" but I think I'll reinstall latest experimental including the DB for that one, it's cluttered with data from older updates/versions.

 
goosman

Joined: 2009-07-03
Posts: 15
Posted: Mon, 2009-09-07 11:40

Hi bharat - I would love to, but can't give you access to the server, as there are a lot of customers on this server...

I have a testserver on a similar environment - I will set everything up and send you the info... Could take a few days as I am very bussy these days - but thanx a lot for now!!!

 
JoeBahr

Joined: 2010-05-03
Posts: 17
Posted: Fri, 2010-08-27 19:19

Hi, i run into the same issue, exect that i host my own server and that it is even slow on local access. for sure this is not due to my internal network.

Altough, the stats of my gallery are a bit higher for sure but i don't know exactly where i can get it from. Any advise would be great.

you can access it from here : http://gallery.joebahr.org/

regards,
JoeBahr

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2010-08-29 06:54

@JoeBahr: I'd like to get to the bottom of this. Please refer to http://gallery.menalto.com/node/93000#comment-331814 to enable profiing info on your site and share with me a u/p so that I can log in and see your page statistics. That should help me to understand what's going wrong.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Rivendale

Joined: 2010-08-30
Posts: 3
Posted: Mon, 2010-08-30 05:35

I had the same issue. Gallery on IIS. 6 seconds of abosolutly no system activity everytime to load main.php. Took me a long time to figure out. Go to the SQL server manager network configuration protocols and make sure that the TPC/IP is enabled. Gallery will work with shared memory, so i never thought of it, but it's slow as a dog. MAKES A HUGE DIFFERENCE. Also check to make sure you have local host 127.0.0.1 in your HOST file. Gallery does not like the version six ip for that.

aj

 
JoeBahr

Joined: 2010-05-03
Posts: 17
Posted: Mon, 2010-08-30 11:14
bharat wrote:
@JoeBahr: I'd like to get to the bottom of this. Please refer to http://gallery.menalto.com/node/93000#comment-331814 to enable profiing info on your site and share with me a u/p so that I can log in and see your page statistics. That should help me to understand what's going wrong.

---

Job done and I just sent you the details to connect.

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Mon, 2010-10-18 18:50

I'm having same problem its not host because my sites are as fast as can be except gallery3
anyone find a solution to this slowness its like AOL on 28k modem. It takes forever to open

http://lulumarr.com/gallery3

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-10-18 19:06

First thing, try upgrading to the latest version. You're running RC2 (IIRC)
According to your gallery3/modules/gallery/module.info file

Download for the official release can be downloaded from the home page. Upgrade instructions here:
http://codex.gallery2.org/Gallery3:Upgrading

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Mon, 2010-10-18 21:59

Updated to latest version and no changes its still slower than a slug
I checked my logs and all 10 say same thing except for 1st one has more because of the original install

<?php defined('SYSPATH') or die('No direct script access.'); ?>

should i do a complete reinstall? i hope not i have close to 200 pictures in there

I have
OS Name Microsoft Windows 7 Home Premium
Version 6.1.7600 Build 7600
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name HENRY-PC
System Manufacturer HP-Pavilion
System Model AU917AA-ABA e9270f
System Type x64-based PC
Processor Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz, 2801 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. 5.08, 10/16/2009
SMBIOS Version 2.6
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "6.1.7600.16385"
User Name Henry-PC\Henry
Time Zone Eastern Daylight Time
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.99 GB
Available Physical Memory 5.92 GB
Total Virtual Memory 16.0 GB
Available Virtual Memory 13.7 GB
Page File Space 7.99 GB
Page File C:\pagefile.sys

its not my pc or my connection that is 30mb/5mb

I run 3 sites including gallery 3 and Gallery3 is slow as hell the other 2 sites are super fast

any suggestions please

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-10-18 22:06

First, Windows is not a supported server platform. So if it's slow here, there's not a lot of time we're going to invest in troubleshooting this.

The only speed issue regarding Windows that pops to mind was someone who had their sites hosts via a UNC path. Make sure that you are not hosting the site via UNC paths \\servername\share It must be hanging off a drive letter, mapped seems to work just fine.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Mon, 2010-10-18 22:42

its not on windows where does it say that? Sorry for the confusion that's my pc info not server info

server info

Server
Apache/1.3.41
(Unix) mod_fastcgi/2.4.6
mod_auth_passthrough/1.8
mod_log_bytes/1.2
mod_bwlimited/1.4
FrontPage/5.0.2.2635
mod_ssl/2.8.31
OpenSSL/0.9.7a

PHP Version
5.2.9

MySQL
5.0.90-community

Charset
utf-8

http://lulumarr.com/gallery3

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Mon, 2010-10-18 22:57

I'm going to reinstall again i have a lot of times on my hands if its still slow I'll post here

Respectfully

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-10-18 23:03

Apache 1.x isn't supported either.

Ah, just noticed you're using Lunar Pages. Find out more about their setup and how your files are mounted to the server.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-10-18 23:23

FYI, here's the system reqs for G3:
http://codex.gallery2.org/Gallery3:Requirements
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Wed, 2010-10-20 12:12

Hi ok i sent the above link to lunarpages ant told them i wanted a server that would run Gallery3

they moved me to a new server last night

System Information
Linux commodus.lunariffic.com 2.6.18-194.11.3.el5PAE #1 SMP Mon Aug 30 17:02:48 EDT 2010 i686 i686 i386 GNU/Linux
Operating System CentOS release 5.5 (Final)
Kernel Version 2.6.18-194.11.3.el5PAE
Apache Version 2.2.3
MySQL Version 5.0.77
PERL Path /usr/bin/perl
PERL Version 5.8.8
PHP Path /usr/bin/php
PHP Version 5.2.9
Ruby Path /usr/local/bin/ruby
Ruby Version 1.8.7

and ffmpeg

I will be reinstalling gallery3 this weekend as i have to do some changes on my directories
I will post on how it goes

Thanks for all the help

 
Hemarr
Hemarr's picture

Joined: 2008-05-27
Posts: 15
Posted: Fri, 2010-10-22 14:41

OK the new server did it for me. Gallery 3 working at normal speed now, thanks for all the help. Apache Version 2.2.3 did it
http://lulumarr.com/gallery3

 
JoeBahr

Joined: 2010-05-03
Posts: 17
Posted: Thu, 2010-10-28 14:36
JoeBahr wrote:
bharat wrote:
@JoeBahr: I'd like to get to the bottom of this. Please refer to http://gallery.menalto.com/node/93000#comment-331814 to enable profiing info on your site and share with me a u/p so that I can log in and see your page statistics. That should help me to understand what's going wrong.

---

Job done and I just sent you the details to connect.

Hi Bharat, did you ever had time to look at it ?

Fory info, the stats of the G3.
Gallery stats

* Version: 3.0 (Santa Fe)
* Albums: 416
* Photos: 22607

Platform information

* Host name: web
* Operating system: Linux 2.6.32-24-generic
* Apache: Apache/2.2.14 (Ubuntu)
* PHP: 5.3.2-1ubuntu4.5
* MySQL: 5.1.41-3ubuntu12.6
* Server load: 0.10 0.19 0.11
* Graphics toolkit: graphicsmagick

Regards,
JB

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2010-10-31 19:00

I don't have any private messages or emails in my queue so I assume that I did. I get a lot of those requests though so it's hard to keep them straight. Send me the details again if the problem is still happening.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git