PDA

View Full Version : مشکل حافظه در ویژوال استودیو



nasr
دوشنبه 26 تیر 1391, 11:34 صبح
سلام
من هر چند دقیقه که با ویژوال استودیو (2010) کار می کنم یه پیامی میاد و ویژوال استودیو را بدون حتی اجازه دادن برای ذخیره کردن می بنده.
نمی دونید این مشکل از چیه؟

البته 4 گیگ رم دارم

ممنون


---------------------------
Low Virtual Memory
---------------------------
Microsoft Visual Studio has encountered a problem and needs to close. This may have been caused by low virtual memory levels that were detected prior to closing. Would you like help troubleshooting this problem?
---------------------------
Yes No
---------------------------

barnamenevisforme
دوشنبه 26 تیر 1391, 12:00 عصر
سلام
به احتمال زیاد شما visual studio رو روی درایوی نصب کردید که فضای خالی کمی داره،virtual memory در windows برای هر درایو یه مقدار مشخص داره،اگه برنامه ای در حال کار با اون به مقدار بیشتری نیاز داشته باشه windows به صورت خودکار اونو الضافه میکنه.منتها در شرایطی که میزان جافظه خالی روی درایو کم باشه موفق به این کار نمیشه.
چند تا کار میتونید انجام بدید:
1-مقداری از حجم اطلاعات روی درایوی که این برنامه روی اون نصبه رو به درایو های دیگه منتقل کنیدو یا اونها رو پاک کنید.
یا اینکه
2-visual studio رو روی درایو های دیگه نصب کنید.
در ضمن چون محیط کار windows اکثرا روی درایو c هست،باید تا جایی که امکان داره سعی کنید برنامه رو روی این درایو در صورت کمبود حافظه نصب نکنید و همچنین اگه حتی برنامه روی c نصب نباشه باید مقداری از درایو c خالی باشه(حداقل 700mb)

alonemm
دوشنبه 26 تیر 1391, 12:04 عصر
باسلام:

این خطا معمولا از سر ریز شدن حافظه رم و یا از سریز شدن فضای فیزیکی درایو ویندوز میباشد.

nasr
دوشنبه 26 تیر 1391, 12:17 عصر
سلام

بنده 4 گیگ رم و 70 گیگ فضای خالی درایو C که ویندوز و ویژوال استودیو در اون درایو نصبه دارم

ولی با این حال باز هم این خطا میاد

مشکل اینجاست که ویژوال استودیو خودش رم را خالی نمی کنه
یعنی من وقتی از Task Manager حافظه مصرفی ویژوال استودیو را می بینم Memory همینطور می ره بالا و حدودا به 700 که میرسه این پیا م میاد

barnamenevisforme
دوشنبه 26 تیر 1391, 12:34 عصر
To change the size of the virtual memory paging file


Open http://barnamenevis.org/c:%5Cwindows%5Chelp%5Cntshared.chm::/shortcutCold.gifComputer Management (Local) (http://barnamenevis.org/C:%5CWINDOWS%5CHelp%5Csysprop.chm::/EXEC=,compmgmt.msc,/s%20CHM=mmc.chm%20FILE=alt_url_snapin.htm).
In the console tree, right-click Computer Management (Local), and then select Properties.
On the Advanced tab, click Performance Options, and under Virtual memory, click Change.
In the Drive list, click the drive that contains the paging file (http://barnamenevis.org/HELP=glossary.hlp%20TOPIC=gls_paging_file) you want to change.
Under Paging file size for selected drive, type a new paging file size in megabytes in the Initial Size (MB) or Maximum Size (MB) box, and then click Set. If you decrease the size of either the minimum or maximum page file settings, you must restart your computer to see the effects of those changes. Increases generally do not require a restart.

http://barnamenevis.org/c:%5Cwindows%5Chelp%5Cntshared.chm::/note.gif Notes


To open Computer Management, click Start, and then click Control Panel. Click Performance and Maintenance, click Administrative Tools, and then double-click Computer Management.
You must be recognized as an administrator (http://barnamenevis.org/HELP=glossary.hlp%20TOPIC=administrator) or a member of the Administrators group on your computer and on the computer you are managing to perform this task.
You can view or change system properties on a remote computer (http://barnamenevis.org/HELP=glossary.hlp%20TOPIC=gls_remote_computer) or a local computer (http://barnamenevis.org/HELP=glossary.hlp%20TOPIC=gls_local_computer). To access a remote computer, right-click Computer Management (Local), click Connect to another computer, and then select the computer you want to connect to in the list.
For best performance, set the initial size to not less than the recommended size under Total paging file size for all drives. The recommended size is equivalent to 1.5 times the amount of RAM (http://barnamenevis.org/HELP=glossary.hlp%20TOPIC=gls_RAM) on your system.
Usually, you should leave the paging file at its recommended size, although you might increase its size if you routinely use programs that require a lot of memory.
To delete a paging file, set both initial size and maximum size to zero.

سلام
دوست عزیز من فکر میکنم ایراد از windows شما باشه.برای اطمینان از این موضوع میتونید از نرم افزار های دیگه ای که به صورت گسترده از page file استفاده میکنن مثل photoshop و یا 3dsmax استفاده کنید.با بالا بردن حجم کاری روی اونها ببینید ایا همچین اتفاقی برای اونها هم میوفته.یا اصلا توی پیغام خطا اخرش نوشته که اگه میخواید در مورد رفع ایراد راهنمایی بشید yes رو بزنید.
yes رو انتخاب کنید و پیغام رو اینجا بذارید.
عبارت بالا در مورد نحوه اضافه کردن VIRTUAL MEMORY در windows xp هست.
واسه دیدن اصل این توضیحات در help and support موجود در windows عبارت virtual memory رو جستجو کنید.