Project

General

Profile

Actions

Bug #2160

open

ldv-online client hangs sometimes

Added by Evgeny Novikov over 12 years ago. Updated over 12 years ago.

Status:
Open
Priority:
Normal
Category:
LDV-Online (the web service)
Start date:
01/06/2012
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

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.


Related issues 2 (1 open1 closed)

Related to Linux Driver Verification - Bug #2155: ldv-online client should work foreverClosedEvgeny Novikov12/28/2011

Actions
Related to Linux Driver Verification - Bug #2593: ldv-online server fails as well as ldv-online clientNewEvgeny Novikov03/13/2012

Actions
Actions #1

Updated by Evgeny Novikov over 12 years ago

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.

Actions #2

Updated by Evgeny Novikov over 12 years ago

  • Priority changed from Urgent to Normal

With a workaround specified it doesn't so critical.

Actions #3

Updated by Alexey Khoroshilov over 12 years ago

Does it kill a running verification task or just an auxiliary process?

Actions #4

Updated by Evgeny Novikov over 12 years ago

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?..

Actions

Also available in: Atom PDF