设置AppFabric缓存可用的内存量

时间:2021-09-23 16:59:07

How do I set the amount of memory available to the Windows Server AppFabric Caching service?

如何设置Windows Server AppFabric缓存服务可用的内存量?

We're running the AppFabric Cache on the same server which is hosting the website, and I'd like to be able to control how much RAM the cache will consume.

我们在托管网站的同一台服务器上运行AppFabric Cache,我希望能够控制缓存消耗多少RAM。

1 个解决方案

#1


16  

You can modify the amount of ram available using this commands on the powerShell console:

您可以在powerShell控制台上使用此命令修改可用的ram数量:

Stop-cachecluster
Set-cacheHostConfig {Machine name} {port(22233)} -CacheSize {cache allocation in MB}
Start-cachecluster

More info on MSDN

有关MSDN的更多信息

#1


16  

You can modify the amount of ram available using this commands on the powerShell console:

您可以在powerShell控制台上使用此命令修改可用的ram数量:

Stop-cachecluster
Set-cacheHostConfig {Machine name} {port(22233)} -CacheSize {cache allocation in MB}
Start-cachecluster

More info on MSDN

有关MSDN的更多信息