ebertb
11 years agoNew Contributor
InferredSchemaManager HashMaps Grow Continously
When running SoapUI in a system over a long period of time (maybe a few days, while running various test cases periodically), the HashMaps in InferredSchemaManager grow out of control, and it doesn't seem that any of the "RestService" keys ever get removed. After a few days, the InferredSchemaManager is taking up about 15G of memory.
In our use case, we're running test cases in different threads, so we've been able to solve this problem by essentially breaking the caching mechanism and putting the HashMaps in ThreadLocal. For now, this allows SoapUI to run continuously without memory issues, but it's probably not how the code was intended to work.
In our use case, we're running test cases in different threads, so we've been able to solve this problem by essentially breaking the caching mechanism and putting the HashMaps in ThreadLocal. For now, this allows SoapUI to run continuously without memory issues, but it's probably not how the code was intended to work.