×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Out Of Memory
3

Out Of Memory

Out Of Memory

(OP)
I am an IT Tech and my engineers are getting very frustrated.  They are running SW 2005 SP5, and when they check a drawing out if the PDMWorks, make one change and try to check it back in there PC crashes with an out of memory error.  I have upgraded them from 2000 to XP, they have 4gigs of memory with Virtual set at 8000.  Their PC's are higher end PC's and are above and beyond what the SW site states.  They are losing a lot of time and I have not been able to get answers from our VAR.  Any suggestions?  Please help, they are at their wits end.
Any ideas will be appreciated.

RE: Out Of Memory

(OP)
Yes.

RE: Out Of Memory

Does this happen with any size file or drawing, or just large drawings?


Helpful SW websites  FAQ559-520
How to get answers to your SW questions  FAQ559-1091

RE: Out Of Memory

(OP)
The file sizes that they are having problems with are usually over 200mb.

RE: Out Of Memory

2
Are these 32-bit machines or 64-bit?  If they're 32-bit machines, I don't see how you could set the virtual memory to 8000 MB because the maximum virtual memory in XP is 4096 MB.

Having 4 GB of RAM won't help you; you're wasting your money after 2 GB, at least with SolidWorks.  That's because of the way Windows allocates memory.

How many other applications or services are running, either in the foreground or background, when these drawings are loaded?  Try bringing up the Windows Task Manager while a drawing is loaded and click the "Performance" tab.  That will let you see how much memory is in use.  If you have everything set up properly, you should be able to hit just over 2 GB of memory usage before you get a memory error.

RE: Out Of Memory

Also ask them to clean up the Temp folder. Check out the FAQ559-884 by Scott Baugh.

And moreover reintialize the memory by minimizing the SolidWorks before you open up the document. In this way you will get around the memory accumulation problem.

Regards

RE: Out Of Memory

(OP)
When the user had 1.25GB of memory, he attempted to save the drawing and sent me a screen shot of the task manager.  The CPU Usage spiked all the way up, the memory showed Physical Memory total at 1310000, Availible at 31332 and system cache at 316828.  The kernal memory was total 85264, paged 76084 and nonpaged 9180.  This was right after his memory error and SW closed on him.  
This user now has 2.25GB of memory and is having the same problems. He is running 2000 SP2.  
Both of my users (the one with 2000 and XP) have the same problems with the same drawings.  
The way I see it is it is not a PC problem but an application issue.  
Is it possible we have something set up in Solid Works wrong?  A setting possibly?
They have lost so much time with these errors, I think we all are about to lose our minds as well

RE: Out Of Memory

(OP)
My guys here are very good about cleaning out their Temp folders But I think I will provide them with that Bat file anyway.   I also provided them with DiskKeeper to defrag everyday.  

RE: Out Of Memory

If you're working with large files/assemblies, don't even think of using Windows 2000.  It's not up to the task.  You can only use the 3GB option in XP.  CPU spiking is not an issue; only the total memory usage is.  What exactly does the memory error say when it happens?

RE: Out Of Memory

(OP)
Error is a SolidWorks Error:

SolidWorks is unable to obtain required memory.

Please attempt to free some memory and then press retry, or press Cancel to terminate your SolidWorks session.

No matter what they do at this point, is closes out and they lose what ever changes they made to the drawing.

RE: Out Of Memory

I agree with Scott.  You are getting the standard error that occurs when you run out of memory, but you should be well over 2 GB of usage before you get that error, as long as you're running XP with the 3GB option and sufficient virtual memory.

RE: Out Of Memory

(OP)
Unfortunately, I have swapped the memory chips, and that was no help.  I know technically I should not be getting these errors, but we are.  According to what I have read and who I have spoken to, things should be running smoothly.  I guess the only thing we can do is upgrade SW to 2006 SP1 and hope that works.

RE: Out Of Memory

I don't believe any one application can use more than 1.2gb of memory, no matter how much the machine has. 32bit windows application limit. Though Winxp may increase to this to around 1.4gb I think.

