Re: [libvirt] libvirt(-java): How to make vm.getDomain().getJobInfo() thread safe?

2011-09-16 Thread Thomas Treutner
On 09/14/2011 02:20 PM, Thomas Treutner wrote: complete JVM crashes - http://pastebin.com/jT6sXubu With this message on the CLI: java: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio = __sched_fifo_min_prio new_prio = __sched_fifo_max_prio)' failed. --

Re: [libvirt] libvirt(-java): How to make vm.getDomain().getJobInfo() thread safe?

2011-09-16 Thread Thomas Treutner
On 09/16/2011 10:16 AM, Thomas Treutner wrote: On 09/14/2011 02:20 PM, Thomas Treutner wrote: complete JVM crashes - http://pastebin.com/jT6sXubu With this message on the CLI: java: tpp.c:63: __pthread_tpp_change_priority: Assertion `new_prio == -1 || (new_prio = __sched_fifo_min_prio

Re: [libvirt] libvirt(-java): How to make vm.getDomain().getJobInfo() thread safe?

2011-09-16 Thread Daniel P. Berrange
On Wed, Sep 14, 2011 at 02:20:46PM +0200, Thomas Treutner wrote: Hi, this is kind of a follow-up to an older question/discussion: https://www.redhat.com/archives/libvir-list/2010-July/msg00267.html As a result of that, I use a second thread for monitoring the live migration, taking

Re: [libvirt] libvirt(-java): How to make vm.getDomain().getJobInfo() thread safe?

2011-09-16 Thread Thomas Treutner
On 09/16/2011 10:44 AM, Daniel P. Berrange wrote: On Wed, Sep 14, 2011 at 02:20:46PM +0200, Thomas Treutner wrote: Of course, in my monitoring thread I'm checking in every monitoring iteration if the domain object is not null, is still active, if the jobInfo is available yet etc. But, as I can

[libvirt] libvirt(-java): How to make vm.getDomain().getJobInfo() thread safe?

2011-09-14 Thread Thomas Treutner
Hi, this is kind of a follow-up to an older question/discussion: https://www.redhat.com/archives/libvir-list/2010-July/msg00267.html As a result of that, I use a second thread for monitoring the live migration, taking actions (setting maxdowntime to a value that fits the situation) if