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

jvm heap failure with large number of instances #40

Open
maxiaohao opened this issue Dec 9, 2016 · 1 comment
Open

jvm heap failure with large number of instances #40

maxiaohao opened this issue Dec 9, 2016 · 1 comment

Comments

@maxiaohao
Copy link
Member

maxiaohao commented Dec 9, 2016

Large number of instances can failure the jvm - see class AbstractMockEc2Instance, which makes use of java.util.Timer and can be a probable cause. That means every mock EC2 instance runs in a separate jvm thread based on java.util.Timer, which consumes considerable amount of resources and large number of threads could easily fail the jvm.
For now we set a large jvm heap size in gradle.properties of 4GB heap in memory to afford 30k mock EC2 instances successfully, which is fairly a large number though.
However, we need to explore further options that can substitute the current java.util.Timer based model and have the performance improved.

@nottoseethesun
Copy link
Member

This is an enhancement, as aws-mock already works fine for a large number of instances. This is only to increase that already large number.

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