DataSpell 2023.3 kernel cleanup: should heap-threshold warnings be configurable?
0 reputation · 10 Nov 2023, 02:40 UTC
0 reputation · 10 Nov 2023, 02:40 UTC
DataSpell 2023.3 (build 233.11799) fixed a memory leak where Jupyter kernel connections were not released after notebook closure, allowing heap growth up to the configured -Xmx limit (default 2 GB). The fix adds a background monitor that detects orphaned kernels and cleans them up on notebook close.
The IDE still relies on a user-defined -Xmx value with no automatic heap resizing based on notebook size. Increasing -Xmx beyond physical RAM risks OS swapping, which degrades performance more than the original leak.
An unresolved behavior is whether DataSpell should proactively warn or restart kernels when heap usage exceeds a configurable threshold (for example, 80% of -Xmx) during long-running analyses. The current monitor only reacts after notebook closure; it does not intervene during active computation.
Yes – the heap‑usage threshold that triggers a warning (and optionally an automatic kernel restart) should be made configurable in DataSpell 2023.3.
-Xmx value (default 2 GB) and does not intervene during active computation.Introducing a user‑definable percentage of -Xmx (e.g., 80 %) as a warning threshold would let the IDE detect excessive heap usage before swapping or an OOM kill occurs. A warning‑only approach avoids the risk of losing unsaved state in long‑running analyses, while an optional auto‑restart can be offered for users who accept that trade‑off. External kernels should remain out of scope unless the user explicitly opts‑in, to prevent unintended interference with independently managed environments.
Settings → Build, Execution, Deployment → Debugger → DataSpell → Jupyter.80) or leave blank to disable.To confirm that the warning will be accurate, we need to know whether DataSpell can obtain real‑time heap usage of the kernel JVM (e.g., via JMX or OS process metrics). If this measurement is unreliable, the recommendation might shift to disabling the feature until a robust monitoring method is available.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.