Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

JAVA in loop leading to errors caused by memory loss (and other things)

1 Ansicht (letzte 30 Tage)
Harry
Harry am 30 Mai 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have a program which creates JAVA objects within a loop. After every iteration the command
clear java
is used. After running for 10 or more hours, with each loop taking about 60 seconds, the program returns errors seemingly caused by memory overflow. It also occasionally returns errors relating to comanly used matlab functions like
pause()
save()
Is the clear java command sufficient to free all memory used by java objects? If it is not, are there any functions that would? If it is what else could be causing these errors?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by