Limitations to Shared Services

There are certain limitations to Shared Services, listed below:

If there is an init method, it cannot take any arguments.
Service options are set when the Service Instance is created initially; you cannot override these Service options on subsequent attaches.
Clients that share Services must be the same type. For example, a Java Driver cannot share a Service created with CPPDriver.

Warning 

Never use the same Shared Service from within the same process, or launch multiple Drivers with the same data/log directories. Shared Services are not designed for such situations and there is no benefit or reason to do so. Doing so can result in premature task data deletion and poor performance.