Hi,
I've been trying to debug php crashes. The problem is similar to what others have posted here in the past - 503 errors, load goes through the roof, etc. We've tried several different combinations of php, litespeed, and apc. PHP 5.3.1 with APC and LSAPI 5.3 seems to be working best (always tried PHP without APC first to make sure APC didn't introduce more problems).
When we were on 5.2.10, LSAPI_ALLOW_CORE_DUMP worked fine to generate core.xxxx files in the docroot directories. But the newer php versions haven't been generating core files - PHP 5.3 definitely doesn't and I think 5.2.13 didn't either.
Is this a known issue? Are there any workarounds to still get core dumps? The core dump was pretty helpful in determining that most of the crashes were centered around unserializing objects after retrieval from memcache. We modified our __sleep/__wakeup methods to make sure not so much data was serialized and the problem has gone away.
We had crashes in 5.3.2, but since we weren't finding core dump files, I couldn't debug it. Going to 5.3.1 fixed the crashes. Maybe there's a way to specify the directory for litespeed to place the core dumps? I did a unix "find" in case the location moved, but didn't get any results.
Thanks a lot!!
I've been trying to debug php crashes. The problem is similar to what others have posted here in the past - 503 errors, load goes through the roof, etc. We've tried several different combinations of php, litespeed, and apc. PHP 5.3.1 with APC and LSAPI 5.3 seems to be working best (always tried PHP without APC first to make sure APC didn't introduce more problems).
When we were on 5.2.10, LSAPI_ALLOW_CORE_DUMP worked fine to generate core.xxxx files in the docroot directories. But the newer php versions haven't been generating core files - PHP 5.3 definitely doesn't and I think 5.2.13 didn't either.
Is this a known issue? Are there any workarounds to still get core dumps? The core dump was pretty helpful in determining that most of the crashes were centered around unserializing objects after retrieval from memcache. We modified our __sleep/__wakeup methods to make sure not so much data was serialized and the problem has gone away.
We had crashes in 5.3.2, but since we weren't finding core dump files, I couldn't debug it. Going to 5.3.1 fixed the crashes. Maybe there's a way to specify the directory for litespeed to place the core dumps? I did a unix "find" in case the location moved, but didn't get any results.
Thanks a lot!!