The ConnectionPoolingMaxActive setting should be in the mxruntime section of your m2ee.yaml file.
For more information about these settings, see also the full-documented-m2ee.yaml file in the examples directory.
This setting is documented in the full example configuration file:
https://github.com/mendix/m2ee-tools/blob/develop/examples/full-documented-m2ee.yaml#L555