cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

User Memory problem on driver with DLT

Lulka
New Contributor II

Hi!

I have a problem with user memory on driver (I have almost several mb of storage memory, 0 Execution memory and more than 7GB of JVM Memory on Heap in use).

How it can be? I don't have any broadcast variables, joins or aggregations.

All the pipeline:

1. I create a list of 20 string values

2. I iterate throw this list and do the following:

a. Create dlt.view from streaming source

b. Create streaming_live_table

c. Use apply_changes for scd-1

What this 7GB of Heap Memory on driver can be? As I understand, it's an user memory, but why so huge amount?

How I can reduce it? Is it a metadata for dlt or smth like that?

Is it a good approach to iterate throw the python list to create dlt?

Hope someone can give answers to some questions. Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable

@Yuliya Valavaโ€‹ : Giving you many possible threads to think about and implement.

  1. It's possible that the 7GB of Heap Memory on the driver is being used to store metadata related to the data being processed
  2. Iterating through the Python list to create DLTs could be causing this memory issue if the DLTs are being stored in memory. Can you try using spark Spark to process your data. This would allow you to distribute the processing across multiple nodes, which can help reduce memory usage on individual nodes
  3. To reduce the memory usage, you could also try creating a single DLT for all the data rather than creating a new DLT for each iteration of the loop

View solution in original post

2 REPLIES 2

Anonymous
Not applicable

@Yuliya Valavaโ€‹ : Giving you many possible threads to think about and implement.

  1. It's possible that the 7GB of Heap Memory on the driver is being used to store metadata related to the data being processed
  2. Iterating through the Python list to create DLTs could be causing this memory issue if the DLTs are being stored in memory. Can you try using spark Spark to process your data. This would allow you to distribute the processing across multiple nodes, which can help reduce memory usage on individual nodes
  3. To reduce the memory usage, you could also try creating a single DLT for all the data rather than creating a new DLT for each iteration of the loop

Anonymous
Not applicable

Hi @Yuliya Valavaโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group