Bug #2160
open
ldv-online client hangs sometimes
Added by Evgeny Novikov almost 13 years ago.
Updated almost 13 years ago.
Category:
LDV-Online (the web service)
Description
After fixing of #2155 ldv-online works forever, but by some reason it hangs sometimes. Don't know source of the given problem so I assume the following workaround, restart ldv-online client, say, each 15 minutes.
Add such cron script:
*/15 * * * * /home/ldv/ldv-online-client-restart-forcibly.pl >> /home/ldv/cron_forcibly.log 2>&1
where
ldv-online-client-restart-forcibly.pl is:
#!/usr/bin/perl
open(FILE, ">>", "ldv-online-client-restart") or die("Can't open a fille");
flock(FILE, LOCK_EX);
# Forcibly restart ldv online client (see issue #2160).
if (my $pid = `ps aux | grep vsClient.jar | grep -v grep | awk '{print \$2}'`)
{
print("Kill ldv-online client.\n");
`kill -9 $pid` or die ("Can't kill ldv-online client");
}
`/home/ldv/ldv-new/ldv-tools-inst/bin/ldv_client`
or die("Can't start ldv-online client");
print("ldv-online client is running now!\n");
close(FILE);
To avoid raises also add a lock wrapper to
ldv-online-client-restart.pl.
- Priority changed from Urgent to Normal
With a workaround specified it doesn't so critical.
Does it kill a running verification task or just an auxiliary process?
Alexey Khoroshilov wrote:
Does it kill a running verification task or just an auxiliary process?
I'd like to hope that it kills all running on a client ldv tools (both the ldv-online client and the verification process), but it isn't so easy... As I understand this may be related with a client-server architecture of some components and may be with a cluster support. Nevertheless, keep in mind that this's just the workaround and we should find out what's wrong with ldv-online client, why does it hang?..
Also available in: Atom
PDF