cr0hn / golismero-legacy

THIS IS A LEGACY VERSION PRESERVED FOR BACKUP, DO NOT USE
http://golismero-project.com
15 stars 4 forks source link

The number of child processes on OS X is always 10 regardless of settings #227

Closed MarioVilas closed 10 years ago

MarioVilas commented 10 years ago

I don't know why this happens, we've seen it on @cr0hn's Mac. On my Windows box it uses the default 4 processes in the pool, plus 4 more processes.

MarioVilas commented 10 years ago

untitled2

31272 is the main process, 31168 is the pool manager, and the plugins are 31136, 31480, 31528 and 31544. I don't remember what the remaining two are (27188 and 28676) but they're definitely not part of the pool.

cr0hn commented 10 years ago

Right. In OS X it runs a lot of threads. We don't know why:

golismero

MarioVilas commented 10 years ago

Hey, now it's working correctly! You used to have 10 forks instead of 20. The correct number of OSX should be 20.

"max_concurrent": (Configuration.integer, 4 if path.sep == "\" else 20),

Try setting some other value using the config file, maybe it's the config reader that's broken.

cr0hn commented 10 years ago

WoW, that’s right! Ummmm…. curious that now works well and running in server mode no.

El 16/12/2013, a las 16:40, Mario Vilas notifications@github.com escribió:

Hey, now it's working correctly! You used to have 10 forks instead of 20.

"max_concurrent": (Configuration.integer, 4 if path.sep == "\" else 20),

Try setting some other value using the config file, maybe it's the config reader that's broken.

— Reply to this email directly or view it on GitHub.

cr0hn commented 10 years ago

Checked!

If golismero not runs in daemon mode, forks number are correct:

I changed "max_concurrent" var, in source code by 5 value, and it creates 5 forks:

proc