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

Re: [libvirt] Libvirt-Java Binding



Hello,

The versions I use are all 0.4.6.
The packages are
libvirt-0.4.6
libvirt-bin_0.4.6-10_i386.deb
libvirt0_0.4.6-10_i386.deb

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 XEN/libvirt.

Thanks,
Marcel

----- Original Message ----- From: "Daniel Veillard" <veillard redhat com>
To: "Marcel Michelmann" <michelma cip ifi lmu de>
Cc: <libvir-list 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 veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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