You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We provide various CLI tools, most of which are lightweight and perform relatively quick operations. By default, we do not set any java options when we launch the jvm to run these tools so they run with the JDK's default options and on current JVMs the values are decided by ergonomics. On a linux machine with 64GB of ram the following options are selected by OpenJDK 12.0.1:
These values are in bytes and correspond to approximately a minimum of 1GB and a max of 16GB. While this might seem harmless, there are cases when these tools are run on machines where a node is already consuming almost all of the memory and the invocation of this tool triggers the oomkiller and takes down the node inadvertently.
Given this, we should provide a jvm.options file specifically for CLI tools so that they can be even more lightweight and safer to use where memory may already be an issue.
The text was updated successfully, but these errors were encountered:
I'm not sure we need the configurability of jvm options for cli tools? Rather, we could use defaults for clis (or things we set explicitly, eg small heap size we set explicitly). Having these configurable would add the potential for confusion between the different options files.
We provide various CLI tools, most of which are lightweight and perform relatively quick operations. By default, we do not set any java options when we launch the jvm to run these tools so they run with the JDK's default options and on current JVMs the values are decided by ergonomics. On a linux machine with 64GB of ram the following options are selected by OpenJDK 12.0.1:
These values are in bytes and correspond to approximately a minimum of 1GB and a max of 16GB. While this might seem harmless, there are cases when these tools are run on machines where a node is already consuming almost all of the memory and the invocation of this tool triggers the oomkiller and takes down the node inadvertently.
Given this, we should provide a jvm.options file specifically for CLI tools so that they can be even more lightweight and safer to use where memory may already be an issue.
The text was updated successfully, but these errors were encountered: