Share

Ister PHP4 Framework

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

SimpleXML44 not scaling well (w/r/t Facebook)

You are viewing a single message from this topic. View all messages.

  1. 2007-06-26 19:53:00 UTC
    <p>
    (Background: Facebook has been recommending SimpleXML44 for use with their php4 REST API client. So I bet there are a lot of FB apps out there now that are using SimpleXML44 as part of their infrastructure stack.)
    </p>
    <p>
    When used as part of high load web app, the current distribution of SimpleXML44 seems to produce a ton of <i>'stat64'</i> calls, where <b>IsterXmlNode.php</b> is looking for this file: <b>IsterSimpleXMLElement.php</b>
    </p>
    <p>
    These threads all pile up and eat a ton of memory, bringing apache to its knees...
    </p>
    <p>
    The culprit seems to be on line 286 of <b>IsterXmlNode.php</b>, where there's a <i>'require_once'</i> statement inside of an <i>eval()</i>. There's also a "TODO" comment above that statement, indicating that the <i>eval()</i> is being benchmarked against a <i>'require_once'</i> statement, presumably the one commented out on line 40.
    </p>
    <p>
    I <b>highly</b> recommend commenting out the <i>eval()</i> line 286 and un-commenting the <i>'require_once'</i> on line 40 -- will save your webserver!
    </p>
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.