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

RAM usage is concerning #1301

Closed
julsemaan opened this issue Apr 1, 2016 · 10 comments
Closed

RAM usage is concerning #1301

julsemaan opened this issue Apr 1, 2016 · 10 comments
Assignees

Comments

@julsemaan
Copy link
Collaborator

With the latest internal reports from @fdurand I think we should spend time profiling our RAM usage before releasing v6.

There may - read is - be place for optimization

@julsemaan julsemaan added the v6 label Apr 1, 2016
@julsemaan julsemaan added this to the PacketFence-6 milestone Apr 1, 2016
@julsemaan
Copy link
Collaborator Author

Found one of the problems
#1303

@julsemaan
Copy link
Collaborator Author

Another one
#1304

@jrouzierinverse
Copy link
Member

Another #1308

@julsemaan
Copy link
Collaborator Author

I thought @jrouzierinverse was the one in charge of digging the memory issue :P

@jrouzierinverse
Copy link
Member

Yes I am at the moment most of the things I found does not reduce memory by a lot and requires a lot of time to fix.
I am focusing my time to fix bugs at the moment.
I do have an approach that may be able to quickly reduce memory by some and it does not require a lot of effort on my part but I would need prefer to fix bugs at the moment.

@jrouzierinverse
Copy link
Member

Some good news on this front I was able to reduce the portal httpd process by at least 20 megabytes.
I wrote a script to help migrate all auto exported functions to export_ok.
However it would need be tested thoroughly to ensure that everything was done correctly.

Since it is one of those huge commits we should push this to 6.1 to avoid delaying the 6.0 release.

@jrouzierinverse
Copy link
Member

For those who are interested the script is here.

https://github.com/inverse-inc/packetfence/blob/feature/no_export/addons/dev-helpers/no_export.sh

@tribut
Copy link
Contributor

tribut commented May 1, 2016

On 6.0.1 (Debian jessie) when I click Update Fingerbank DB in Fingerbank Settings two of the webservices httpd processes start hogging memory after a few seconds (4GB and 1G resp.). Do you need help reproducing this or is this a known issue?
Possibly related to #1303.

@julsemaan
Copy link
Collaborator Author

@tribut
Due to the enormous size of the Fingerbank database, updating it uses a pretty good amount of RAM.
But, this should last for ~1-2 minutes and be released afterwards.
Also, pfqueue should be the one doing the update and not the webservices.

I've opened #1452 for this matter.
Can you post pfqueue.log and packetfence.log on this other issue. Will also try to replicate tomorrow.

@dwlfrth dwlfrth removed this from the PacketFence-6.2 milestone Jul 7, 2016
@julsemaan julsemaan removed this from the PacketFence-6.4 milestone Oct 14, 2016
@julsemaan
Copy link
Collaborator Author

That's a never ending fight but we're back to an acceptable usage

Closing

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

No branches or pull requests

5 participants