Multiple real IOS devices on one MAC, SessionNotfoundException

Hello,
I have some issue with sessionNotFoundException once i am connecting 3 real IOS devices, and run not a parallel test.
I’m starting 3 servers programmatically with different ports and different /tmp/timeStp_${port} folder.
Crearing 3 drivers and use them, each driver gets different actions (not in the same time).
I’m using startApp and closeApp between the scenarios, and creating a new session once the driver/server stoped.
I configured the server session timeout to 7200 and newtimeOutCommand as well.

In the server logs i’m getting the error: Abnormal Instruments termination

After some time in the excetions I’m getting the SessionNotFoundException. which i can recover (tests continue to run)
but it throws it again on other test.

  1. Is there any limitation of amount of open session with server?
  2. Is there any additionals configuration neet to be set?
  3. Does anyone here testing 3 devices in the same time (3 open session)

Thanks!

Eitan.

Please increment the webdriver agent port
Appium Command should be like : appium p -U UDID -p PORTNUMBER --nodeconfig /path/to/nodeconfig

@pavanbachu
Thank you for the response.
I start the server (progrematically using AppiumDriverLocalService), with udid and port.
If i don’t worng the --nodeconfig /path/to/nodeconfig using for Selenium grid, which i don’t use it.
The tests are actually running but the only after some time i get the SessionNotFoundException,