IIS Express-增加内存限制 [英] IIS Express - increase memory limit

查看:270
本文介绍了IIS Express-增加内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.NET MVC5中有一个VS项目,该项目加载使用大量内存的外部dll文件.平均而言,它使用500-1000MB的内存.

I have a VS project in .NET MVC5 which loads an external dll file that uses a lot of memory. In average it uses from 500-1000MB memory.

现在,当我尝试使用默认的IIS Express服务器调试项目时,我几乎总是会收到OutOfMemory异常.

Now when I try to debug my project with default IIS Express server I almost always get OutOfMemory exception.

我知道普通IIS有一个/3gb标志,但是IIS Express呢?除了在开发PC上安装完整的IIS之外,是否有任何设置可以启用此功能,或者是否有其他解决方案来解决此问题?

I know that there is a /3gb flag for normal IIS but what about IIS Express. Are there any settings so I can enable this or is there any other solution to this problem except of installing a full IIS on development PC?

PS:Developer PC具有Windows 8.1 64x和Visual Studio 2013.

PS: Developer PC has Windows 8.1 64x and Visual Studio 2013.

推荐答案

转到Visual Studio-工具-选项菜单

Go to Visual Studio - Tools - Options Menu

选择:-项目和解决方案,然后是Web项目

Choose: - Projects and Solutions, then Web Projects

选中复选框:为网站和项目使用IIS Express的64位版本"

tick the checkbox: "User the 64 bit version of IIS Express for web sites and projects"

无需注册表编辑.

这篇关于IIS Express-增加内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