Code Monkey home page Code Monkey logo

Comments (5)

flowirtz avatar flowirtz commented on May 31, 2024

This seems to have gotten better a bit, but the underlying problem still seems to be there.

image

This is the memory usage of the container for the last three days. While the memory usage does grow way slower, it still is growing until it crashes at some point. Note that this is on v1.2.0 though, not latest.

I'll try to push the new version today and see whether anything changes.

from metoffice_ec2.

flowirtz avatar flowirtz commented on May 31, 2024

So it seems like we still see that issue on the latest version:

e089abeca5cc4c8684d29a0d8919a691: main: OutOfMemoryError: Container killed due to memory usage
f75d195e627843b58031f42f74a28f7a: main: OutOfMemoryError: Container killed due to memory usage

from metoffice_ec2.

JackKelly avatar JackKelly commented on May 31, 2024

Hmm... are we certain Python is using all the memory here? It's not, say, disk caching or something weird like that?

The only objects which persist in the ec2.py script are _LOG and a few constants.

If it is Python then a simple hack might be to change the ec2.py script to terminate (and hence flush its memory usage) when the SQS queue is empty; and then call ec2.py from a bash script which calls ec2.py from an endless while loop?!?

from metoffice_ec2.

JackKelly avatar JackKelly commented on May 31, 2024

Just had a quick chat with Flo:

  • Analysing memory usage in containers isn't trivial.
  • For now, let's just assume it is our Python script that's using all the memory.
  • A quick-and-dirty hack is to wrap our Python script in a Bash script, as outlined in my comment immediately above.

from metoffice_ec2.

flowirtz avatar flowirtz commented on May 31, 2024

don't see this anymore, closing.

from metoffice_ec2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.