Re: [PHP-DEV] loading modules

2002-12-11 Thread Andi Gutmans
Hi,

You are really best off loading those dso's from your PHP INI. There is a 
dl() but it does have its issues (performance wise and in some cases 
stability wise).
I think quite a lot of your memory will be shared between the processes so 
make sure you don't only look at the size of each process but also at how 
much is shared.
Andi

At 08:03 PM 12/11/2002 -0800, Gustavo A. Baratto wrote:
Greetings,

I'm not sure if this is the right place to ask, but here it goes...
We have a multihosted environment for apache/php and we try to accept all 
requests to add new php extensions.

The problem is that each apache process is using now 20MB of memory...
We compile apache with shared object (SO) support for php (and everything 
else). The php modules are static, but we are planning to chang this to SO 
as well.

Since just a few users will use some of the extensions, is it an overkill 
to load all php extesions with the web-server startup Aparentely, the SO 
support for php does not load the extension libraries in runtime (as 
needed), but it loads them in the startup.

I know one could use the function dl(), but this is out of question 
because too much code have to be rewritten.

What could be to ease up the memory usage?
I'm not a good coder, but maybe I could help to write something like a 
dl() for loading a library just as needed...
If someone could give me a feedback if there is another way to do what I 
need, or which part of the code I should look at (I just never even looked 
into php source :))

Thanks


--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] loading modules

2002-12-11 Thread Gustavo A. Baratto
Greetings,

I'm not sure if this is the right place to ask, but here it goes...
We have a multihosted environment for apache/php and we try to accept 
all requests to add new php extensions.

The problem is that each apache process is using now 20MB of memory...
We compile apache with shared object (SO) support for php (and 
everything else). The php modules are static, but we are planning to 
chang this to SO as well.

Since just a few users will use some of the extensions, is it an 
overkill to load all php extesions with the web-server startup 
Aparentely, the SO support for php does not load the extension libraries 
in runtime (as needed), but it loads them in the startup.

I know one could use the function dl(), but this is out of question 
because too much code have to be rewritten.

What could be to ease up the memory usage?
I'm not a good coder, but maybe I could help to write something like a 
dl() for loading a library just as needed...
If someone could give me a feedback if there is another way to do what I 
need, or which part of the code I should look at (I just never even 
looked into php source :))

Thanks


--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php