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

Look into memory leaks #4

Open
tepickering opened this issue Oct 29, 2017 · 2 comments
Open

Look into memory leaks #4

tepickering opened this issue Oct 29, 2017 · 2 comments

Comments

@tepickering
Copy link
Contributor

The wfssrv process is quite resource-intensive even when not being actively used. It appears that garbage collection is not being done properly which appears to be an issue with tornado in some circumstances. Need to go through and make sure all of the callbacks are exiting properly, unused objects get deleted manually, and maybe add some direct calls to gc to force garbage collection to happen.

@tepickering
Copy link
Contributor Author

it looks like the leaks are under control. after several nights of use the wfssrv process looks like:

mmtop    10579  5.3  8.9 1628488 735260 ?      Ssl  Nov01 404:32 /mmt/conda/bin/python /mmt/WFSsrv/wfssrv/wfssrv.py

it starts off much smaller and increases with use, but seems to eventually stabilize around this level of usage. so it looks like it's not actively leaking, but it seems like there are things that could probably be garbage collected.

@tepickering
Copy link
Contributor Author

here is a baseline process after the server restarted itself, but had not been used yet:

mmtop    10579  5.7  4.5 1219728 370296 ?      Ssl  Nov01 509:47 /mmt/conda/bin/python /mmt/WFSsrv/wfssrv/wfssrv.py

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

1 participant