1. A method for managing a transaction, the method comprising the steps of: a computer collecting first test metrics on a transaction hosted within a middleware container, and is executing within a first environment; the computer generating baseline values of expected execution behavior of the transaction, based on the first test metrics, wherein generating the baseline values of expected execution behavior of the transaction comprises utilizing linear regression of a pair of the first test metrics, if the pair of the first test metrics has a relationship that is linear, and wherein generating the baseline values of expected execution behavior of the transaction comprises utilizing polynomial interpolation to determine a polynomial function, if the pair of the first test metrics has a relationship that is not linear; the computer collecting second test metrics on the transaction hosted within the middleware container, and is executing within a second environment; the computer comparing the second test metrics to the baseline values; the computer determining whether the second test metrics satisfy the baseline values; and responsive to the second test metrics not satisfying the baseline values, the computer identifying the transaction as a candidate for cancellation.