CentOS7.2(RHEL 7.2)的CPU占用高(%system 占用高)

开机后,发现节点1的CPU使用率很高:
[root@lunar1 ~]# sar -u 1 10
Linux 3.10.0-327.el7.x86_64 (lunar1.oracle.com)         03/22/2016      _x86_64_        (2 CPU)
 
06:16:57 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
06:16:58 PM     all      0.55      0.00     78.14      0.00      0.00     21.31
06:16:59 PM     all      0.00      0.00     73.91      0.00      0.00     26.09
06:17:00 PM     all      0.52      0.00     81.68      0.00      0.00     17.80
06:17:01 PM     all      0.00      0.00     82.81      0.00      0.00     17.19
06:17:02 PM     all      0.00      0.00     84.13      0.00      0.00     15.87
06:17:03 PM     all      0.55      0.00     70.72      0.00      0.00     28.73
^C
 
06:17:03 PM     all      0.00      0.00     57.14      0.00      0.00     42.86
Average:        all      0.26      0.00     77.88      0.00      0.00     21.86
[root@lunar1 ~]#

节点2的也比较高:
[root@lunar2 ~]# sar -u 1 10
Linux 3.10.0-327.el7.x86_64 (lunar2.oracle.com)         03/22/2016      _x86_64_        (2 CPU)
 
06:17:20 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
06:17:21 PM     all      0.50      0.00      0.50      0.00      0.00     99.00
06:17:22 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:17:23 PM     all     55.44      0.00      6.74      0.00      0.00     37.82
06:17:24 PM     all     59.79      0.00     11.34      0.00      0.00     28.87
06:17:25 PM     all     38.38      0.00     28.11      0.54      0.00     32.97
06:17:26 PM     all      8.67      0.00      8.67      0.00      0.00     82.65
06:17:27 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:17:28 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:17:29 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:17:30 PM     all      0.50      0.00      1.00      0.00      0.00     98.51
Average:        all     15.90      0.00      5.43      0.05      0.00     78.62
[root@lunar2 ~]#

在节点1检查哪些进程使用CPU资源较多:
Tasks: 287 total,   4 running, 283 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.4 us, 80.8 sy,  0.0 ni, 18.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  3145636 total,  1630448 free,  1073504 used,   441684 buff/cache
KiB Swap:  4190204 total,  4190204 free,        0 used.  2000056 avail Mem
 
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                    
 3205 oracle    20   0  214120   1828   1328 R  79.1  0.1   3:40.27 /usr/bin/VBoxClient --clipboard                                                                                            
 3208 root      20   0  222392   1844   1312 R  78.7  0.1   3:40.10 /usr/bin/VBoxClient --clipboard                                                                                            
 3279 oracle    20   0  147044   1292    884 S   0.3  0.0   0:00.26 /usr/bin/VBoxClient --draganddrop                                                                                          
 3850 grid      20   0  322112   6092   4604 S   0.3  0.2   0:00.04 /usr/libexec/goa-identity-service                                                                                         
 7179 root      20   0  146308   2336   1520 R   0.3  0.1   0:00.02 top -c                                                                                                                     
    1 root      20   0  189244   4316   2380 S   0.0  0.1   0:01.54 /usr/lib/systemd/systemd --switched-root --system --deserialize 22                                                         
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [kthreadd]                                                                                                                 
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.15 [ksoftirqd/0]                                                                                                              
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 [kworker/0:0H]                                                                                                             
    7 root      rt   0       0      0      0 S   0.0  0.0   0:00.38 [migration/0]                                                                                                              
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [rcu_bh]                                 

检查果然vnc都自动开启:
[root@lunar1 ~]# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:24 CST; 6min ago
  Process: 1420 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1832 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
           ‣ 1832 /usr/bin/Xvnc :1 -desktop lunar1.oracle.com:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/...
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar1 ~]#
[root@lunar1 ~]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:24 CST; 6min ago
  Process: 1425 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :2 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1833 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:2.service
           ‣ 1833 /usr/bin/Xvnc :2 -desktop lunar1.oracle.com:2 (grid) -auth /home/grid/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/grid/.vnc/passwd -rfbport 5902 -fp catal...
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar1 ~]#
[root@lunar1 ~]# systemctl status vncserver@:3.service
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:3.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:24 CST; 6min ago
  Process: 1423 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :3 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1828 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service
           ‣ 1828 /usr/bin/Xvnc :3 -desktop lunar1.oracle.com:3 (oracle) -auth /home/oracle/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/oracle/.vnc/passwd -rfbport 5903 -fp...
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar1 ~]#

