yy_create_buffer??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

yy_create_buffer??

Post by nielsene »

Anyone have a clue over what would cuase this error message:

Code: Select all

Fatal error: out of dynamic memory in yy_create_buffer() in /usr/local/CIB/main-dev/compinabox/include/paths.inc on line 29
Line 29 is an include. The rest of the file is 5 simple string assignments. It doesn't happen every time, but often enough.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

yy_create_buffer() is a function inside of PHP itself that is used when PHP scans the php.ini file when a script is run. It's not finding enough memory to do it's stuff. If something is hogging all the RAM on the server this sort of thing happens. There's nothing you can do to the script itself to stop it, the server needs tweaking.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Hmmm with ~2GB RAM free it seems odd that it can't find any free space. Restarting apache makes the problem go away for a while, but it comes back. Seems like some sort of memory leak.... grrrr....
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Hmmm.... Firefox?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Ambush Commander wrote:Hmmm.... Firefox?
Why would that be running on a server? And what makes you think FF leaks memory?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Well, for the first question, my server is installed locally, makes things easy to test. Second question: Firefox is a real problem when it comes to memory leaks. Extended usage will have it gobble up 100+ mb of memory.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Ambush Commander wrote:Well, for the first question, my server is installed locally, makes things easy to test.
Right, but nielsene's error message had "/usr/local/CIB/main-dev/compinabox/include/paths.inc" in it.. looks like a server to me. Although not definitely.
Second question: Firefox is a real problem when it comes to memory leaks. Extended usage will have it gobble up 100+ mb of memory.
Technically, using a lot of memory isn't the same as leaking it. But I see your point. FF is using 64meg here..
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Yeah its definitly a server issue. (I'm also running safari not FF).

I'm trying to figure out where the memory leak could be occuring -- any PHP memory should be realized when the page terminiates....
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

When in doubt, reboot.
Post Reply