So it looks like when Solidworks gets to that limit, it dies. We had the same issue running UG motion analysis. After UG itself used up the 1.2 or 1.3 gb, it croaked.

The way around this is 64 bit windows with 64 bit Solidworks. Or reduce the complexity of drawing and/or assembly to reduce the ammount of memory used. This involves simplifying sub-assemblies and complex parts through the use of configurations. Or large assembly drawings with multiple sheets could be save as separate files for each sheet or group of sheets.

Jason

UG NX2.02.2 on Win2000 SP3
SolidWorks 2005 SP5.0 on WinXP SP2
SolidWorks 2006 SP1.0 on WinXP SP2

RE: Out Of Memory

You’ve said that this is happening on more than one machine and that they even have different operating systems.  With this in mind, you would have to be extremely unlucky for the problem to be faulty RAM chips.

Is the error occurring while saving the file or trying to check it into the vault?  If your users are trying the combined save and check in, have them save the file and then try to check it in.

Eric

RE: Out Of Memory

(OP)
I sat with them and watched the process.  Before they check into the vault it requires them to save it.  At this point they are saving it to there Hard Drive.  If they are lucky, it will save.  If it saves they normally can get it into the vault.  
Eric- with my luck I don't rule anything out

The drawings and assemblies are complex, and to redo these would take an extreme amount of time.

Does the 64-Bit really solve some of these problems?  The machines are very costly and the CIO is very weary of spending the money.  

RE: Out Of Memory

The only thing 64-bit is going to do is allow you to access more memory; there will not be a large speed increase.

I know some of you will disagree with me, but I bet if you check the numbers you will see that if it's faster, it's not by a whole lot.

64-bit SW is even released yet and won't be until the beginning of next year. So you will have to wait that long before 64-bit SW is released. 64-bit Systems and OS will not help you without having the CAD app running 64-bit as well.

You are going to have to have your users dumb down their models, or maybe the problem is in the way they are building them. Maybe their technique is not the way SW would require them to build it. If not then they maybe making a portion of the part with 3 features, but if they knew SW better they could make it in 1 feature. This would cut down on time too load the models. As for assemblies, maybe there are to many mates per part and this is causing slow times. Maybe there are in-contexted relationships this will cause slow downs. Maybe you have complex DT in the parts and assemblies, this will cause it to slow down as well. The incorrect Video card and drivers will cause slow downs.

I think most of your users problems are not with systems, but design intent and just the overall users ability to design using SW. Not saying they cannot design, just with SW you have to think different before the Design is started.

I am not sure if you have went through the FAQ's here or not so see below some FAQ's written:

FAQ559-871
FAQ559-1094

Regards,

Scott Baugh, CSWP
www.scottjbaugh.com
FAQ731-376

RE: Out Of Memory

PMcGowan,

In your users assembly, go to Tools, Statitics and tell us the numbers there. Also do the same in the assembly's drawing.

Sounds like this assembly and drawing is huge. On large assemblies, all CAD programs have this problem and most provide tools to work around the issue by simplifying. It takes time to setup though no matter what CAD system.

Jason

UG NX2.02.2 on Win2000 SP3
SolidWorks 2005 SP5.0 on WinXP SP2
SolidWorks 2006 SP1.0 on WinXP SP2

RE: Out Of Memory

In the SolidWorks main menu click File, then click "Find References" copy the files off to some known temp directory. Close your assembly and open the new one you just copied. Check this one into the PDM.
I had to do this to several large assemblies our designers could not check in at all. After coping using “Find References” it checked in just fine without crashing.

Bradley

RE: Out Of Memory

(OP)
Thank you Bradley, I will have them try that.

RE: Out Of Memory

Regarding modeling:

I have recently come across a bizarre practice in my new company. Many of the models have .005 inch chamfers or radii on all the edges. When I enquired about this I got two answers:

