Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

FN-FORUM: PHP Memory Problems

date posted 5th March 2003 17:41

Hello Luvverly People

I have a problem with a site that is constantly running out of memory, no
matter how many times we up the memory allocation to php. To give you a bit
of background; we are using an adodb layer, above which is a layer of data
objects, and above which is a layer of code objects. We are also using
Smarty templates. Now, the data objects all make use of a central data
object that does all the hard work (creates SQL queries on the fly etc etc),
and returns the result set in an array to the kids. The data objects need to
be shared between the code objects, so that the results from one query are
available to another code object, and so are all references within a toolbox
object, which serves them up to whichever code object happens to need one of
them at the time. Sometimes a data object (data objects are a distinct set
of data functionality, basically encompassing a set of tables and their
relationships) may need to call on another data object for some help, and
will do so via the toolbox for this purpose, just as though it (the data
object doing the calling) was a code object.

I've been worried about circular references due to this, but all the tests
we've done seem to have negated this possibility. We're now thinking that
the array of results that a data object holds may be the problem, but I'm
not too sure about php memory allocation between user sessions. Does it
share its memory between user sessions? Also, the problem, if it arises,
does not disappear the next day after a night of no use (this is not a 24-hr
site), which seems to indicate that the garbage collection routines within
php are not clearing out the object references....

...any ideas?

Mercy Buckets

Caz




Messages by Day
March 31st 2003
March 30th 2003
March 29th 2003
March 28th 2003
March 27th 2003
March 26th 2003
March 25th 2003
March 24th 2003
March 23rd 2003
March 22nd 2003
March 21st 2003
March 20th 2003
March 19th 2003
March 18th 2003
March 17th 2003
March 16th 2003
March 15th 2003
March 14th 2003
March 13th 2003
March 12th 2003
March 11th 2003
March 10th 2003
March 9th 2003
March 8th 2003
March 7th 2003
March 6th 2003
March 5th 2003
March 4th 2003
March 3rd 2003
March 2nd 2003
March 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000