-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
First of all, thanks a lot for creating such an awesome extension!
I've been using matlab magic recently on a project, which repeatedly calls the following function with random parameters:
# mlab is initiated:
# import pymatbridge as pymat
# mlab = pymat.Matlab()
def matlab_bilinear(Bs, As, fs, fp):
res = mlab.run_code('[Bz, Az] = bilinear(%s, %s, %s, %s);' % (Bs, As, fs, fp))
Bz = mlab.get_variable('Bz')
Az = mlab.get_variable('Az')
return Bz, Az
After calling matlab_bilinear
over 4 million times, the MATLAB process is using a substantial amount of memory (8% out of a 48GB-memory server) and apparently is still increasing. I don't think it is related specifically to the code I wrote, so I am wondering if there is any part which could cause memory leak very slowly or it's simply because the parameters are internally stored in memory by Matlab and keep accumulating. Any comments or suggestions are welcome. Thanks!
Best,
Dawen
Metadata
Metadata
Assignees
Labels
No labels