<?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 Databricks app crash in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/databricks-app-crash/m-p/132808#M1164</link>
    <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I am working on a databricks app project. IT's a chatbot on a monorepo wih a frontend built with next.js and a fastapi backend.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sometimes the app crashes unexpectedly. In the logs i see these messages :&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; sending sigterms to other processes&lt;BR /&gt;npm run start:api exited with code 137&lt;BR /&gt;Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons) at TCP.callback...&lt;BR /&gt;Failed to proxy &lt;A href="http://localhost..." target="_blank"&gt;http://localhost...&lt;/A&gt;. ERROR: read ECONNRESET&amp;nbsp;&lt;BR /&gt;Killed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas ? I know the project setup is not ideal but i still don't get why the sudden crashes happen.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 09:02:07 GMT</pubDate>
    <dc:creator>kay0291</dc:creator>
    <dc:date>2025-09-23T09:02:07Z</dc:date>
    <item>
      <title>Databricks app crash</title>
      <link>https://community.databricks.com/t5/generative-ai/databricks-app-crash/m-p/132808#M1164</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I am working on a databricks app project. IT's a chatbot on a monorepo wih a frontend built with next.js and a fastapi backend.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sometimes the app crashes unexpectedly. In the logs i see these messages :&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; sending sigterms to other processes&lt;BR /&gt;npm run start:api exited with code 137&lt;BR /&gt;Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons) at TCP.callback...&lt;BR /&gt;Failed to proxy &lt;A href="http://localhost..." target="_blank"&gt;http://localhost...&lt;/A&gt;. ERROR: read ECONNRESET&amp;nbsp;&lt;BR /&gt;Killed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas ? I know the project setup is not ideal but i still don't get why the sudden crashes happen.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 09:02:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/databricks-app-crash/m-p/132808#M1164</guid>
      <dc:creator>kay0291</dc:creator>
      <dc:date>2025-09-23T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks app crash</title>
      <link>https://community.databricks.com/t5/generative-ai/databricks-app-crash/m-p/133046#M1173</link>
      <description>&lt;P class="qt3gz91 paragraph"&gt;Hey Kay0291 -&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;Your logs suggest the app is running out of memory: exit code 137 means the OS killed your process (likely exceeding Databricks Apps’ 2 vCPU/6GB RAM limit). This often happens when both Next.js and FastAPI run together, especially under load, and can lead to ECONNRESET errors when the backend crashes and the frontend can’t connect.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;Quick tips:&lt;/P&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;Monitor memory use locally under similar load and check for memory leaks or heavy caching in your code.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Reduce the number of worker processes for both Next.js and FastAPI to stay within the memory cap.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;Scale down concurrent users or requests if possible, and offload heavy tasks to Databricks Jobs or Model Serving.&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;If the issue persists and isn’t memory-related, check for missing environment variables or dependency issues.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="qt3gz91 paragraph"&gt;Note that Databricks Apps is designed for Python API backends with static JS/React assets—server-side Node.js isn’t fully supported. More flexible compute options are planned for the future.&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;Let me know if you need more details on any of these steps!&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;Best&lt;/P&gt;
&lt;P class="qt3gz91 paragraph"&gt;Sarah&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 17:30:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/databricks-app-crash/m-p/133046#M1173</guid>
      <dc:creator>sarahbhord</dc:creator>
      <dc:date>2025-09-25T17:30:47Z</dc:date>
    </item>
  </channel>
</rss>