停止vnc并设置开机不启动:
[root@lunar1 ~]# systemctl stop  vncserver@:1.service
[root@lunar1 ~]# systemctl stop  vncserver@:2.service
[root@lunar1 ~]# systemctl stop  vncserver@:3.service
[root@lunar1 ~]# systemctl disable vncserver@:1.service
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:1.service.
[root@lunar1 ~]# systemctl disable vncserver@:2.service
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:2.service.
[root@lunar1 ~]# systemctl disable vncserver@:3.service
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:3.service.
[root@lunar1 ~]# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:20:48 lunar1.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:20:49 lunar1.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar1 ~]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:2.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:20:53 lunar1.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:20:53 lunar1.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar1 ~]# systemctl status vncserver@:3.service
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:3.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:24 lunar1.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:20:57 lunar1.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:20:57 lunar1.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar1 ~]#

优化效果非常明显,可以看到CPU基本空闲了,符合现在的情况(Oracle的CRS还没启动呢):
[root@lunar1 ~]# sar -u 1 10
Linux 3.10.0-327.el7.x86_64 (lunar1.oracle.com)         03/22/2016      _x86_64_        (2 CPU)
 
06:21:47 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
06:21:48 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:21:49 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
06:21:50 PM     all      1.01      0.00      1.52      0.00      0.00     97.47
06:21:51 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:21:53 PM     all      0.50      0.00      0.50      0.00      0.00     99.00
06:21:54 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:21:55 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:21:56 PM     all      1.51      0.00      3.52      0.00      0.00     94.97
06:21:57 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:21:58 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
Average:        all      0.30      0.00      0.60      0.00      0.00     99.10
[root@lunar1 ~]#

再来看看节点2:
Tasks: 284 total,   2 running, 282 sleeping,   0 stopped,   0 zombie
%Cpu(s):  4.3 us,  0.7 sy,  0.0 ni, 95.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  3145636 total,  1645972 free,  1070152 used,   429512 buff/cache
KiB Swap:  4190204 total,  4190204 free,        0 used.  2003876 avail Mem
 
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                    
 3643 grid      20   0 1442740 154600  44292 S   3.3  4.9   0:06.48 /usr/bin/gnome-shell                                                                                                      
 3651 oracle    20   0 1593832 154216  44296 S   3.0  4.9   0:06.94 /usr/bin/gnome-shell                                                                                                      
 3520 root      20   0 1580060 154488  43804 S   2.7  4.9   0:06.18 /usr/bin/gnome-shell                                                                                                      
   12 root      20   0       0      0      0 S   0.3  0.0   0:00.30 [rcuos/0]                                                                                                                  
 1023 root      20   0 1721880 153028   9952 S   0.3  4.9   0:09.38 /u01/app/12.1.0.2/grid/jdk/jre/bin/java -Xms128m -Xmx512m -classpath /u01/app/12.1.0.2/grid/tfa/lunar2/tfa_home/jlib/RATFA+
 1873 oracle    20   0  222688  24820   8192 S   0.3  0.8   0:00.22 /usr/bin/Xvnc :3 -desktop lunar2.oracle.com:3 (oracle) -auth /home/oracle/.Xauthority -geometry 1024x768 -rfbwait 30000 -r+
 3299 root      20   0  220832   1340    892 S   0.3  0.0   0:00.31 /usr/bin/VBoxClient --draganddrop                                                                                          
 7208 root      20   0  146308   2316   1512 R   0.3  0.1   0:00.11 top -c                                                                                                                     
    1 root      20   0  189236   4292   2380 S   0.0  0.1   0:01.56 /usr/lib/systemd/systemd --switched-root --system --deserialize 21                                                         
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [kthreadd]                                                                                                                 
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.02 [ksoftirqd/0]                                                                                                              
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 [kworker/0:0H]                                                                                                             
    7 root      rt   0       0      0      0 S   0.0  0.0   0:00.67 [migration/0]                                                                                                              
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [rcu_bh]                                                                                                                   
    9 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [rcuob/0]                                                                                                                  
   10 root      20   0       0      0      0 S   0.0  0.0   0:00.00 [rcuob/1]                                                                                                                  
   11 root      20   0       0      0      0 R   0.0  0.0   0:00.47 [rcu_sched]                        

