2

Magento has been really slow and unresponsive lately for me. Sometimes restarting the server solves it, but the problem reoccurs after a few good minutes.

Here's what I found in error.log (apache2). A lot of those fatal errors:

PHP Fatal error: Call to undefined function is_resource() in /home/sites/billyguyatts.com.au/docs/lib/Zend/Log/Writer/Stream.php on line 115

Could someone point me in the right direction ?

Tim Bezhashvyly
  • 11,575
  • 6
  • 43
  • 73
ALAN VO
  • 118
  • 6

1 Answers1

1

Your PHP seems badly broken?!

The function is_resource exists since PHP4, so I have no idea why this error occurs, but I think you are in bug trouble.

I tried googling for "Call to undefined function is_resource()" but there is nothing to find, so I would say this is no PHP bug.

So if it is no PHP bug, then you might have a hardware problem?

Fabian Blechschmidt
  • 35,388
  • 8
  • 75
  • 182
  • Exactly - error is based on a PHP function, so likely not the culprit. Have you got enough disk space on the server? – Douglas Radburn Jun 25 '14 at 08:10
  • Douglas, there are more disk space than we require. – ALAN VO Jun 26 '14 at 23:37
  • The CPU usage has been 100% on all 6 of them, which might be why everything's slowed down. I can't find the reason why it's using 100% CPUs (most of them apache2 processes) MaxClients lowered from 80 to 40 for testing purposes and still same problem. – ALAN VO Jun 26 '14 at 23:38
  • Fabian, could you show me how to do a stracktrace for this ? – ALAN VO Jun 26 '14 at 23:43
  • Wherever your error comes from should normally the stack trace just behind. Maybe xdebug adds this to my environment. – Fabian Blechschmidt Jun 27 '14 at 13:05