Is it possible to be notified when AppFabric is evicting least recently used objects under memory pressure?

末鹿安然 提交于 2019-12-25 01:44:56

问题


I'm using AppFabric for Windows Server 1.1 with Entity Framework and the Entity Framework Cache Adapter.

Recently, for one of our customer, we encountered memory pressure on one of the cache node. AppFabric Cache started evicting least recently used objects.

The problem is that the Entity Framework Cache Adapter stores objects in dependent regions. So if a region is cleared or removed by AppFabric, the cache adapter must remove objects in the dependent regions as well.

I've successfully tested cache notifications, but I'm wondering if I could be notified only for evictions done at the server level and not for what is programmatically removed from a cache client. If not, it will be very difficult to know how to properly react when an item is removed.

Thanks in advance.


回答1:


AppFabric records eviction information in Performance Counters and the AppFabric Operational log in the Event Log. The Health Monitoring page shows how to enable the Operational log.

You should be able to use one of these in order to receive notifications of evictions, you'll probably need a monitoring service to do the actual notification.



来源:https://stackoverflow.com/questions/20100186/is-it-possible-to-be-notified-when-appfabric-is-evicting-least-recently-used-obj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!