Why is Gallery2 embedded so slow and is there a solution?

djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Wed, 2008-09-24 17:37

I have just come to the end of my 3rd attempt at setting up an embedded install of gallery2 into Drupal 5.10

As with previous attempts dating back to Drupal 4.6 I've had to abandon the project due to excruciatingly slow page loads. Typically there is a pause of around 4-5 seconds before a page will even load. When trying to navigate through an album of images this becomes very tedious.

I've tried turning off G2 URL rewrites. Caching on and off. No difference in speed. My VPS host tells me the delay must be caused by too many re-directs - but I don;t see how this can be happening with URL rewrites off.

Un-embedded my gallery2 install is fine. Is this slow down just the penalty ones has to pay for running two scripts together?

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sat, 2008-09-27 14:58

Is anybody else having any speed issues with gallery2 embedded in Drupal?
...or is it just me?

 
steinmb01
steinmb01's picture

Joined: 2005-04-07
Posts: 31
Posted: Sun, 2008-09-28 13:09

No I have not had this problem. To many redirects, hmmm.... But that is something they just think? Can you provide some URL so I can also do some tests? When you disabled the URL rewrites in the Drupal module did it get removed from your .htaccess file? And did you also disable URL rewrite in Gallery?

--
Stein Magne

 
steinmb01
steinmb01's picture

Joined: 2005-04-07
Posts: 31
Posted: Sun, 2008-09-28 13:46
 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sun, 2008-09-28 14:18

Thanks Stein.

Currently URL re-write is on in gallery, I tried it deactivated but saw no improvement in speed.
My Drupal embedded site is here: http://216.108.227.137/
The un-embedded site is here: http://216.108.227.137/collective/main.php

They both seem very slow today - I'm using A Plus VPS hosting - but the embedded gallery is much slower.

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sun, 2008-09-28 14:21

*Note some of the images in the gallery are are actually links to the live site (hosted by HostRocket)
- you will notice the address change.

 
steinmb01
steinmb01's picture

Joined: 2005-04-07
Posts: 31
Posted: Sun, 2008-10-05 03:40

Have to checked Gallery2 .htaccess file and looked your rewrite rules? Even if you have disabled rewrite from GUI in Drupal gallery setting and in Gallery admin.

 
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sun, 2008-10-05 11:22

Thanks for the feedback steinmb01.
I have disabled all URL Rewrite functions in both gallery and Drupal. Also removed the rules from the .htaccess file.
I've now also switch on normal caching and aggregation of CSS and javascript. Overall I can see that there is a slight speed gain but it seems to me the initial 'contacting site' delay is still there - which leads me to believe it is my hosting company Serverpoint (also trading as A-Plus I believe) that is slow. I am in London UK and they are in LA or somewhere around West Coast of the US. I've used HostRocket which is based in NY with no issues - so you wouldn't think that distance would be that relevant. But maybe that extra stretch across the US is having an impact?

If you have a moment could you please test the site now and give me a report on page load times - and also let me know where you are based? That would be great :)

Thanks

DJ