【问题标题】:Performance of WCF Web Service CallWCF Web 服务调用的性能
【发布时间】:2010-05-31 22:53:41
【问题描述】:

我有一个调用 WCF Web 服务的 Windows 应用程序。在服务器端,我使用 S#arp Architecture 作为基础框架。

当调用服务器时,应用程序的响应速度不如它应有的响应速度,调用服务器需要几秒钟的时间。

我使用 Ants Profiler 对应用程序进行了分析,发现问题出在服务调用上。特别是下面的方法。

Namespace                                      Time with Children

SharpArch.Data.NHibernate
.RepositoryWithTypedId<T, IdT>.Get(IdT id)    1.326
(JIT Overhead)                                 1.261

我无法通过分析应用程序获得更多信息,而且我不明白为什么 JIT 会如此之高。如果我能解决这个问题,响应时间是可以接受的。

任何帮助将不胜感激。

【问题讨论】:

  • 只是一个建议,在 .Get() 中获取 S#arp 源、编译和跟踪/调试。

标签: c# .net performance profiling s#arp-architecture


【解决方案1】:

也许它的休眠加载?

您可以尝试新版本的 s#arp,nhibernate configuration caching

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多