Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak Issue #172

Open
j4schur opened this issue Feb 6, 2015 · 4 comments
Open

Memory Leak Issue #172

j4schur opened this issue Feb 6, 2015 · 4 comments

Comments

@j4schur
Copy link

j4schur commented Feb 6, 2015

Just wanted to say something before I post an issue. Kvasir is an amazing product for being Open Source. Reminds me of Metasploit Pro without the 50k price tag. Good work guys.

So I've noticed using Kvasir that memory that's not needed isn't released back to the system. Kvasir will just keep hold the memory until you physically stop the service. I have 15GB of memory on my laptop and have postgresql running on a backend server. Kvasir will slowly use all of my memory on the laptop if I let it.

I know in your README file you say its for small engagements. But I wanted to see if I can import over 5,000 IP worth of Nessus vulnerability data and see how it handles. Other than the memory leak issue it can handle it.

Thanks for a great product. Would love to help out any way I can.

Jason

@grutz
Copy link
Contributor

grutz commented Feb 6, 2015

Thanks for the kind words! My goal isn't to remake MSF Pro but to enhance
the collection and usage processes around penetration test data.

My guess is the memory issue is a combo of web2py, python and Kvasir's use
of cache.ram. A quick test would be to do a global search/replace cache.ram
to cache.disk. This could have other consequences so make sure you can
revert easily. It shouldn't impact any stored data, just how web2py/Kvasir
store cache data.

More on web2py's cache @
http://web2py.com/books/default/chapter/29/04/the-core#cache

I would expect Imports to eat a lot of cache/memory as it's probably the
most active of tasks. I have been running a number of imports this morning
and my python still has yet to breach 500 MB real memory size (based on OS
X Activity Monitor):
[image: Inline image 1]
What version of python, web2py and OS are you using?

Kurt Grutzmacher -=- [email protected]

On Fri, Feb 6, 2015 at 9:00 AM, j4schur [email protected] wrote:

Just wanted to say something before I post an issue. Kvasir is an amazing
product for being Open Source. Reminds me of Metasploit Pro without the 50k
price tag. Good work guys.

So I've noticed using Kvasir that memory that's not needed isn't released
back to the system. Kvasir will just keep hold the memory until you
physically stop the service. I have 15GB of memory on my laptop and have
postgresql running on a backend server. Kvasir will slowly use all of my
memory on the laptop if I let it.

I know in your README file you say its for small engagements. But I wanted
to see if I can import over 5,000 IP worth of Nessus vulnerability data and
see how it handles. Other than the memory leak issue it can handle it.

Thanks for a great product. Would love to help out any way I can.

Jason


Reply to this email directly or view it on GitHub
#172.

@j4schur
Copy link
Author

j4schur commented Feb 6, 2015

By the way thanks for the quick response. I'll have to try and replace cache.ram with cache.disk and see if that helps.

Python version = 2.7.5
OS version = CentOS 7
web2py version = 2.9.12

Today I'm not importing anything and python is using 21% of the system memory at the moment. I'm just browsing the data I imported yesterday and adding notes and things.

@grutz
Copy link
Contributor

grutz commented Feb 6, 2015

Are you sure this isn't active memory vs virtual memory usage? What are you
using to track its usage?

Kurt Grutzmacher -=- [email protected]

On Fri, Feb 6, 2015 at 10:58 AM, j4schur [email protected] wrote:

By the way thanks for the quick response. I'll have to try and replace
cache.ram with cache.disk and see if that helps.

Python version = 2.7.5
OS version = CentOS 7
web2py version = 2.9.12

Today I'm not importing anything and python is using 21% of the system
memory at the moment. I'm just browsing the data I imported yesterday and
adding notes and things.


Reply to this email directly or view it on GitHub
#172 (comment)
.

@j4schur
Copy link
Author

j4schur commented Feb 6, 2015

Sorry that would be total memory. I'm using htop for linux to track the usage. Here are the stats I'm seeing as of right now:

VIRT = 7373M
RES = 5892M
MEM% = 27.8

Command = python /opt/web2py/web2py -p 8443 -i 0.0.0.0 --minthreads=40 --password=XXXXX -X -K kvasir,kvasir,kvasir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants