Pass args on JVM startup
See original GitHub issueHi !
I’m hitting the 8G memory limit and wanted to pass the -Xmx startup flag but couldn’t find how to it. I believe it’s useful to be able to customize how the JVM starts up.
I’m not familiar with Jupyter’s internals, but is this where the args should be passed ?
https://github.com/Kotlin/kotlin-jupyter/blob/3e3ebaa0e47ac885f41552583b12b9110bd40740/distrib/run_kotlin_kernel/run_kernel.py#L42
Or should we pass them somewhere else ?
Cheers !
PS : If you have any tips on how to change the memory limit, I’m still interested 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Configuring the Default JVM and Java Arguments
This guide describes the installation process for Oracle Unified Directory and the components that are required to manage it.
Read more >Is it possible to pass JVM arguments on the command line ...
I'm trying to find a way to pass command line arguments to the JVM when starting Liberty via "server start" or "server run"....
Read more >Why do JVM arguments start with "-D"? - Stack Overflow
How to distinguish your -myProp from the -myProp JVM option ? No way. So it exists an obvious reason to use -D to...
Read more >JVM Parameters - Java Development Journal
In this post, we will be covering some of the most important and critical JVM Parameters which can be used to configure and...
Read more >Guide to the Most Important JVM Parameters - Baeldung
Learn about the most important JVM parameters which can be used to improve web applications performance.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not sure what config you are looking for (and fully agree we need more doc), but this is what I use to add kernels with different JVM settings:
python -m kotlin_kernel add-kernel --name "XLARGE 16GB" --jvm-arg=-Xmx16GCould we get some simple example in readme.md that could show where to locate and how to change the configuration file?
Reading this thread I am not sure if setting up some env variables fixes the problem or not.
Not sure if I have to clone the repository and change the config before installing the kernel?
I guess that setting can be found in:
(...)/anaconda3/pkgs/kotlin-jupyter-kernel-0.11.0.61-py_0/share/jupyter/kernels/kotlin/, that’s not obvious to a user when trying out the library and then getting hit with heap size error when loading a testing CSV.