<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi<br>   My libvirt version is 3.4.0,host system is centos 7.4 ,kernel  is 3.10.0-693.el7.x86_64 , when I shutdown domain in virtual system, My program call virDomainMemoryStats, My program blocked in this api. the call stack is<br><br>#0  0x00007ff242d78a3d in poll () from /lib64/libc.so.6<br>#1  0x00007ff243755ce8 in virNetClientIOEventLoop () from /lib64/libvirt.so.0<br>#2  0x00007ff24375654b in virNetClientSendInternal () from /lib64/libvirt.so.0#3  0x00007ff2437579b3 in virNetClientSendWithReply () from /lib64/libvirt.so.0<br>#4  0x00007ff2437581c2 in virNetClientProgramCall () from /lib64/libvirt.so.0#5  0x00007ff24372d392 in callFull.isra.3 () from /lib64/libvirt.so.0<br>#6  0x00007ff24373b8a1 in remoteDomainMemoryStats () from /lib64/libvirt.so.0<br>#7  0x00007ff2436f14e2 in virDomainMemoryStats () from /lib64/libvirt.so.0<br>#8  0x00007ff22ee975c2 in VM::getMemoryStats (this=0x7ff1d4064ae0, <br><br>    Begin I think is my  program problem, But when I use virsh domstats cmd , The cmd block too. In my program, I set timeout event for virConnectPtr. But my program blocked  all the time. I find my system log, I find some libvirtd error:<br> libvirtd: 2018-03-08 04:25:13.144+0000: 1289: error : virKeepAliveTimerInternal:143 : internal error: connection closed due to keepalive timeout<br>Mar  7 23:33:05 localhost libvirtd: 2018-03-08 04:33:05.738+0000: 1289: error : virNetSocketReadWire:1808 : End of file while reading data: Input/output error<br>Mar  7 23:33:14 localhost libvirtd: 2018-03-08 04:33:14.253+0000: 1289: error : virNetSocketReadWire:1808 : End of file while reading data: Input/output error<br>Mar  7 23:33:16 localhost libvirtd: 2018-03-08 04:33:16.962+0000: 1289: error : virNetSocketReadWire:1808 : End of file while reading data: Input/output error<br>Mar  7 23:33:25 localhost libvirtd: 2018-03-08 04:33:25.879+0000: 1300: warning : qemuDomainObjBeginJobInternal:3847 : Cannot start job (query, none) for domain d7bb3005-4fa4-4c3a-8802-ab55464d074b; current job is (query, none) owned by (1299 remoteDispatchDomainMemoryStats, 0 <null>) for (3680s, 0s)<br>Mar  7 23:33:25 localhost libvirtd: 2018-03-08 04:33:25.879+0000: 1300: error : qemuDomainObjBeginJobInternal:3859 : Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainMemoryStats)<br>Mar  7 23:33:25 localhost libvirtd: 2018-03-08 04:33:25.879+0000: 1300: warning : qemuGetProcessInfo:1428 : cannot parse process status data<br>Mar  7 23:33:25 localhost libvirtd: 2018-03-08 04:33:25.880+0000: 1300: error : virNetDevTapInterfaceStats:751 : internal error: /proc/net/dev: Interface not found<br>Mar  7 23:33:41 localhost libvirtd: 2018-03-08 04:33:41.826+0000: 1298: warning : qemuDomainObjBeginJobInternal:3847 : Cannot start job (query, none) for domain d7bb3005-4fa4-4c3a-8802-ab55464d074b; current job is (query, none) owned by (1299 remoteDispatchDomainMemoryStats, 0 <null>) for (3696s, 0s)Mar  7 23:33:41 localhost libvirtd: 2018-03-08 04:33:41.826+0000: 1298: error : qemuDomainObjBeginJobInternal:3859 : Timed out during operation: cannot acquire state change lock (held by remoteDispatchDomainMemoryStats)<br>    <br>    Is this problem a bug or I can't statistics some specifi status domain?  <br>    Thanks<br></div></div><br><br><span title="neteasefooter"><p> </p></span>