-
Notifications
You must be signed in to change notification settings - Fork 29
PS-10419 [DOCS] - update js_lang documents with memory limits 8.4 #636
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
base: 8.4
Are you sure you want to change the base?
Conversation
patrickbirch
commented
Dec 29, 2025
81fdc3c to
c03a279
Compare
c03a279 to
8cd15bc
Compare
8cd15bc to
c1320e4
Compare
dlenev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Patrick!
I think descriptions of hard and soft memory limits require adjustment.
c1320e4 to
5b50d47
Compare
dlenev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Patrick!
A few more comments from me.
|
|
||
| This variable controls the hard limit for JS routine memory allocation. When set to a non-zero value, the component calculates the hard limit as `js_lang.max_mem_size * js_lang.max_mem_size_hard_limit_factor` in bytes. | ||
|
|
||
| When a JS session's memory usage reaches the hard limit threshold, V8 triggers out-of-memory (OOM) handling, which terminates and crashes the entire mysqld process. This is different from the soft limit behavior, where V8 Isolate Termination stops only the JS execution and returns an error to the client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps also mention here the last chance GC before crashing process which you describe above?
modified: docs/install-js-lang.md modified: docs/js-lang-overview.md modified: docs/js-lang-privileges.md modified: docs/js-lang-procedures.md modified: docs/js-lang-troubleshoot.md modified: docs/js-lang-variables.md modified: docs/uninstall-js-lang.md
5b50d47 to
7ab4674
Compare
dlenev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Patrick!
After the latest changes the proposed PR looks OK to me.