I am using NService and NHibernate for my Application. As for NServicebus we define number of threads in configuration file. As per the worker's number of threads it works in multithreaded environment. Sometime when all threads are in use and threads acquires connection with database ,it does not allow application to create connection with database. Exception comes in worker log as Max Pool size reached. And all the threads releases the connection as per the connection timeout.
My question is whether all thread should release connection after use instead of putting them in Inactive state Or It is working fine. If it is working fine what's the way by which I can increase my worker. Because on increasing it give me error of max pool size