[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60979] Memory space used per GNU octave incre
From: |
Simon Morisset |
Subject: |
[Octave-bug-tracker] [bug #60979] Memory space used per GNU octave increases inexplicably |
Date: |
Tue, 27 Jul 2021 10:34:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0 |
URL:
<https://savannah.gnu.org/bugs/?60979>
Summary: Memory space used per GNU octave increases
inexplicably
Project: GNU Octave
Submitted by: simon_morisset
Submitted on: mar. 27 juil. 2021 14:34:13 UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Performance
Status: None
Assigned to: None
Originator Name: Simon Morisset
Originator Email:
Open/Closed: Open
Release: 6.3.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
I run scripts which read data from an udp port and then make several figures
in real time every seconds. The code works very well. However, the memory
space used per Octave when these scripts are running, increase continusly
while the size of the variables remains unchanged. I isolated two small
examples which reproduce this increasing of memory space (looking memory from
windows in task manager):
% Example #1
-- fig = figure;
-- while 1
-- refreshdata(fig)
-- pause(0.1)
-- end
% Example #2
-- s=udp('10.0.0.16', 10001,'localport',10000); % with incoming data in this
port
-- while 1
-- fread(s,s.bytesavailable);
-- pause(0.1)
-- end
-- udp_close(s);
When one of these two example is running, the memory increases step by step.
If I let these codes running several hours or days, they saturate the windows
memory and Octave freezes.
If I stop these codes before freezing and I clear all the Octave space (clear
all, clear classes, clear java, clc), the memory does not reduce. The only
solution is to restart Octave to comeback to a normal memory level (~50Mo)
First question: Why the memory increases when no variables are increasing?
Second question: How to flush the full octave memory without restart it?
Thank you for the support.
Regards
Windows 10
Ocatve 6.0.1 and 6.0.3
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60979>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60979] Memory space used per GNU octave increases inexplicably,
Simon Morisset <=