同样的方法,也停止vnc服务和vnc的开机自动启动:
[root@lunar2 ~]# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:23 CST; 10min ago
  Process: 1470 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1872 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
           ‣ 1872 /usr/bin/Xvnc :1 -desktop lunar2.oracle.com:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/...
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar2 ~]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:23 CST; 10min ago
  Process: 1469 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :2 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1869 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:2.service
           ‣ 1869 /usr/bin/Xvnc :2 -desktop lunar2.oracle.com:2 (grid) -auth /home/grid/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/grid/.vnc/passwd -rfbport 5902 -fp catal...
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar2 ~]# systemctl status vncserver@:3.service
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:3.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-03-22 18:12:23 CST; 10min ago
  Process: 1474 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :3 > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
 Main PID: 1873 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service
           ‣ 1873 /usr/bin/Xvnc :3 -desktop lunar2.oracle.com:3 (oracle) -auth /home/oracle/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/oracle/.vnc/passwd -rfbport 5903 -fp...
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
[root@lunar2 ~]#

停止vnc服务和进制vnc开机自动启动:
[root@lunar2 ~]# systemctl disable vncserver@:1.service
systemctl stop  vncserver@:1.service
systemctl status vncserver@:1.service
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:1.service.
[root@lunar2 ~]# systemctl stop  vncserver@:1.service
[root@lunar2 ~]# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:23:23 lunar2.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:23:23 lunar2.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar2 ~]# systemctl disable vncserver@:2.service
systemctl stop  vncserver@:2.service
systemctl status vncserver@:2.service
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:2.service.
[root@lunar2 ~]# systemctl stop  vncserver@:2.service
[root@lunar2 ~]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:2.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:23:28 lunar2.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:23:28 lunar2.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar2 ~]#
[root@lunar2 ~]# systemctl disable vncserver@:3.service
systemctl stop  vncserver@:3.service
systemctl status vncserver@:3.service
 
Removed symlink /etc/systemd/system/multi-user.target.wants/vncserver@:3.service.
[root@lunar2 ~]# systemctl stop  vncserver@:3.service
[root@lunar2 ~]# systemctl status vncserver@:3.service
● vncserver@:3.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:3.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
 
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Starting Remote desktop service (VNC)...
Mar 22 18:12:23 lunar2.oracle.com systemd[1]: Started Remote desktop service (VNC).
Mar 22 18:23:32 lunar2.oracle.com systemd[1]: Stopping Remote desktop service (VNC)...
Mar 22 18:23:32 lunar2.oracle.com systemd[1]: Stopped Remote desktop service (VNC).
[root@lunar2 ~]#
[root@lunar2 ~]#

看一下节点2的优化效果:
[root@lunar2 ~]# sar -u 1 10
Linux 3.10.0-327.el7.x86_64 (lunar2.oracle.com)         03/22/2016      _x86_64_        (2 CPU)
 
06:24:01 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
06:24:02 PM     all      0.51      0.00      0.51      0.00      0.00     98.99
06:24:03 PM     all      0.50      0.00      1.01      0.00      0.00     98.49
06:24:04 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
06:24:05 PM     all      0.44      0.00      0.00      0.00      0.00     99.56
06:24:06 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
06:24:07 PM     all      0.50      0.00      1.51      0.00      0.00     97.99
06:24:08 PM     all      0.50      0.00      0.50      0.00      0.00     99.00
06:24:09 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
06:24:10 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
06:24:11 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
Average:        all      0.25      0.00      0.50      0.00      0.00     99.26
[root@lunar2 ~]#

时间: 2024-09-24 07:26:56

CentOS7.2(RHEL 7.2)的CPU占用高(%system 占用高)的相关文章

CPU占用率一直很高怎么办

Windows XP CPU占用100%情况分析解决   我们在使用Windows XP操作系统的时候,用着用着系统就变慢了,一看"任务管理器"才发现CPU占用达到100%.这是怎么回事情呢?遇到病毒了,硬件有问题,还是系统设置有问题,在本文中笔者将从硬件,软件和病毒三个方面来讲解系统资源占用率为什么会达到100%. 经常出现CPU占用100%的情况,主要问题可能发生在下面的某些方面: CPU占用率高的九种可能 1.防杀毒软件造成故障 由于新版的KV.金山.瑞星都加入了对网页.插件.邮

