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

Need to bound the memory use of Jsonnet evaluation #6

Closed
sparkprime opened this issue Aug 10, 2014 · 1 comment
Closed

Need to bound the memory use of Jsonnet evaluation #6

sparkprime opened this issue Aug 10, 2014 · 1 comment

Comments

@sparkprime
Copy link
Member

The interpreter currently knows how many objects are live, but not how large they are. If it had this extra information, it would be possible to place a bound on the amount of memory that can be used during execution. This makes it safer to run Jsonnet in a server environment.

@sparkprime
Copy link
Member Author

The most reliable way to do this is, e.g. when evaluating Jsonnet server side, is to fork a new process to run Jsonnet (e.g. just run the standard commandline binary) and then ulimit that process.

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

1 participant