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

Have option to set heap size via V8RuntimeConstraints? #4

Closed
PeteDuncanson opened this issue Feb 18, 2015 · 1 comment
Closed

Have option to set heap size via V8RuntimeConstraints? #4

PeteDuncanson opened this issue Feb 18, 2015 · 1 comment

Comments

@PeteDuncanson
Copy link

In the docs for clearscript I noticed you can pass in a constraints object that lets you set the memory size that you are happy for the runtime to get up to.

Noticed in this thread that they no longer recommend using it however it might still be useful in a pooled environment (hoping @Daniel15 will know more about this than me) so flagging it up as a nice to know.

https://clearscript.codeplex.com/discussions/572036

@Daniel15
Copy link
Owner

JavaScriptEngineSwitcher supports these in the Web.config or App.config now, similar to #5. Example:

<v8 disableGlobalMembers="true" maxExecutableSize="..." maxNewSpaceSize="..." maxOldSpaceSize="..." />

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

2 participants