Allowed memory size

hamba

Joined: 2005-06-25
Posts: 54
Posted: Sat, 2007-08-18 01:03

Hi
I know there are 100s topics on this but using 512M of memory when running the maintenance scripts? This can not be right. I have only about 32000 items in total

This is the error I got when I ran all the scripts, all the scripts ran and finished but I can't run the Integrity Check, if I do I get this error. I also got this error on 128M and 256M when I tried to run the Build all thumbnails/resizes 512M is the lowest I could go when running the Build all script.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 7680 bytes) in /usr/local/www/gallery2/modules/core/classes/GalleryStorage/GalleryStorageExtras.class(1988) : assert code on line 1, referer: h**p://gallery.violetlan.net/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance&g2_statusId=xe8163835

Here are my system specs

Gallery version = 2.3-svn core 1.2.20 r15605
API = Core 7.34, Module 3.7, Theme 2.6, Embed 1.2
PHP version = 5.2.3 apache2handler
Webserver = Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.3 with Suhosin-Patch
Database = mysqli 5.0.45, lock.system=flock
Toolkits = Exif, LinkItemToolkit, Thumbnail, ArchiveUpload, ImageMagick, NetPBM, Gd, SquareThumb
Acceleration = full/1800, none/0
Operating system = FreeBSD  6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Aug 16 22:54:19 CEST 2007 :/usr/obj/usr/src/sys/MYKERN amd64
Default theme = violet
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070713 FreeBSD/i386 Firefox/2.0.0.5
Rows in GalleryAccessMap table = 248
Rows in GalleryAccessSubscriberMap table = 31852
Rows in GalleryUser table = 19
Rows in GalleryItem table = 31848
Rows in GalleryAlbumItem table = 511
Rows in GalleryCacheMap table = 7699

Any ideas as to why it uses that much memory...

 
hamba

Joined: 2005-06-25
Posts: 54
Posted: Sat, 2007-08-18 01:05
hamba wrote:
Hi
I know there are 100s topics on this but using 512M of memory when running the maintenance scripts? This can not be right. I have only about 32000 items in total

This is the error I got when I ran all the scripts, all the scripts ran and finished but I can't run the Integrity Check, if I do I get this error. I also got this error on 128M and 256M when I tried to run the Build all thumbnails/resizes 512M is the lowest I could go when running the Build all script.

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 7680 bytes)
 in /usr/local/www/gallery2/modules/core/classes/GalleryStorage/GalleryStorageExtras.class(1988) :
 assert code on line 1, referer: h**p://gallery.violetlan.net/main.php?g2_view=
core.SiteAdmin&g2_subView=core.AdminMaintenance&g2_statusId=xe8163835

Here are my system specs

Gallery version = 2.3-svn core 1.2.20 r15605
API = Core 7.34, Module 3.7, Theme 2.6, Embed 1.2
PHP version = 5.2.3 apache2handler
Webserver = Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.3 with Suhosin-Patch
Database = mysqli 5.0.45, lock.system=flock
Toolkits = Exif, LinkItemToolkit, Thumbnail, ArchiveUpload, ImageMagick, NetPBM, Gd, SquareThumb
Acceleration = full/1800, none/0
Operating system = FreeBSD  6.2-STABLE FreeBSD 6.2-STABLE #0:
 Thu Aug 16 22:54:19 CEST 2007 :/usr/obj/usr/src/sys/MYKERN amd64
Default theme = violet
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070713 FreeBSD/i386 Firefox/2.0.0.5
Rows in GalleryAccessMap table = 248
Rows in GalleryAccessSubscriberMap table = 31852
Rows in GalleryUser table = 19
Rows in GalleryItem table = 31848
Rows in GalleryAlbumItem table = 511
Rows in GalleryCacheMap table = 7699

Any ideas as to why it uses that much memory...