当AppFabric在内存压力下逐出最近最少使用的对象时,是否可以得到通知? [英] Is it possible to be notified when AppFabric is evicting least recently used objects under memory pressure?

查看:108
本文介绍了当AppFabric在内存压力下逐出最近最少使用的对象时,是否可以得到通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将AppFabric for Windows Server 1.1与Entity Framework和实体框架缓存适配器一起使用.

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

最近,对于我们的一位客户,我们在其中一个缓存节点上遇到了内存压力.AppFabric Cache开始逐出最近最少使用的对象.

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

问题是实体框架缓存适配器将对象存储在从属区域中.因此,如果某个区域被AppFabric清除或删除,则缓存适配器也必须删除从属区域中的对象.

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.

谢谢.

推荐答案

AppFabric 记录性能计数器中的驱逐信息和事件日志中的AppFabric操作日志.运行状况监视页面显示了如何启用操作日志.

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.

这篇关于当AppFabric在内存压力下逐出最近最少使用的对象时,是否可以得到通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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