简体   繁体   English

每个网站的应用程序池或一个应用程序池中的几个网站?

[英]Application pool for each website or few websites in 1 application pool?

I have a virtual server (8gb ram, windows server 2008 64bit, 2 core of x5650 2.67ghz) in this server there are more than 35 website of my clients, each website (application pool) take approximately between 80mb to 150mb each. 我有一个虚拟服务器(8GB ram,Windows Server 2008 64bit,x5650的2核心2.67ghz),该服务器中有超过35个我的客户网站,每个网站(应用程序池)大约需要80mb至150mb。

and I'm going to host more website on this server, but there is a ram limitation.. I tested it and put 6 websites in the same application pool (websites with the same CMS system) and the result is reduce of * 2 less ram 并且我将在此服务器上托管更多网站,但存在内存限制。.我对其进行了测试,并将6个网站放入同一应用程序池(具有相同CMS系统的网站)中,结果减少了* 2内存

I think about the option to make 5-20 website in the same application pool in order to host more websites, but what is the risk? 我考虑在同一应用程序池中创建5-20个网站以托管更多网站的选择,但是这样做有什么风险呢? Is dangerous too much?? 太危险了吗?

The main risk is when you have a client that change their pages too often and will in purpose try to create problems to your server, or because is a "bad programmer" and do not release resources and eat all the pools memory. 主要风险是当您的客户过于频繁地更改其页面并且有意尝试对服务器造成问题时,或者由于是“不良程序员”而没有释放资源并占用所有池内存的风险。

If for example you have 20 sites under one pool, and one of them is try to crash the pool, or eat all the memory, or in general act with bad intentions, then is going to create problems to all the sites under the same pool. 例如,如果您在一个池下有20个站点,而其中之一是试图使该池崩溃,或者吃光了所有内存,或者通常出于恶意而采取行动,那么这将给同一池下的所有站点造成问题。

So you need to monitor that, the pool health, not many restarts, not too much memory, etc, and all of your clients to act normally. 因此,您需要监视池的运行状况,重新启动次数不多,内存不太多等,并使所有客户端正常运行。

Also there are available hack tools for asp.net but I do not like to mention here and give ideas. 也有适用于asp.net的黑客工具,但我不想在这里提及并给出想法。 Now if a site of you infect by them, ether because a client of you on purpose runs it, ether because a hacker upload them - then all the sites under the same pool can be edited by the user of some other site. 现在,如果您的某个站点被它们感染,则ether是因为您的客户端是故意运行的,ether是因为黑客上传了它们-然后,同一站点下的所有站点都可以由其他站点的用户编辑。 Eg, the site A, can edit all the files that exist on the same pool, not easy but can do that. 例如,站点A可以编辑存在于同一池中的所有文件,这并不容易,但是可以做到。

So to close, you need to make backups, and monitor your user activities for bad behavior. 因此,关闭时,您需要进行备份,并监视用户活动中的不良行为。

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

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