Understanding Low System Resource and Memory Situations in Solid Works SWWorld2011
Understanding Low System Resource and Memory Situations in Solid Works SWWorld2011
Table of Contents
1. 2. System Resource Notification Unable to Obtain Required Memory
3.
4. 5.
Introduced in SolidWorks 2010 Displays in Lower right hand corner of SolidWorks Can appear on x64 and x32 Versions of SolidWorks Common conditions that invoke this warning in SolidWorks: 1) Running Low on Physical RAM See Knowledge Base S-048684 See Knowledge Base S-048683 2)Running out of GDI Objects See Knowledge base S-044594 See Knowledge base S-030814
Look for Available Physical Memory: < 100 MB is not good Quickest method? Performance Tab in Task Manager This is ok for amount of measuring Physical RAM remaining Can be found in other areas Resource Monitor (Windows 7) Reliability and Performance Monitor (Vista) Performance Monitor (XP/Vista/Win 7) Process Explorer http://live.sysinternals.com/procexp.exe System Information
Windows Resource representing graphical elements in the User Interface 10,000 per process limit in Windows XP, Vista, 7
32 and 64 bit
Use Task Manager or Process Explorer to monitor GDI Objects for the sldworks.exe process
Task Manager is also ok to use for GDI tracking
Examples
64 bit-Get more RAM Close out of other memory intensive programs Close documents you no longer need Consider reducing amount of data used in SW
Use Lightweight assemblies Speedpak
Look at how many individual documents are open when issue occurs?
Do you open and close many parts from a parent assembly?
Open Assembly -> GDI objects allocated Open part from Assembly -> GDI objects allocated Close Part -> GDI objects not released -> SPR 581924
http://msdn.microsoft.com/en-us/library/ms724291(v=VS.85).aspx
Note: If you feel that this warning is unwarranted for the amount of documents and applications you are running or are not comfortable making system registry changes, please document the issue with SolidWorks RX and submit the issue to your Local SolidWorks Support Professional.
Occurs when SolidWorks is attempting to allocate a block of memory and there is not enough room within the Virtual Address Space for SolidWorks to satisfy the request. http://support.microsoft.com/kb/555223 http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx S-020994 S-044155 S-038387
Most common with Large Assembly/Complex Part work using 32 bit SolidWorks during Saves, Opens, and intense graphical operations
Can also occur with 64 or 32 bit SolidWorks if there is insufficient Physical RAM + Page file (exceeding commit charge). Very Rare with 64 bit Solution: Add more RAM or increase Page file size
64 bit SolidWorks
SolidWorks
2GB
System
4GB
SolidWorks
3GB
System
4GB
https://forum.solidworks.com/community/administration/ha rdware_and_os/blog/2010/11/24/the-case-against-usingthe-3gb-switch-on-32-bit-windows
Example
Example: Open a lot of data and use tools to visually see and understand virtual address space limit.
See \examples\unable to obtain required memory\unable to obtain required memory.wmv
Not recommended long term Use as last resort only Use /Userva to give memory back to Kernel
There are two conditions that could possibly generate this message (S048746) 1. Desktop Heap exhaustion Most likely with XP 32 bit and Vista 32 bit SP0
S-031640
2.
Failure to generate a resource in SW allocated from Desktop Heap possible on both 64 bit and 32 bit OS all versions.
S-048746: USER Object allocation limit Most unlikely but possible on 32 bit and more likely on 64 bit for any OS. (http://msdn.microsoft.com/enus/library/ms725486(VS.85).aspx)
Desktop Heap
This should indicate that your system is running out of desktop heap, which is a reserved portion of memory used to create windows, menus, icons, etc. This can happen if you have many other applications open or a lot of SolidWorks documents open. You can simulate this by opening up a a lot of IE windows or tabs and try to use any other Windows Application and if you notice Windows and menus not appearing, you have run out of desktop heap.
S-031640
http://blogs.msdn.com/b/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx
Realistically should only be a problem with Windows XP 32 bit Microsoft recognized this was becoming a problem and increased the heap size substantially with Vista SP1 and Windows 7 Can start approx 9 sessions of SW at the same time in Win 7 32 bit
20 MB
12 MB
20 MB
12 MB 20 MB
http://blogs.technet.com/markrussinovich/archive/2010/02/24/3315174.aspx
Desktop Heap
Desktop Heap would most likely be a concern in this Windows Session
Example
32 bit Example Use Testlimit tool to deplete desktop heap and see the behavior in Windows and SolidWorks.
See \examples\desktop resources\desktop heap\desktop_heap_dheapmon.wmv
http://technet.microsoft.com/en-us/sysinternals/bb963901.aspx
32 Bit
Rare: Vista sp1 and beyond bottleneck will be user object limit
Rare: All OSs bottleneck will be user object limit
64 bit
Microsoft does have workaround to increase user object limit per process
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Windows\USERProcessHandleQuota
Note: If you feel that this warning is unwarranted for the amount of documents and applications you are running or are not comfortable making registry changes, please document the issue with SolidWorks RX and submit the issue to your Local SolidWorks Support Professional.
S-019494 MS access db components need a large block of contiguous memory to initialize the hole wizard db. Use Vmmap from sysinternals.com to verify
Live.sysinternals.com/vmmap.exe
Solution(s):
Recap
As of today, 3 limiting factors
Physical RAM
Questions
References
http://msdn.microsoft.com/en-us/library/ms724515(v=VS.85).aspx http://blogs.technet.com/b/markrussinovich/archive/2010/03/31/3322423.aspx http://support.microsoft.com/kb/555223 http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms725486(VS.85).aspx http://blogs.msdn.com/b/ntdebugging/archive/2007/01/04/desktop-heap-overview.aspx