XCache settings (wont stop segfaulting)

justinj1

Joined: 2005-11-21
Posts: 39
Posted: Mon, 2008-02-11 13:41

What are the best settings for gallery2 (eg xcache.size etc) I'm using:

http://www.lolzing.com/Support/XCache/XCache%201.2.2%20Administration.htm

Here's what it caches:
http://www.lolzing.com/Support/XCache/XCache%201.2.1%20Administration.htm

Also, XCache segfaults when the gallery gets busy, any ideas how to stop that, should it be caching 18,000 items like /home/cityv4/g2data/cache/entity/6/7/67367-fast.inc

ty :)


Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.2.5 apache
Webserver = Apache/1.3.39 (Unix) PHP/5.2.5 mod_perl/1.30 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 mod_ssl/2.8.30 OpenSSL/0.9.8b
Database = mysqlt 4.1.22-standard, lock.system=flock
Toolkits = ArchiveUpload, Getid3, LinkItemToolkit, Thumbnail, Gd, ImageMagick
Acceleration = full/86400, full/86400
Operating system = Linux 2.6.18-53.1.4.el5PAE #1 SMP Fri Nov 30 01:21:20 EST 2007 i686
Default theme = matrix
gettext = disabled
Locale = en_US
Rows in GalleryAccessMap table = 83
Rows in GalleryAccessSubscriberMap table = 9510
Rows in GalleryUser table = 2
Rows in GalleryItem table = 9505
Rows in GalleryAlbumItem table = 235
Rows in GalleryCacheMap table = 17638

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 31891
Posted: Mon, 2008-02-11 14:11

if xcache doesn't work fine for you, i suggest you try APC or eaccelerator. APC and eaccelerator needed a long time before they got somewhat stable too.

> should it be caching 18,000 items like /home/cityv4/g2data/cache/entity/6/7/67367-fast.inc

at that specific path just 1, since it's just 1 file.
but generally yes, there are as many cached files in g2data/cache/ as you have items. (or rather x times as many files as you have items).

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

Login or register to post comments
justinj1

Joined: 2005-11-21
Posts: 39
Posted: Mon, 2008-02-11 14:21

eAccelerator had the same problem, if APC works I'll post here. I also tried adding auto_globals_jit = off into php.ini as per
http://www.slantview.com/blog/slantview/apache2-php-5-x-xcache-load-segfaults-not-any-more

but that didn't help. It would be great to get a cache working rather than adding RAM. I'll keep working on it, Thanks Valiant :)

Login or register to post comments
justinj1

Joined: 2005-11-21
Posts: 39
Posted: Sat, 2008-03-01 13:18

[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[notice] child pid 22040 exit signal Segmentation fault (11), possible coredump in /tmp/phpcore

Sometimes I get those errors before the segfault. I tried clearing all caches.

http://plog.hlps.tcc.edu.tw/plog/post/1/2795 anybody understand that?

Also working on this here:
http://forum.lighttpd.net/topic/39259

:D

Login or register to post comments
justinj1

Joined: 2005-11-21
Posts: 39
Posted: Fri, 2008-05-09 10:38
justinj1 wrote:
[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[error] PHP Warning: Invalid argument supplied for foreach() in /home/cityv4/public_html/gallery/modules/customfield/classes/CustomFieldHelper.class on line 233
[notice] child pid 22040 exit signal Segmentation fault (11), possible coredump in /tmp/phpcore

Weeks of head banging and it was in front of me the whole time. I assumed the customfield module is essential since its enabled by default and I never tampered with it. Disabled the module, segfaults gone.

:D

Login or register to post comments