Gallery2 Using 1GB virtual ram.

pcp20us
pcp20us's picture

Joined: 2006-03-31
Posts: 109
Posted: Wed, 2013-07-31 09:33

Hi

I have found my g2 install is maxing out 1gb ram on a virtual Cloud Linux system.

I have been working on it, but at a bit of a loss as to where to go from here.
Memory set to 60 M ib php.ini

I have spoken to support and this is what they say.

I have attempted to load your site through FireFox with the firebug plugin, this shows every individual element on the page. Every time someone loads the main page, 42 requests for content are sent to the server, this is a fair amount. You can see in my test in the attached image that 5 of these requests received the 500 internal server error - a typical issue when a script hits the memory limit, it cannot complete running so is killed off.

You will notice that this appears to be from the main.php script, however it looks like the script is being used to grab other contents, below is an example of one of the URLs which is erroring:

http://www.noosaimages.com.au/main.php?g2_view=core.CombinedJavascript&g2_key=853ccbd0922e36f2aae6ad47fe1fe111

Do you know what this is? It's something your CMS is doing. if there are any updates available I'd recommend applying them. main.php appears to be associated with gallery which is causing the resource issues, is there an option within it to cache the images rather than generate them every time main.php is called on page load?

My setup

Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.22 cgi-fcgi
Webserver = Apache
Database = mysqlt 5.5.25-cll, lock.system=flock
Toolkits = ArchiveUpload, Exif, LinkItemToolkit, Thumbnail, Gd, ImageMagick
Acceleration = partial/21600, full/21600
Operating system = Linux ub005lcs08.cbr.the-server.net.au 2.6.32-379.19.1.lve1.2.7.el6.x86_64 #1 SMP Wed Jan 23 14:53:41 EST 2013 x86_64
Default theme = PGtheme
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0
Rows in GalleryAccessMap table = 117
Rows in GalleryAccessSubscriberMap table = 1795
Rows in GalleryUser table = 7
Rows in GalleryItem table = 1788
Rows in GalleryAlbumItem table = 50
Rows in GalleryCacheMap table = 9

 
pcp20us
pcp20us's picture

Joined: 2006-03-31
Posts: 109
Posted: Thu, 2013-08-01 00:16

Hi

I have an install of g3 that i have been testing. When i go to this home page i also receive this error, which is the same i am getting for my g2 install. Something has to be wrong, any ideas?

(12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/noosaima/public_html/g3/index.php

Pete

Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.17 cgi
Webserver = Apache
Database = mysqlt 5.0.96-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, LinkItemToolkit, Thumbnail,