question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass args on JVM startup

See original GitHub issue

Hi !

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:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jbaroncommented, Mar 15, 2022

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=-Xmx16G

0reactions
nlhntcommented, Mar 15, 2022

Could 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found