使用ETW进行app fabric本地缓存跟踪 [英] app fabric local cache tracing with ETW

查看:67
本文介绍了使用ETW进行app fabric本地缓存跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到的问题是,在生产一段时间后,应用程序结构缓存的客户端工作速度非常慢。因为我们使用本地缓存,我们认为那里有问题。在我检查
app fabric客户端的跟踪条目后,我看到一个包含"Count = 450000"的条目。数量非常高,每天都呈指数增长。本地缓存的设置:objectCount =" 500000" ttl =" 300"。

We have a problem that after some time at production, the client of the app fabric caching work very slow. since we work with local cache we thought that something wrong there. After i examined the entries at the trace of the app fabric client, i saw an entry that contains "Count = 450000" the number is very high and increases every day exponential. The settings of the local cache: objectCount="500000" ttl="300".

1)我怎么知道本地缓存中存在多少项。 "Count = x"是否为"Count = x"。在trace条目中意味着本地缓存有x个项目?

1) How can i know how many items exist at the local cache. Does the "Count =x" at the trace entry means that the local cache has x items?

2)本地缓存中的项目数增加到500000的原因是什么,而itemCount at服务器大约是4000?

2) What can be the reason that the number of items at the local cache increase and gets to 500000, while the itemCount at the server is about 4000?

推荐答案

本地缓存的ObjecCount属性是指本地缓存在运行之前会尝试保留的对象数量驱逐。因此,本地缓存可能包含450000个对象。

ObjecCount property of local cache means number of objects that local cache will try to keep with it before running eviction. So it is possible that local cache has 450000 objects in it.

 如果此数字对于您的方案而言很大,则将对象的数量设置为较低的值。此号码应考虑到您的应用必须使用的免费内存以及每个对象的平均大小来设置。

 If this number is large for your scenario, then set the number of objects to a lower value. This number should be set taking into account free memory your app has to use, and average size of each object.


这篇关于使用ETW进行app fabric本地缓存跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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