Ticket #1672 (closed: fixed)
Memory is swallowed up when reloading the instrument many times
Reported by: | Martyn Gigg | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Iteration 25 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Michael Whitty |
Description
The following script simply reloads the instrument 50 times. After the first load the memory usage should stay constant but instead it spirals up to about 500MB.
for i in range(50): LoadInstrument('../../../Test/Instrument/SANS2D_Definition.xml','sans2d')
Change History
comment:3 Changed 10 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
comment:4 Changed 10 years ago by Michael Whitty
- Status changed from verify to verifying
- Tester set to Michael Whitty
comment:5 Changed 10 years ago by Michael Whitty
- Status changed from verifying to closed
There are still some small memory leaks, but in general this seems to work well when tested in a manner it could possibly be used (ie, not just reloading the instrument thousands of times over and over). The increase detected is orders of magnitude below that which was present in [5988] and is unlikely to inconvenience users.
Note: See
TracTickets for help on using
tickets.