<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python notebook crashes with &amp;quot;The Python kernel is unresponsive&amp;quot; in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/38900#M5607</link>
    <description>&lt;P&gt;I have been using&amp;nbsp;&lt;SPAN&gt;Ganglia UI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;but I didn't see the memory running out, is it the correct way for monitoring memory usage? are there more options?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 08:39:57 GMT</pubDate>
    <dc:creator>TalY</dc:creator>
    <dc:date>2023-08-02T08:39:57Z</dc:date>
    <item>
      <title>Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/38890#M5605</link>
      <description>&lt;P&gt;While using a Python notebook that works on my machine it crashes on the same point with the errors "The Python kernel is unresponsive" and "&lt;SPAN class=""&gt;The Python process exited with exit code 134 (SIGABRT: Aborted).",&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;but with no stacktrace for debugging the issue in the notebook output or in the databricks cluster's logs (and no memory spikes in the monitoring). What can I do to debug this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 07:12:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/38890#M5605</guid>
      <dc:creator>TalY</dc:creator>
      <dc:date>2023-08-02T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/38900#M5607</link>
      <description>&lt;P&gt;I have been using&amp;nbsp;&lt;SPAN&gt;Ganglia UI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;but I didn't see the memory running out, is it the correct way for monitoring memory usage? are there more options?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 08:39:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/38900#M5607</guid>
      <dc:creator>TalY</dc:creator>
      <dc:date>2023-08-02T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39122#M5609</link>
      <description>&lt;P&gt;This is almost surely OOM. Yes you use the Metrics tab in the cluster UI to see memory usage. However, you may not observe memory usage is high before OOM - maybe something is allocating a huge amount of memory at once.&lt;/P&gt;&lt;P&gt;I think 90% of these issues are resolvable by code inspection. What step fails? is it pulling a bunch of stuff to the driver? are you allocating a huge dataset?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 15:03:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39122#M5609</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2023-08-04T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39200#M5610</link>
      <description>&lt;P&gt;I did notice a couple of times log messages in the driver's logs about memory allocation failure, so I tried 2 things one is to use smaller dataframe (from 200k rows to 10k) and the second is optimizing the use with pandas which did not help. After some searching over the weekend, I found that adding the following lines prevent it from crashing:&lt;/P&gt;&lt;DIV&gt;logging.getLogger(&lt;SPAN&gt;"py4j"&lt;/SPAN&gt;).setLevel(logging.ERROR)&lt;BR /&gt;logging.getLogger(&lt;SPAN&gt;"py4j.java_gateway"&lt;/SPAN&gt;).setLevel(logging.ERROR)&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;And also I have been successfully running that notebook on my personal computer which has 32GB and the databricks driver is a "m5d.4xlarge" which has 64GB.&lt;BR /&gt;&lt;BR /&gt;I prefer a cleaner solution ofc, so given this the direction of OOM is still the most probable one?&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Aug 2023 13:44:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39200#M5610</guid>
      <dc:creator>TalY</dc:creator>
      <dc:date>2023-08-06T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39206#M5611</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85752"&gt;@TalY&lt;/a&gt;&amp;nbsp; - Could you please let us know the DBR version used for running? Kindly try DBR 12.2 LTS or above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to debug this, there will be a&lt;SPAN&gt;&amp;nbsp;hs_err_pid.log file&lt;/SPAN&gt; provided with the problematic JVM details under the "python kernel unresponsive" error stack trace.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2023 21:38:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39206#M5611</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2023-08-06T21:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook crashes with "The Python kernel is unresponsive"</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39232#M5612</link>
      <description>&lt;P&gt;I am using the following DBR&amp;nbsp;&lt;SPAN&gt;12.2 LTS (includes Apache Spark 3.3.2, Scala 2.12).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Fatal error&lt;/SPAN&gt;: The Python kernel is unresponsive.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt; &lt;SPAN class=""&gt;The Python process exited with exit code 134 (SIGABRT: Aborted).&lt;/SPAN&gt; &lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt; &lt;SPAN class=""&gt;The last 10 KB of the process's stderr and stdout can be found below. See driver logs for full logs.&lt;/SPAN&gt; &lt;SPAN class=""&gt;---------------------------------------------------------------------------&lt;/SPAN&gt; &lt;SPAN class=""&gt;Last messages on stderr:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Tue Aug 1 18:02:57 2023 Connection to spark from PID 2632&lt;/SPAN&gt; &lt;SPAN class=""&gt;Tue Aug 1 18:02:57 2023 Initialized gateway on port 45165&lt;/SPAN&gt; &lt;SPAN class=""&gt;Tue Aug 1 18:02:57 2023 Connected to spark.&lt;/SPAN&gt; &lt;SPAN class=""&gt;[IPKernelApp] WARNING | No such comm: LSP_COMM_ID&lt;/SPAN&gt; &lt;SPAN class=""&gt;[IPKernelApp] WARNING | No such comm: LSP_COMM_ID&lt;/SPAN&gt; &lt;SPAN class=""&gt;[IPKernelApp] WARNING | No such comm: LSP_COMM_ID&lt;/SPAN&gt; &lt;SPAN class=""&gt;[2023-08-01 18:06:22,007] [INFO] Received command c on object id p0&lt;/SPAN&gt; &lt;SPAN class=""&gt;[2023-08-01 18:06:22,030] [INFO] Received command c on object id p0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;And:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Last messages on stdout: NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. To exit, you will have to explicitly quit this process, by either sending "quit" from a client, or using Ctrl-\ in UNIX-like environments. To read more about this, see &lt;A href="https://github.com/ipython/ipython/issues/2049" target="_blank" rel="noopener"&gt;https://github.com/ipython/ipython/issues/2049&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;Those log lines led me in the direction of changing the log level&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 07:50:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-notebook-crashes-with-quot-the-python-kernel-is/m-p/39232#M5612</guid>
      <dc:creator>TalY</dc:creator>
      <dc:date>2023-08-07T07:50:19Z</dc:date>
    </item>
  </channel>
</rss>

