Consuming a lot of memory, when XCUITest runs

Hi
I test our enterprise app with XCUITest
I faced issue that consuming a lot of memory, when UI testing runs.

it consumes 270GB on Simulator, I can't test it on Real device(it shows message that needs more memory)

How I can solve this issue?

Consuming a lot of memory, when XCUITest runs
 
 
Q