VMware {code} Community
oeribon
Contributor
Contributor

PC and vcenter 8.0 connection failed after 30m without activity (pyVmomi). How to increase this TO

Hello,

A python script (from a PC) open a connection with vcenter (SmartConnectNoSSL), task have different duration but I discover and I am able to reproduce the next script like 

loop x=15, x=x+10, x<240 : connect / wait for x minutes /get info / disconnect

Works well if x stay below than 30 minutes

I try to manage different timeout in /etc/vmware-vpx/vpx.cfg or in gui of the vcenter without any success.

Could you help me to solve this problem.

Best regards,

Olivier

0 Kudos
1 Reply
oeribon
Contributor
Contributor

I found an excellent post from William Lam in order to list timeouts and how to change then.

https://williamlam.com/2022/10/vsphere-session-timeout-overview.html

In my case the in /etc*/vmware-vpx/vpxd.cfg

<soap>
<sessionTimeout>30</sessionTimeout>
<maxSessionCount>1000</maxSessionCount>
</soap>

Regards,

0 Kudos