Comments (2)
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.
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)
- New SKU's causing issue while loading AmazonEC2 Offer HOT 1
- Move to boto3 pricing API? HOT 1
- Needs API documentation
- Problem calling rds_offer.reserved_upfront() HOT 2
- Why i cant have a 1yr all upfront convertible EC2 instance?
- Cannot Find SKU for EC2s HOT 1
- new attribute capacitystatus causes collisions.
- Getting an offer just hangs HOT 1
- MemoryError HOT 1
- Can I request pricing for GovCloud? HOT 4
- Library stuck on retrieving pricing HOT 3
- add 1 region pricing
- Can't see /tmp/awspricing file
- Add RDS offers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awspricing.