question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cif-router at 100% on one core -- remains after restart - cif client delays.

See original GitHub issue

After installing CIFv3 (release: 3.0.0a16.tar.gz), I noticed that the CPU usage on one of the cores is 100% all the time (from the cif-router processes) and so far it has been for > 24 hours.

1542 cif       20   0  232456  54220   7668 R 100.0  0.3 723:11.87 cif-router                                                                                                     
 1292 cif       20   0  563632  42904  10104 S   0.3  0.3   0:09.22 cif-httpd                                                                                                      
 1546 cif       20   0  346896  32972   6560 S   0.3  0.2   4:01.03 cif-router                                                                                                     
    1 root      20   0  185488   6084   3948 S   0.0  0.0   0:02.18 systemd                   

Yesterday there were multiple cif-router’s and the rest were < 1%, while one was at 100%. This is even after stopping/restarting/etc, and even rebooting the system.

For the stop+start, I am using this order (not sure if it matters?):

# service cif-httpd stop
# service cif-router stop
r# service csirtg-smrt stop

# service cif-router start
# service cif-httpd start
# service csirtg-smrt start

After you stop, it’s fine for a few minutes, and then the same thing happens.

2017-02-24 16:42:24,676 - INFO - cifsdk.client.client[119][MainThread] - running ping
roundtrip: 0.0105819702148 ms
roundtrip: 0.0045919418335 ms
roundtrip: 0.00449109077454 ms
roundtrip: 0.00470805168152 ms

After less than a minute, same thing:

4274 cif       20   0  227836  50136   7560 R  97.7  0.3   0:15.41 cif-router  

and response times start to hang again:

2017-02-24 16:44:19,802 - INFO - cifsdk.client.client[119][MainThread] - running ping
roundtrip: 13.75141716 ms
...hangs...

By hangs/delays, I mean this:

$ cif -p

2017-02-24 16:30:21,358 - INFO - cifsdk.client.client[119][MainThread] - running ping
...hangs...
roundtrip: 66.7338149548 ms
...hangs...

Not sure what’s causing this.

It’s running on an AWS VM.

Possibly related, yesterday I was running tcpdump, and I saw massive amounts of DNS traffic, but I am assuming this is related to the list ingestion. At this point, I am not seeing any new DNS traffic, but the process is still at 100%.

The last bit, noticed this before I killed the process the last time:

cif       1272  0.0  0.2  94212 37008 ?        Ss   04:17   0:00 /usr/bin/python /usr/local/bin/csirtg-smrt --remember --service --client cif --service --fireball --delay 2
cif       1753  0.5  1.0 235328 165020 ?       S    04:19   3:45 /usr/bin/python /usr/local/bin/csirtg-smrt --remember --service --client cif --service --fireball --delay 2
cif       3917  0.0  0.0      0     0 ?        Z    16:19   0:00 [csirtg-smrt] <defunct>

Not sure if there should be multiple and one being defunct?

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ventzcommented, Feb 24, 2017

Yea just replied there with my errors.

On Fri, Feb 24, 2017 at 12:29 PM, Wes notifications@github.com wrote:

did you see any of these errors:

csirtgadgets/csirtg-smrt-py#157 https://github.com/csirtgadgets/csirtg-smrt-py/issues/157

?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/csirtgadgets/bearded-avenger/issues/263#issuecomment-282351750, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3AMC1qm15ZCVVVT3yZKzzMesx9sRorks5rfxNxgaJpZM4MLd0c .

– -Ventz http://vpetkov.net

0reactions
wesyoungcommented, Mar 3, 2017

released a17, should solve most of these issues. gonna close this for now, re-open new issues as the come up… (ty for the feedback!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stopping/Restarting all R/3 to APO CIF queues
When we go to restart the CIF queues, we will open and process Master Data completely before opening and processing transaction queues one...
Read more >
Cisco IOS Voice Command Reference - A through C
Defines a particular dial peer, specifies the method of voice encapsulation, and enters dial peer configuration mode. client-vtp (voice class).
Read more >
textwrap.dedent Example - Program Talk
When multiple config specs are supplied, the attributes from all of the configs are deep-merged together into a single, *union* config in the...
Read more >
Python setsockopt Examples
Python setsockopt - 27 examples found. These are the top rated real world Python examples of socket.setsockopt extracted from open source projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found