Jump to content
Sign in to follow this  
Jeffersondhv

Clear Memory During Script Run

Recommended Posts

Hello all,

 

I'm running a script in a very large assembly, where this script loops through every component retrieving a number of information for each of them.

The information I need is not that heavy, but it seems like HM saves in its memory much more data than what I'm requesting for each component.

Then it ends up crashing due to the lack of memory.

 

Is there any way to clear HM memory while a script is running?

 

Thank you

Share this post


Link to post
Share on other sites

Unfortunately I cannot post the script here.

But basically it loops over every component to extract some mesh quality attributes.

Functions like the following are used:

 

*elementtestinterangle

*elementtestlength

hm_getthickness

hm_getmass

 

I say that it seems like HM is saving in memory more info than requested because the RAM runs out really quickly, but considering the output I'm requesting/getting, it's only creating a file with few KBs. And as the same variables are using during the loop, they should be getting overwritten, which would prevent running out of RAM. So my guess is that at each loop, each operation, HM is saving in RAM all the info related to that component, even info not requested, and as it loops through the components, the memory just keeps building up.

 

I hope it helps clarify the situation.

Thank you

Share this post


Link to post
Share on other sites

Is there any tool that would help to identify the functions that are taking the memory or just the time to execute?

Something like we have for Matlab, if possible.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...