Wordpress站点占用服务器cup过高怎么解决

中介交易 http://www.aliyun.com/zixun/aggregation/6858.html">SEO诊断 淘宝客 云主机 技术大厅 wordpress站点占用服务器cup过高怎么解决?相信很多做起来的wordpress都有类似的烦 恼, 一天2000ip的wordpress站点就有可能受到这个问题的困扰,被空间商警告,甚至封站.这是什么原因引起的呢?又该怎么解决wordpress 站点占用服务器cup过高的问题呢? 首先说一下原因: 其实造成wordpress站点占用服务

win10系统cpu占用率一直很高怎么办

  win10系统cpu占用率一直很高怎么办 修改注册表法 首先,我们可以尝试修改一下注册表,在电脑桌面上按下Windows徽标键+R键,打开运行菜单命令,然后输入"regedit",打开注册表编辑器. 打开注册表编辑器之后,在左侧栏目中依次双击打开并定位到:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTimeBroker项. 双击打开TimeBroker项,然后在打开的页面中找到start,将其数值由3改为4,然后点击"

const 和enum 谁效率更高,占用资源更少

问题描述 const 和enum 谁效率更高,占用资源更少 asp.net 中 const 和enum 谁效率更高,占用资源更少 解决方案 这个应该区别不大

Windows 7显示80端口被system占用怎么办?

作为一名Windows7系统用户,如果在启动Apache的过程中碰到老是失败,那可以在CMD窗口中使用netstat -ano指令来查询,查询发现80端口被system占用,对于80端口被占用这个问题,我们该如何去解决呢?别着急,下面就给大家介绍详细的解决方法.  按照上图中的PID显示,在任务管理器中查看PID的进程名;  既然是system,那么应该不回是真正的系统,而是微软的其他系列产品的进程在运行. (注意:我已经在服务services.msc中结束了IIS ADmin服务) 但其实II

w3wp.exe占用CPU和内存问题过高的解决方法_win服务器

今天研究了一下,可以做以下配置: 1.在IIS中对每个网站进行单独的应用程序池配置.即互相之间不影响. 2.设置应用程序池的回收时间,默认为1720小时,可以根据情况修改.同时,设置同时运行的w3wp进程数目为1.再设置当内存或者cpu占用超过多少,就自动回收内存 一般来说,这样就可以解决了.但仍然会出现个别网站因为程序问题,不能正确释放. 那么,怎么样才能找到是哪一个网站的? 1.在任务管理器中增加显示pid字段.就可以看到占用内存或者cpu最高的进程pid 2.在命令提示符下运行iisapp

内存占用 递增-WPF 占用内存一直增加

问题描述 WPF 占用内存一直增加 我写个WPF,从12数据表中,共近千万条数据进行关键字排查,测试只执行2条表200万条数据,内存占用从30M 逐步升到1G以上, 代码如下 private int StartID=0; public MainWindow() { InitializeComponent(); DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(5); timer

为什么BIOS显示CPU高温而实际不高

问:CPU的正常工作温度大约是多少?我的主板BIOS中经常显示CPU的温度高于70度,但长时间工作并没有发生任何问题,请问这个温度是否在正常范围内? 答:目前主流CPU工作时的正常温度应该在50度左右,其中AMD公司的Duron和雷鸟CPU温度要高一些.一些主板的测温装置由于设计上的问题,有时会出现误报现象,你可以在开机运行一段时间后打开机箱用手摸一下CPU散热器,感觉其温度是否有那么高.假如CPU散热器不烫手,很可能是主板测温功能不准所致,你不必担心.

filebeat实践-内存占用-最大内存占用

filebeat作为日志采集agent, 是需要部署到生产服务器上的.不理解filebeat的工作机制,不了解filebeat在实际生产使用中的内存使用将会给你带来意想不到的麻烦. 有些文章说filebeat内存消耗很少,不会超过100M, 这简直是不负责任的胡说,假如带着这样的认识把filebeat部署到生产服务器上就等着哭吧. filebeat在空载情况(没有日志可采集)下的确不会有大的内存开销,但在有大量的日志需要采集时,filebeat的内存占用是没有固定值的, 那有没有理论值呢?答案是