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

Out of Memory exceptions when downloading #624

Open
tucotuco opened this issue Aug 15, 2016 · 1 comment
Open

Out of Memory exceptions when downloading #624

tucotuco opened this issue Aug 15, 2016 · 1 comment

Comments

@tucotuco
Copy link
Member

When downloading,

Trying Query: order:Lagomorpha haslength:1
Options: search.QueryOptions(limit=1000, number_found_accuracy=10000, cursor=search.Cursor(), ids_only=False)
Version: search.py 2016-08-15T16:43+02:00

Found 9404 records in 10.1s

App Engine shuts down the instance with a message:

Exceeded soft private memory limit of 128 MB with 138 MB after servicing 26 requests total

This is happening inconsistently, and is something that would be much easier to isolate and purge with a re-architecture to use micro-services or modules.

@tucotuco tucotuco changed the title Out of Memory exception Out of Memory exceptions when downloading Aug 15, 2016
@tucotuco
Copy link
Member Author

Adding additional gc.collect() statements in the Handlers did not make any difference. Exceptions remain inconsistent, this time with 3 out of ten service/download/write calls causing exception as opposed to 1 before putting in the gc.collect() calls.

Exceeded soft private memory limit of 128 MB with 135 MB after servicing 8 requests total

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

2 participants