recursive function performance

A question in terms of best PHP programming practice in the Drupal context:

If I want to pass an array as a parameter of a recursive function I would (having programmed in C) want/expect to pass the array by reference to avoid making a copy on each iteration. However, from the documentation on the PHP site it's not totally clear that this works on all platforms.

I don't see anything in the handbook. What's the preferred approach?

Multisites and memory allocation

I have 4.7.3 running in a multisite installation, with about 12 sites. Each site has different requirements for modules, but as there is some overlap I have them all in the main modules directory.
However, this means that I have had to increase the PHP allowed memory to 40M to be able to view the admin modules page!!! This increase was needed when a couple of the sites needed the ecommerce module. Previously it had needed 30M.
This seems a lot to me, and I'm concerned about the performance of the site because I understand that it's better to have this set to a lower number.

I need to search external files and archives. What are Drupal methods to use?

Ya, hello.

Basic problem: Drupal 4.7 installation
I need to search the content in files/ and other sources that I have on my system.

Ignore for the now how to scan and build the indexes. I have other tools for that (I hope).
In addition to files/, I will be building about 3-4 different indexes. Tools archive areas and other project directories that my group maintains.

Help! --Excessive Queries, Lock Database/Freeze Site

Drupal 4.7.2
MySQL 4.1
Php 4.3
Server: linux
Hosting Services: VPS account @ user: bfnnetwo_dpl1

Hi All,

Thank you for taking a minute of your time to review my post.

Question = How do we eliminate open Query processes which seem to lock/shut down our MySQL server & SITE (see copy of open processes below as provided by host)

Brief Issue Background:

Experiencing slow site processing which quickly escalates, after adding a banner for instance, to the site not displaying at all (i.e. blank screen) with our Mysql database server seeming to be locking.

Initially after contacting host of site problem, host informed that our Mysql server was down and would require a restart. After restart of Mysql server and after executing another "banner add", the site again returns a blank white page.
This seems to happen each time now, so much so, now I just open a ticket with host telling them to restart MySQL server.

Increasingly, the necessity of having to open a ticket with host each time we add a banner or some other configuration action seemed abnormal. As such, I informed the host that our site was not "live" at this point and should not be suffering from any congestion issues!!!

The host stated that our site was really heavy and had many open Query processes. The open Query processes have me a bit puzzled as not sure where/how they are coming about and why with a "non-live" site and VPS service, our MySQL shouts down as a result.

Any reliable scalability solutions available?

Hello,

We have 2 dual xeon servers, one with the database, and the other with the web content. But the servers are overloaded sometimes. Are there any reliable load balancing solutions? Can Drupal be runned over a cluster? Are there any session concerns?

What about static content serving? Any serious plans?

Thank you!

Regards,
Alexandru Ciobanu

Autocomplete scalability

Hello,

I was wondering how scalable the Autocomplete functions are. More specifically I'm currently using the user/autocomplete function. Has anyone got any experience with the performance of this function in systems with large numbers of users ? I'm talking hundreds or even thousands.

Of course taking a decent server configuration into consideration.

I'd love to hear some experiences.

Best regards,
Wouter

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Performance and scalability