store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Mon Sep 01, 2014 3:31 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 6:01 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
We installed the new php-pecl-apc package (APC, the Alternative PHP Cache) which is in the atomic channel now, but we're getting errors like these, but not on all sites:

Quote:
Allowed memory size of 67108864 bytes exhausted (tried to allocate 1769239654 bytes)


And:

Quote:
Cannot run code from this file in conjunction with non encoded files in /some/path/to/file


Some sites continue to function after installing APC, others die because of errors like these. Anyone else seeing this? For now I've made sure none of our boxes hace php-pecl-apc installed, but it would be nice to have a PHP opcode cache on them for performance.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 7:08 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jan 15, 2008 3:57 am
Posts: 478
Location: Netherlands
Well, needless to say I have this also on all my ASL servers, OSSEC send me this every minute:
Quote:
OSSEC HIDS Notification.
2009 Feb 08 10:00:40

Received From: plesk4->/var/log/httpd/error_log
Rule: 30104 fired (level 12) -> "Apache segmentation fault."
Portion of the log(s):

[Sun Feb 08 10:00:38 2009] [notice] child pid 29455 exit signal Segmentation fault (11)

For the rest I have the same problem as "breun" with PHP

_________________
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 12:37 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Oct 29, 2007 6:51 pm
Posts: 644
I get 70+ segfaults per day like BerArt but I dont have the APC (i use the php-eaccelerator) and dont seem to have the problems breun is having


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 12:39 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2047
Quote:
Allowed memory size of 67108864 bytes exhausted (tried to allocate 1769239654 bytes)


Isn't that kind of error the kind of thing you expect as a result of memory limitations enforced by suhosin? If so then it might be worth looking at your suhosin settings in php.ini.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 12:50 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
faris wrote:
Quote:
Allowed memory size of 67108864 bytes exhausted (tried to allocate 1769239654 bytes)


Isn't that kind of error the kind of thing you expect as a result of memory limitations enforced by suhosin? If so then it might be worth looking at your suhosin settings in php.ini.


We're not using suhosin. The memory limit is specified in php.ini and indeed is set to 64 MB on this machine. Apparently the script tries to allocate much more memory (1.6 GB?!) than when APC is not enabled? All problems went away after removing APC.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Sun Feb 08, 2009 1:28 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2047
1.6Gb? Eeek! Yes. I see. heheh.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Mon Feb 09, 2009 6:46 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Is anyone else successfully using ART's php-pecl-apc package? We also saw Apache segfaulting a lot while APC was installed.

I have done manual installations of APC in the past that didn't cause PHP errors or Apache segfaults, so maybe there is something wrong with the package?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Mon Feb 09, 2009 11:12 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7892
Location: earth
http://3es.atomicrocketturtle.com/packa ... l-apc.spec is the spec file if you want to take a crack at it. You're the only one i know thats ever used it, and I cant even run it on the test servers here because of the zend conflict.


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Mon Feb 09, 2009 11:42 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Is your php-pecl-apc package the same the one in EPEL? Looks like you took EPEL's spec file?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: APC (php-pecl-apc) causing problems
Unread postPosted: Mon Feb 09, 2009 3:41 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I just did a manual APC install (via pecl) and that gave the same problems. Guess I have to take this up with the APC devs.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group