简体   繁体   English

MVC4:应用程序池不断停止

[英]MVC4: Application pool keeps stopping

What are the reason for the application pool to be stopped?应用程序池停止的原因是什么? I am asking about stopping the application, not recycling.我问的是停止应用程序,而不是回收。

Does reaching private byte memory limit is one of them?达到私有字节内存限制是其中之一吗? When I debugged my website, it seems that the application pool is keep getting recycled at every minute, then suddenly the application pool is stopped and giving me当我调试我的网站时,似乎应用程序池每分钟都在不断回收,然后突然应用程序池停止并给我

Error 503 unavailable.错误 503 不可用。

I found out that actually my hosting provider degraded my private byte memory limit from 500MB into 100MB and without telling me.我发现实际上我的托管服务提供商将我的私人字节内存限制从 500MB 降低到 100MB,而且没有告诉我。 My application has minimum requirements of 150MB-200MB private bytes limit.我的应用程序的最低要求是 150MB-200MB 私有字节限制。

I am here asking this to make sure that the problem was because the memory limit, not the other thing.我在这里问这个问题是为了确保问题是因为内存限制,而不是其他原因。

It could be that the user identity is outdated, especially if you've tried starting a stopped app pool and the next request again fails.可能是用户身份已过时,尤其是当您尝试启动已停止的应用程序池并且下一个请求再次失败时。

In IIS, go to the Application Pools under the Server, then find the correct Application Pool for your web site, and click on it.在 IIS 中,转到服务器下的应用程序池,然后为您的网站找到正确的应用程序池,然后单击它。 On the Advanced Settings menu to the right, select Identity and change it and enter new user and password.在右侧的高级设置菜单上,选择身份并更改它并输入新的用户名和密码。 Click on your Application Pool again, and select Recycle to restart it.再次单击您的应用程序池,然后选择回收以重新启动它。

You can also try looking at the error message in Event Viewer, under Windows Logs, Application, Details tab.您还可以尝试在事件查看器中的 Windows 日志、应用程序、详细信息选项卡下查看错误消息。

Taken from HTTP Error 503, the service is unavailable .取自HTTP 错误 503,该服务不可用

I was having this same issue and I couldn't find anything in the event log location that MD GHOUSE mentioned.我遇到了同样的问题,我在 MD GHOUSE 提到的事件日志位置找不到任何内容。 I ended up finding a warning in Event Viewer --> Windows Logs --> System that stated that the identity in my application pool did not have batch logon rights.我最终在事件查看器 --> Windows 日志 --> 系统中发现了一条警告,指出我的应用程序池中的身份没有批量登录权限。 I am adding that user to the AD group to resolve.我正在将该用户添加到 AD 组来解决。 I hope this helps someone.我希望这可以帮助某人。

try going into the IIS and selecting the application pool that is stopping.尝试进入 IIS 并选择正在停止的应用程序池。 Click on advanced settings and go down to identity.单击高级设置并转到身份。 Change the item from Application pool to Local Service.将项目从应用程序池更改为本地服务。 Restart the application pool or IIS and problem should be solved.重新启动应用程序池或IIS,问题应该可以解决。

In my case, its due to domain password reset.就我而言,这是由于域密码重置所致。 When I created the application pool, I've used my old password.创建应用程序池时,我使用了旧密码。 But after I reset my password, then application pool was getting stopped until I go and use my new password in the application pool advanced settings.但是在我重置密码后,应用程序池将停止,直到我在应用程序池高级设置中使用我的新密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM