本文介绍了从Ncache服务器获取操作比以前花费时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的办公室中,我们有一台安装了Ncache的服务器,用于存储和检索数据,我们的应用程序也托管在该服务器中.存在一个应用程序超时的问题.从深度上讲,我发现从Ncache获取缓存方法需要8到9秒,而以前是0.5秒.该应用程序最近没有更改,并且以前可以正常运行.突然,这个问题发生了.有人告诉我,这是一个问题,突然从ncache manager中删除了所有群集的缓存,我们通过设置在线提供的教程中的基本值来解决了这个问题.但是,这个问题似乎永远无法解决.任何人都可以通过一些思路解决我们可以解决的超时问题吗?

解决方案

这似乎是一些与应用程序/环境相关的问题,正在运行的应用程序现在运行缓慢,而以前运行良好.另外,如果您的控制台应用程序在不到一秒钟的时间内获得结果,那么它再次表明该问题并非来自NCache服务器端,而是与应用程序隔离.

我建议您先检查一下应用程序中已更改的内容.您还可以配置您的应用程序,而现在这些应用程序正在花费更多的时间.还可以检查NCache客户端Windows性能计数器,以排除是否由于NCache或某些与应用程序相关的问题而变慢.

此外,通常不建议缓存大小巨大的对象.您应该始终将较大的对象分解为较小的对象,然后对其进行缓存.这将减少应用程序的网络和存储开销.如果必须使用更大的对象,请考虑使用压缩.

NCache默认设置已经过调整,可实现最佳性能,因此不应降低速度.您应检查客户端与NCache服务器之间的防火墙,以排除任何环境问题.

In my office, we have a server that has Ncache installed for storing and retrieving data and our applications are also hosted there.There was an issue where application was getting timed out. In depth, i found that getting cache method from Ncache is taking 8-9 seconds, which was previously taking 0.5 seconds. The application isn't changed recently and it was working fine previously. All of a sudden this issue has occurred. Some one told me that there was an issue where all of a sudden all clustered cache were deleted from ncache manager and we resolved it by setting basic values from tutorial available online. But this issue seems to be never getting solved. Can anyone through some light on it that we can do to overcome this time out issue?

解决方案

This seems like some application/environment related issue where a working application is now showing slow fetch time while it was working fine previously. Also, if your console app is getting results in less than a second then it again shows that issue is not from NCache server end but isolated to the application.

I will suggest to review what has been changed in the application to start off. You can also profile your application on which calls are taking more time now. NCache client side windows performance counters can also be reviewed to rule out if it is slow because of NCache or due to some application related issue.

Moreover, caching an object which is huge in size is generally not recommended. You should always break your bigger objects to smaller objects and then cache them. This will reduce network and storage overhead for your application. If you have to use bigger object then consider using compression.

NCache default settings are already tuned for optimum performance and should not slow things down. You should check firewall between client and NCache server to rule out any environmental issues.

这篇关于从Ncache服务器获取操作比以前花费时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-14 09:25