The server has 32 Cores and 65 Gig of Memory.
I have 6 Nagios XI server fused
I have added about 60 users so far and my servers memory is getting used up by the poll_subsys.php for each user. When I checked the process list, it had over 300+ poll_subsys.php running. Is there a way to only allow 50 or 60 poll_subsys to run at a time? It looks like 4 to 6 requests are being made per user. 60 x 6 = 360 process that a polling and using up the resources. If I understand the "Simultaneous Pollers" it is allow multiple poll_subsys to run at the same time. Would this mean 5 out of 360 are getting polled and the rest have to wait until a spot is opened up?
Does the poll_subsys.php script have enough validation checking to not kick off additionally polls for a user waiting to be processed? Could there be a queue system like mod_gearman that will help to ensure the server resources are not over used?
Code: Select all
while true; do ps -ef | grep poll_subsys.php | wc -l; sleep 3; done
430
438
439
436
436
446
443
443
442
442
442
441
437
436
436
434
434
434
434
434
434
434
434
434
436
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
436
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
434
436
436
434
434