I noticed a weird behavior of PHP client, when I connect to Aerospike server, additional threads are created, for each PHP process, no matter in fpm or in cli mode.
Intel i5-3210M CPU, 10G RAM Ubuntu 14.04 PHP 5.6.17 PHP Aerospike client 3.4.3 Aerospike Community Server 3.6.3 (Single node)
Configured fpm to run single worker process:
pm = static pm.max_children = 1
- Restarts the php-fpm service;
htopcommand to see all processes, filter with
fpm, now I see only 1 worker process:
- Open the web browser to visit a page to connect to Aerospike;
htopscreen, now I see additional 17 threads are created:
I retried many times with different
pm.max_children or even in cli mode, get the same result, once Aerospike server is connected, 17 threads are created.
I don’t know if this is normal, and wonder the purpose, to create so many threads for each process.