Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: How to release DOORS Memory
Topic Summary:
Created On: 31-Aug-2007 07:34
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-Aug-2007 07:34
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

I am trying to open 'N' number of modules one after the other and  closing it with out performing any operation on the module. Even though I am closing the module, But I could found that DOORS is not releasing the memory associated with that module.fficeffice" />>>

> >

I could find the memory status from the task manager which goes on growing. This memory gets freed only when in close the DOORS not the DXL window in which I run the Script.>>

> >

The suggestion which I got from forum is that opening a module might open additional modules via a layout DXL column and these module would not be closed by our routine.>>

> >

So I changed the script such that it opens 'N' number of modules in folder one after the other and closes the associated modules( which might be opened in the background i.e. in invisible state because of this module via a layout DXL column) and the module which has been opened.>>

> >

Still I could find the memory from the task manager which goes on growing.>>

Even though I tried on modules which doesn't have any Layout DXL column still the problem persist.>>

> >

This makes me problem when I tried to work with more modules like opening and closing them as DOORS Is not releasing the memory when the memory took by DOORS reaches the maximum available Physical memory , DOORS generates an error like 93% of memory used which stops the script which I run.>>

> >

Can anyone suggest me how to free DOORS memory or any command exists to close the module along with memory release.>>

Report this to a Moderator Report this to a Moderator
 31-Aug-2007 12:52
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

In your open statement open the modules in the background if you don't need to view them....i.e. m = edit (temp, false).  Better yet, if you're not going to be modifying the modules, open them in read only mode.  This will save on memory, however there is no way to actually release the memory.

Personally we have 700+ modules in one of our projects, if I'm having to scan through all of them and perform operations, I'll usually write a batch file to call the DXL script muliple times.  What this does is open DOORS, run the script on a specified directory, then close DOORS (freeing up the memory) and then continuing to the next directory.  I also execute DOORS in batch mode, as this saves some memory as well.



-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 31-Aug-2007 17:09
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Nit-pick: to close all the modules in the database you need at least 2 "for m1 in database" loops, as one module may not close because it has a reference from one you haven't closed yet. The first loop closes the depending module and the 2nd one closes the dependant one. My 7 year old CloseAll.dxl script has 3 such loops but I don't recall if the 3rd one was needed. Understand that the "close(mod)" command will prompt you to save the module if needed.

When you see the increased memory useage, go to the DOORS explorer Tools >Manage Open Modules and you may be surprised how many open invisible modules you have.

- Louie

It would not surprise me if some of your modules have layouts that explicitely open up other modules. DXL should routinely open modules invisibly as this saves time and space; and should routinely open read-only unless you intend to make changes: m = read(temp, false).
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.