On Wed, May 13, 2009 at 09:11:35AM +0200, Marcel Michelmann wrote:
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
Either the remote libvirtd crashed, or it explicitly dropped this client
for misbehaving. I'm betting this is a libvirtd bug in event handling.
Daniel
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://ovirt.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|