PDA

View Full Version : 1 Instances


art182
06-10-2007, 12:29 PM
hello.
I set up php lsapi - 1 instances
PHP_LSAPI_CHILDREN=20

+ restart lsws ..

and I have 5 or more lsphp process

this is correct ? ( I think should be 1 process )

mistwang
06-10-2007, 09:44 PM
That's normal. LSWS start one instance of PHP, and that process can fork up to 20 children PHP process to handle 20 PHP requests at the same time.

art182
06-14-2007, 03:47 AM
ok. thanks..

I have one more question :

which way to run php is better for 'weak' server ?
( P3 1 ghz , 512 ram , slooow disk )

Server Managed Mode or Self Managed Mode ?
Is there any difference for cpu usage/performance ?


* sorry for my english ...

mistwang
06-14-2007, 09:39 AM
Self managed mode is perfered as all PHP processes can share their opcode cache.
CPU usage and performance wise, there is no big difference.