[OPEN-ILS-DEV] OpenSRF Router CPU Usage

Soulliere, Robert robert.soulliere at mohawkcollege.ca
Wed Jul 22 13:48:07 EDT 2009


When you restart the processes, you might want to try to start the evergreen processes one at a time in this order.

osrf_ctl.sh –a -l start_router
osrf_ctl.sh –a -l start_perl
osrf_ctl.sh –a -l start_c


You can also stop the processes individually:

osrf_ctl.sh -a stop_router

You may also want to check out the page at:
http://open-ils.org/dokuwiki/doku.php?id=troubleshooting:checking_for_errors
for troubleshooting techniques.

In particular, I would check the router related log files in the /openils/var/log directory after restarting the router process. I would also check the size of those log files.

Robert


From: open-ils-dev-bounces at list.georgialibraries.org [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Adam Ray
Sent: July 22, 2009 12:40 PM
To: open-ils-dev at list.georgialibraries.org
Subject: Re: [OPEN-ILS-DEV] OpenSRF Router CPU Usage

How does one go about killing all the extraneous router processes? I must not be killing it in the right way. I have stopped everything and here is the result:

opensrf at evergreen:~$ osrf_ctl.sh -a stop_all
Stopping OpenSRF C process 2217...
Stopping OpenSRF C process 2218...
Stopping OpenSRF C process 2219...
Stopping OpenSRF C process 2220...
Stopping OpenSRF C process 2226...
Stopping OpenSRF C process 2227...
Stopping OpenSRF Perl
Stopping OpenSRF Router process 2141...
/openils/bin/osrf_ctl.sh: line 133: kill: (2141) - No such process
Stopping OpenSRF Router process 2142...

top showed:
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2152 opensrf   25   0    3776  824    552  R  100          0.0      1405:27 opensrf_router
    1 root      15   0  1948  660  568 S    0  0.0   0:00.15 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.05 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    6 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
    7 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
    9 root      14  -5     0    0    0 S    0  0.0   0:00.00 xenwatch
   10 root      17  -5     0    0    0 S    0  0.0   0:00.01 xenbus
   15 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
   16 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
   17 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
   18 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   19 root      RT  -5     0    0    0 S    0  0.0   0:00.01 migration/2
   20 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2
   21 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/2


Noting that the router didn't stop I ran:
opensrf at evergreen:~$ killall opensrf_router

Now top shows:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15   0  1948  660  568 S    0  0.0   0:00.15 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.05 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    6 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
    7 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
    9 root      14  -5     0    0    0 S    0  0.0   0:00.00 xenwatch
   10 root      10  -5     0    0    0 S    0  0.0   0:00.01 xenbus
   15 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
   16 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
   17 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
   18 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   19 root      RT  -5     0    0    0 S    0  0.0   0:00.01 migration/2
   20 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2
   21 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/2
   22 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/2

So I ran:
opensrf at evergreen:~$ osrf_ctl.sh -a start_all
Starting OpenSRF Router
Starting OpenSRF Perl
Starting OpenSRF C (host=evergreen.slcc.ad)

Now top shows:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11490 opensrf   25   0  3776  820  552 R  100  0.0   0:44.96 opensrf_router
    1 root      15   0  1948  660  568 S    0  0.0   0:00.15 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.05 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    6 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
    7 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
    9 root      14  -5     0    0    0 S    0  0.0   0:00.00 xenwatch
   10 root      12  -5     0    0    0 S    0  0.0   0:00.01 xenbus
   15 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
   16 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
   17 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
   18 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   19 root      RT  -5     0    0    0 S    0  0.0   0:00.01 migration/2
   20 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2
   21 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/2


Adam Ray
SLCC IT Director
(314) 837-6777 x1250

________________________________
This E-mail contains privileged and confidential information intended
only for the individual or entity named in the message. If the reader
of this message is not the intended recipient, or the agent responsible
to deliver it to the intended recipient, you are hereby notified that
any review, dissemination, distribution or copying of this communication
is prohibited. If this communication was received in error, please
notify the sender by reply E-mail immediately, and delete and destroy
the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20090722/7fe509bd/attachment-0001.htm 


More information about the Open-ils-dev mailing list