Skip to content

OOM kills the process due to lack of memory#59

Open
simbadmorehod wants to merge 17 commits intopegler:masterfrom
cjh79:master
Open

OOM kills the process due to lack of memory#59
simbadmorehod wants to merge 17 commits intopegler:masterfrom
cjh79:master

Conversation

@simbadmorehod
Copy link
Copy Markdown

Querying the time zone by coordinates, eats more than 500MB of memory, which causes my product to stop on the server.
Are there any examples of code optimization?

.service: Main process exited, code=killed, status=9/KILL
.service: Failed with result 'signal'.

**from tzwhere import tzwhere

async def get_tz(latitude, longitude):
tz = tzwhere.tzwhere(forceTZ=True)
tz = tz.tzNameAt(latitude, longitude, forceTZ=True)
return tz**

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

Successfully merging this pull request may close these issues.

2 participants