1)  We have a "BREAK ALL SHARP EDGES .005-.015" note on all the drawings. The radii/chamfers are the breaks. This was what I suspected.

2)  Another guy said it helped make it look "nice" when he rendered it as a solid! I pointed out that that was a bit silly, since we don't do photo-rendering here.

Both of these add a bit of extra data, along with modeling corner radii to a general filet radius note (ALL CORNERS SHALL BE R.02 MAX.). When you have a lot of these type parts (100's) that adds a lot of data! We instituted a modeling rule that only machined features are modeled--breaks are not machined so they are not on the model--and any features that are max dimensions are also not modeled (with exceptions if anyone comse up with a really, really good reason).

Toolbox seems to be a particular offender in over-modeling screws and making them more complicated than need be.

Regarding assemblies:

In my previous company the decision was made to insert only one fastener stack per hole pattern to conserve file size on large assemblies. The assemblies look odd at first, but it eliminates hundreds of fasteners in the assy and reduced the size of the files.

RE: Out Of Memory

Quote:

In my previous company the decision was made to insert only one fastener stack per hole pattern to conserve file size on large assemblies. The assemblies look odd at first, but it eliminates hundreds of fasteners in the assy and reduced the size of the files.

Very interesting - but how do you get the correct quantity of fasteners in the dwg BOM ??

RE: Out Of Memory

I have yet to use the BOM feature of SolidWorks. In my industry, all of the BOM's are separate Parts Lists generated by Agile, Flex, or similar programs. And, due to the difficulties and delicate nature of interactive BOM's in the early days, on those occasions where there is a BOM on the drawing it is static, and the item baloons are all "custom."

RE: Out Of Memory

Fasteners may slow down the graphics some and increase the assembly file a little but they don't use much more memory if you already have a set inserted. Adding additional instances just amounts to location data in the assembly.

Also using component patterns that are derived from part feature pattern makes inserting these fasteners very easy and quick.

Jason

UG NX2.02.2 on Win2000 SP3
SolidWorks 2005 SP5.0 on WinXP SP2
SolidWorks 2006 SP1.0 on WinXP SP2

RE: Out Of Memory

Not that this would solve your problem - but it might shed a little light:  Try loading one of the models you're having problems with on a computer outside your company.  See if it behaves any better.

RE: Out Of Memory

Quote:

Also using component patterns that are derived from part feature pattern makes inserting these fasteners very easy and quick.

That's what I tought

RE: Out Of Memory

I'm having the same error ( SW cannot obtain required memory ) on some of my larger assemblies.  Unfortunately PMcGowan didn't reply with assembly stats so I can't really compare his situation to mine.

In my opinion the assemblies I'm talking about aren't really that large.  ~5000 parts, ~500 unique parts, ~60 Mb file size.  Maximum depth 5.

These are top-level machine assemblies consisting of machine sub-section assemblies ( about a dozen or so per machine ).  The sub-sections are all mated to a common skeleton file so they are oriented correctly in space and they are then inserted into the top-level machine assembly and fixed to the origin.  In other words there are no top level mates in the machine assembly.

I am confident that our modeling/mating techniques are stout i.e. no underdefined sketches, minimum features,  assemblies all fully mated, top level mates limited to <200 etc.

We are running Dell PWS650 machines 3GHz Xeon, 3GB, XP Pro V5.1 Sp1, NVIDIA Quadro FX 1000.

I monitor my memory usage pretty diligently and when page file size begins to approach 1.5GB the system stability is not good.  Look out for unhandled errors and crashes back to desktop with no message at all and if I wait long enough without pulling the plug "SW cannot obtain required memory".

Any ideas?  As I understand it the 3GB switch is a no-go for XP Pro sp1.  Were stuck with sp1 due to Smartteam issues.

I'm going to run the WinDiag app to try and determine the condition of my memory.

RE: Out Of Memory

You merit a star for this one. We are using XP sp2, so it does not apply to us, but you finding this information goes way above the call of duty.
Thank you.

Bradley

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources