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

Try using CDS to improve startup time / memory usage #5

Open
kentonv opened this issue Jan 17, 2015 · 0 comments
Open

Try using CDS to improve startup time / memory usage #5

kentonv opened this issue Jan 17, 2015 · 0 comments

Comments

@kentonv
Copy link

kentonv commented Jan 17, 2015

Something to try out sometime:

Apparently Java has this feature where you can essentially AOT-compile your classes into a big old dump that gets mmap'd in at runtime, for faster startup:

http://openjdk.java.net/groups/hotspot/docs/RuntimeOverview.html#Class%20Data%20Sharing|outline

That doc seems to suggest it's a 32-bit feature, so not totally sure if it will work for us, but it's worth looking into some time. If it works, all Java Sandstorm apps should do this.

Note that for Sandstorm, what you'd want to do is generate the dump before packaging and include it in the spk. That way all instances can share it (read-only).

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

No branches or pull requests

1 participant