[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sitemanager-devel
Subject:    Re: RE: Possible memory leak
From:       "alexandre BOYER" <alexandre.boyer7 () wanadoo ! fr>
Date:       2003-09-19 17:33:06
[Download RAW message or body]

Ouch! PHP 4.1.2 ! Mike has seen right i think. Try to update your PHP version it is the better solution.

AB

>> -----Original Message-----
>> From: alexandre BOYER [mailto:alexandre.boyer7@wanadoo.fr]
>> Sent: Friday, September 19, 2003 11:00 PM
>>
>> If i understood the problem, the memory is not released between
>> requests. Every time an operator wants to add an item, he sends a
>> request, doesn't it ?
>
>Sure thing. Adding item equals submit form to then massage a little bit and
>save in MySQL DB.
>
>> Perhaps Mike has right. Can you tell us apache and php version ?
>
>Apache 1.3.27-2
>PHP 4.1.2-7.3.6
>Both RedHat RPMS :-( Might end up building from source yet.
>
>> Is it easy for you to test your script without siteManager ?
>
>No. Its totally developed using SM structure and smartForms.
>
>> AB
>>
>> >Thank you both for your thoughts. Chased a few settings and came up with
>> >more thoughts (below).
>> >> -----Original Message-----
>> >> From: alexandre BOYER [mailto:alexandre.boyer7@wanadoo.fr]
>> >> Sent: Friday, September 19, 2003 12:00 AM
>> >>
>> >> This is a normal exit for php : in safe mode, the amount of
>> >> allocated memory is controled by PHP. The Miller's script
>> >> allocate to much memory than it is allowed in his php.ini.
>> >
>> >The page in question is a data entry screen operating on the
>> same database
>> >tables every time. There is 3 operators entering and editing
>> items. They can
>> >enter 5 or more items before getting the memory error. An apache restart
>> >releases the children and their resorces and the operators can enter more
>> >items without problem for some time before the error returns.
>> >
>> >This seems to be server child process not releasing memory
>> properly rather
>> >than php page because it doesn't happen for the first bunch of
>> entries after
>> >each apache restart. I'll check out the php and redhat lists too.
>> >
>> >I have full access to web server and have looked into the
>> php/apache config.
>> >PHP:
>> >register_globals on
>> >memory_limit 8M
>> >safe_mode off
>> >output_buffering off
>> >implicit_flush off
>> >display_errors on
>> >Apache:
>> >KeepAlive off
>> >MaxRequestsPerChild 500
>> >
>> >These seem to be settings that may affect memory use. Any more
>> thoughts from
>> >anyone.
>> >
>> >regards
>> >Graham
>> >
>
>.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic