Hi all,
I'm trying to understand why "leakDetectionThreshold" is ignored if it is greater than maxLifetime.
Background: I'm working on a data analysis application. Many times a connection is only used for 1 second or less, but it is not abnormal for a connection to be in use for a few minutes. I want to warn about connection leaks if the connection is open for abnormally long time. I set the threshold to 60 minutes, which is quite long, but would avoid false positive warnings.
So, my settings are:
maxLifetime = 30min
leakDetectionThreshold=60min.
I thought maxLifetime only comes into play when a connection _is not_ in use (idle connections will be closed), while leakDetectionThreshold only comes into play when a connection _is_ in use (connections in use for a long time will log warnings). So why is one value restricted by the other? Is it just a "sanity test" because they tend to be correlated, or am I doing something wrong?
For now, I'll try a leakDetectionThreshold of 30min, which should be nearly as good.
Thanks!
Stephen