On 03/01/2012 06:10 AM, Danilo Godec wrote:
> I have a directory with about 25000 users (University).
>
> I noticed that in 'tree view', when I try to expand the 'ou=People', LAM
> takes a lot of time / memory and still ends up failing.
>
>> [01-Mar-2012 09:40:42] PHP Fatal error:  Allowed memory size of
>> 268435456 bytes exhausted (tried to allocate 81 bytes) in
>> /srv/www/htdocs/ldap-account-manager-3.5.0/templates/3rdParty/pla/lib/ds_myldap.php
>> on line 408
>> [01-Mar-2012 10:43:11] PHP Fatal error:  Allowed memory size of
>> 536870912 bytes exhausted (tried to allocate 71 bytes) in
>> /srv/www/htdocs/ldap-account-manager-3.5.0/templates/3rdParty/pla/lib/ds_myldap.php
>> on line 408
>> [01-Mar-2012 11:00:10] PHP Fatal error:  Maximum execution time of 120
>> seconds exceeded in
>> /srv/www/htdocs/ldap-account-manager-3.5.0/templates/3rdParty/pla/lib/ds_myldap.php
>> on line 420
>> [01-Mar-2012 11:05:29] PHP Fatal error:  Maximum execution time of 120
>> seconds exceeded in
>> /srv/www/htdocs/ldap-account-manager-3.5.0/templates/3rdParty/pla/lib/TreeItem.php
>> on line 167
>> [01-Mar-2012 11:47:42] PHP Fatal error:  Maximum execution time of 120
>> seconds exceeded in
>> /srv/www/htdocs/ldap-account-manager-3.6/templates/3rdParty/pla/lib/ds_myldap.php
>> on line 420
>
> First line was with 'default' 256MB 'memory_limit', the 2nd was with
> 512MB, then I set it to 1204. I also tried a newer LAM.
>
> BTW., 'ldapsearch' of all entries redirected to a text file takes about
> 3-7 seconds on the server (both Apache and OpenLDAP are on the same server).
>
> Anything I can do to make this work (apart from re-organizing the LDAP
> tree into multiple smaller trees, which isn't an option)?

Try increasing the max_execution_time in php.ini to something greater 
than 120 seconds. 300 seconds, or 5 minutes, would be a good place to 
start and increase from there. I'd also increase the memory_limit to 
something larger as well to see how much php needs to finish the operation.


-- 
Darin Perusich
Email: [email protected]
Office: 716-888-3690
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you are not the intended recipient of this 
message, please contact the sender and delete this material from this computer.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to