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

cpu limit per isolate #13654

Closed
amirhosseinvz94 opened this issue Feb 12, 2022 · 2 comments
Closed

cpu limit per isolate #13654

amirhosseinvz94 opened this issue Feb 12, 2022 · 2 comments
Labels

Comments

@amirhosseinvz94
Copy link

Hi,

I'm executing untrusted javascript inside deno, and i have trouble
with some scripts that take cpu time.

Is there any way I can set an execution cpu time limit of some deno executed
script?

@jsejcksn
Copy link
Contributor

@amirhosseinvz94 AFAIK, V8 doesn't offer this, but there's lots of online documentation to be found for setting the priority of a process on a given operating system. You can use these methods in combination with deno compile to set the priority for a specific compiled binary.

@stale
Copy link

stale bot commented Apr 18, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants