[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] LibvirtException: socket closed unexpectedly



Hi *,

I wrote a program in Java communicating with libvirt/XEN over SSH, with libvirt-java-0.2.1.
I poll the CPU and RAM usage quite often (about 5 times a second).
My program runs well about between 5-8 minutes, but then I get LibvirtException: socket closed unexpectedly. Although I try to catch the LibvirtExceptions with special System.out.println messages I have no idea where this is coming from.

Now my question: what leads to this exception?

exception caught: org.libvirt.LibvirtException: socket closed unexpectedly
level:VIR_ERR_ERROR
code:VIR_ERR_RPC
domain:VIR_FROM_REMOTE
hasConn:false
hasDom:false
hasNet:false
message:socket closed unexpectedly
str1:%s
str2:socket closed unexpectedly
str3:null
int1:0
int2:0

After that I can start my program again, and it is the same again (runs some minutes and then throws the exception).
Perhaps someone knows? I would be very thankful for any help!

Best regards,
Marcel
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]