[libvirt] Libvirt-Java Binding

Marcel Michelmann michelma at cip.ifi.lmu.de
Thu May 7 19:03:14 UTC 2009


The versions I use are all 0.4.6.
The packages are

Is there any workaround or something like that?
I need to close the connection because after about 1,5 minutes I have so 
many opened connections that my program cannot open any more and thus cannot 
be used anymore. For fixing that I have to restart the machine which runs 


----- Original Message ----- 
From: "Daniel Veillard" <veillard at redhat.com>
To: "Marcel Michelmann" <michelma at cip.ifi.lmu.de>
Cc: <libvir-list at redhat.com>
Sent: Thursday, May 07, 2009 4:44 PM
Subject: Re: [libvirt] Libvirt-Java Binding

> On Thu, May 07, 2009 at 04:26:36PM +0200, Marcel Michelmann wrote:
>> Hello,
>> I created a program in Java for communicating with a libvirt/XEN host 
>> over
>> SSH. For every update I create a new connection.
>> It just runs about 1 1/2 minutes. I guess it is because I do not close 
>> any
>> of these connections.
>> When I tried to close them after having used them (Connect.close()) the
>> program hangs. But after pressing Ctrl+C the program stops and the 
>> results
>> are shown.
>> Is that a bug in the libvirt-Java binding? Does anybody else have the 
>> same
>> problem with Connect.close()?
>  I remember a bug being raised about closing the connection in the
> java bindings, yes, but I didn't had the time to chase it out though :-\
> It used to work with libvirt prior to 0.5.x IIRC, sorry it's not very
> precise.
> Daniel
> -- 
> Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
> daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
> http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list