High RAM consumption with long-lasting work

Dear all,
I experienced very high demand for RAM memory when running my script.
The script is doing the following things:
1) reads the content of the directory in a while loop and when new file (image) appears do the object detection
2) output of the object detection is sent to the mysql database
I added an additional condition to clean selected variable (clear name) after 100 iterations of the loop. It still does not help, MATLAB increases the memory very quickly.
Three days of work - 120 GB of RAM was eaten.

1 Comment

Without seeing the code, it is impossible to guess, how it works or to suggest a modification.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 13 Mar 2023

Commented:

Jan
on 13 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!