Giter Club home page Giter Club logo

Comments (2)

garrettheel avatar garrettheel commented on June 2, 2024

Agreed that it'd be great to cut down on memory usage! Have you been able to give v2.0.0 a try yet? That should hopefully help a bit, but open to PRs to improve this further.

from awspricing.

TomGudman avatar TomGudman commented on June 2, 2024

Hi @garrettheel

Issue

The memory issue still exists and gets worse everytime AWS adds more instance types I guess ;-). Right now my script uses up to 9.5GB of memory. By tracing it with py-spy I can see the CPU is heavily used to decode JSON and I suspect the memory is used by all the dict objects resulting. While it was bearable a year ago now my i7 / 16GB Macbook pro 2015 comes to almost to halt for 30sec because of my script running with the following line and often I have to kill firefox to have enough memory to run it otherwise it fails with a MemoryError

Code

offerings = conn.describe_reserved_instances_offerings(MaxDuration=MaxRiDuration * 2592000,InstanceTenancy='default')

Questions

Is there any possible workaround to use less memory? and as a bonus less CPU... Other than buy a new laptop ;-)

Environment

  • Python 2.7.12+ (Debian)
  • awspricing (2.0.3)

from awspricing.

Related Issues (15)

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.