代码之家  ›  专栏  ›  技术社区  ›  Matt Briggs

商业服务器:自定义计数器文件视图内存不足

  •  0
  • Matt Briggs  · 技术社区  · 16 年前

    CommerceServer似乎为每个目录/站点添加了大量的计数器,我们目前正在推送其中的45个。我尝试在machine.config中增加大小,这有帮助,但还不够。

    有人知道如何以编程方式清除Commerce服务器计数器吗?除非这样,让他们瘫痪?

    1 回复  |  直到 13 年前
        1
  •  1
  •   Matt Briggs    16 年前

    所以,经过大量的研究,我最终把这个.reg文件放在一起,它将禁用所有计数器。复制/粘贴到.reg文件中,运行它,然后重新启动服务器,它将停止注册Commerce Server计数器。

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: Catalog\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: Catalog Pipeline\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: Marketing\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: Orders\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: Pipelines\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Commerce: PromoCode Pipeline\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\csauthperf\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cscustomperf\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\csdwperf\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\csmarketingperf\Performance]
    "Disable Performance Counters"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\csupmperf\Performance]
    "Disable Performance Counters"=dword:00000001