browser cluster problem / ram usage problem

John's Avatar

John

18 May, 2017 12:43 PM

hello, after a long-time work (24h+) arachni stops respawning browsers, now i have only 10 browsers of the expected number of 36 (6 instances/6 browser per instance). Also got a problem with RAM - some instances use too much (10Gb+), does arachni really needs so much RAM ?

  1. 1 Posted by John on 18 May, 2017 12:44 PM

    John's Avatar

    attached a screenshot

  2. Support Staff 2 Posted by Tasos Laskos on 18 May, 2017 12:59 PM

    Tasos Laskos's Avatar

    Looks like you've stressed your system too much, try running fewer scans at the same time.
    As for the RAM, are you saying that a single instance uses 10GB+ of RAM? That's hard to believe.

  3. 3 Posted by John on 18 May, 2017 01:10 PM

    John's Avatar

    see screenshot: 10634Mb ; 8th line from the top.

  4. Support Staff 4 Posted by Tasos Laskos on 18 May, 2017 01:18 PM

    Tasos Laskos's Avatar

    That's surprising to say the least, any chance you can give me the scan details so that I can try to debug the issue? I'll be needing to perform an identical scan against the same target.

  5. 5 Posted by John on 18 May, 2017 01:22 PM

    John's Avatar

    sent via email

  6. 6 Posted by John on 18 May, 2017 02:14 PM

    John's Avatar

    without any critical CPU load (30-70%) arachni still has a problem with respawning browsers, now running 5 instances (expected 30 browsers), but have only 26

  7. Support Staff 7 Posted by Tasos Laskos on 18 May, 2017 02:17 PM

    Tasos Laskos's Avatar

    You're trying to run 30 processes that require considerable resources, unless you've got 30 cores then this could indeed be the issue.

  8. 8 Posted by John on 18 May, 2017 02:23 PM

    John's Avatar

    you say it's a hardware problem. system could handle 30 browsers (at start) with max load at 70% (CPU) and 15% (RAM), but it can't respawn browsers due to lack of recources (which doesn't exist) - it seems for me to be illogically. Or i had misunderstood your message ?

  9. Support Staff 9 Posted by Tasos Laskos on 18 May, 2017 02:37 PM

    Tasos Laskos's Avatar

    There's a way to settle this, try running only 1 instance, if you're still getting the same issue then it's a bug in Arachni, otherwise it's system stress.

  10. Support Staff 10 Posted by Tasos Laskos on 18 May, 2017 03:33 PM

    Tasos Laskos's Avatar

    Another thing to watch out for is to check the PIDs of the browsers, they could be respawning successfully but slowly, thus appearing fewer at any given time.

  11. 11 Posted by John on 19 May, 2017 05:59 AM

    John's Avatar

    No, they don't respawn at all (during few hours of scan the number of browsers just decrease). One instance works stable, but 2nd and 3d are already unstable. Current system has 6 physical and 12 logical cores (2.3Ghz each), maximum load running 3 instances is 50%, average is 30% . Tried both on Linux and windows - problem persists. System also has more than 20Gb of free ram (ddr3). Bandwidth isn't overloaded too. I don't even guess what the matter is, it's hard for me to believe this system can handle only 1-2 instances stably.

  12. Support Staff 12 Posted by Tasos Laskos on 19 May, 2017 01:09 PM

    Tasos Laskos's Avatar

    I don't know what to tell you, this is out of my hands and there are plenty of folks out there running multiple scans without issue.
    This sounds like an env issue.

    About the RAM consumption, I got your e-mail and I'll have a look at it when I find some free time.

  13. 13 Posted by John on 19 May, 2017 02:34 PM

    John's Avatar

    can you plase try running 3 or more scans ? On the screenshot you can see that even after 30 minutes arachni gets a problem with respawning ( in cmd is the number of phantomjs processes running (17 of 18 expected) - for easier counting)

  14. 14 Posted by John on 19 May, 2017 03:30 PM

    John's Avatar

    +when all browsers crashed, instances get a fatal error => crash

  15. 15 Posted by John on 19 May, 2017 04:58 PM

    John's Avatar

    tested on the third system (win 8.1 / x64 / i7-5960x / 32GB ddr4 /3 INSTANCES (6 browser per instance) / ) - the same situation. attached a file with logged numbers of running browsers during ~1 hour scan. i've tested on debian x64 and win serv 2016 before. Also, any of these three systems had a different internet provider. So it can't be system or hardware problem. Do you have any ideas? Maybe you should add a re-respawn in case of respawning failure?

  16. 16 Posted by John on 19 May, 2017 07:14 PM

    John's Avatar

    problem with respawn occures even to single scans (see screenshot). Looking forward to getting any reply:)

  17. Support Staff 17 Posted by Tasos Laskos on 27 May, 2017 03:50 PM

    Tasos Laskos's Avatar

    I haven't forgotten about this but I've been a little preoccupied as of late. I'll get to it when I find some free time.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac