I am wondering if anyone know a way to unload php modules on a per script basis. End Goal is to minimize scripts to use as little memory as possible.
Why? The TOP command shows VIRT @ 279m and RES @ 19m. This is with a script that only checks is a variable set and sleeps for 20 seconds thats it.. I am wondering if I can only load the modules I actually need for the script to run.
I have read in the past this was not supported nor encouraged but that was from 2011. If this is not possible is it better to load modules on demand per script? I ask because I am trying to minimize the size of VM's. Be Gentle :)