AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-492424

Sphinx's questions

Martin Hope
Sphinx
Asked: 2020-10-22 09:55:06 +0800 CST

服务器冻结的原因

  • -1

我们建了一台windows 2012R2服务器(它有足够的可用内存/磁盘空间,CPU性能很高),但它每12小时就会冻结大约半小时。

症状:

  1. 无法访问服务器中托管的网站

  2. 无法远程进入服务器

调查结果:

  1. 服务器的 EventView 中有许多 EventID= 508(对于svchost.eve)、833(对于sqlserver)。

EventID= 508之一:svchost (2128) 成功写入文件“C:\Windows\system32\LogFiles\Sum\Svc.log”的偏移量 4775936 (0x000000000048e000) 4096 (0x00001000) 字节,但占用了操作系统提供异常长的时间(36 秒)。此问题可能是由于硬件故障。请联系您的硬件供应商以获得诊断问题的进一步帮助。

  1. 下面是磁盘性能图表:

    你会看到% IDLE Time小于 40%,Queue Length有时会达到 100。即使数据收集器似乎在上午 8:37 到上午 8:50 之间停止工作。

似乎瓶颈是磁盘 I/O,它导致服务器被冻结。但我不知道如何进一步调查。

我的问题:

  1. % IDEL Time < 40%很糟糕吗?队列长度达到100怎么办?

  2. 什么可能导致数据收集器停止工作?

  3. 如果根本原因是硬件故障,那么服务器在一天的大部分时间里如何正常工作?

在此处输入图像描述

windows performance hard-drive performance-monitoring
  • 1 个回答
  • 2086 Views
Martin Hope
Sphinx
Asked: 2020-07-29 09:01:49 +0800 CST

Prometheus:从 windows_exporter 获取一个特定进程的 CPU 使用率百分比

  • 1

我正在尝试开发一个查询来显示一个windows server中一个特定进程的 CPU Usage(%)。在深入研究 windows exporter 的指标后,我发现Metric: process.windows_process_cpu_time_total应该是那个。

我尝试了几个查询,但都不正确。

我试过的查询之一:

100 * sum(windows_process_cpu_time_total{job="xxxx", process="Idle"})/(sum(windows_process_cpu_time_total{job="xxxx"}))

prometheus grafana
  • 1 个回答
  • 6611 Views
Martin Hope
Sphinx
Asked: 2018-10-18 09:08:58 +0800 CST

npm install 在一个代理后面但得到 Http Error=407(Forefront TMG 需要授权)

  • 1

操作系统是 MacOS,已经在Network Preferences中设置了 http(s) 代理,但是在终端运行(npm 是 nodejs 的一个包安装程序)时总是无法安装任何包npm install,它弹出错误407 Proxy Authentication Required。

所以我安装了cntlm并应用了正确的配置。

下面是测试,它似乎通过了(返回 HTTP 代码 200):

cntlm -c /usr/local/etc/cntlm.conf -I -M http://registry.npmjs.org/vue
Password: 
Config profile  1/4... OK (HTTP code: 200)
----------------------------[ Profile  0 ]------
Auth            NTLMv2
PassNTLMv2      28B089518C6573274C6B9D83D0XXXXXX

当我运行npm i vue-cli -g时,cntlm确实收到了如下请求:

cntlm -c /usr/local/etc/cntlm.conf -f
Oct 15 15:12:29  cntlm[17646] <Info>: Cntlm ready, staying in the foreground
Oct 15 15:12:38  cntlm[17646] <Info>: Using proxy company-proxy:80
Oct 15 15:12:38  cntlm[17646] <Debug>: 127.0.0.1 GET http://registry.npmjs.org/nexe

但是nodejs抛出了以下异常:

npm i vue-cli -g
npm ERR! code E407
npm ERR! 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ): vue-cli@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/****/.npm/_logs/2018-10-15T23_13_47_019Z-debug.log

这让我很困惑:因为测试通过了,但是为什么cntlm仍然无法连接到 npmjs.org?

proxy
  • 1 个回答
  • 4232 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve