Best connection pool settings for MSSQL for Flowable

I am loosing connection if more idle time in Flowable, please share me best connection pool settings for MSSQL for Flowable.