问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

为什么avast!会占用这么大的网络流量?

发布网友 发布时间:2022-04-14 13:04

我来回答

5个回答

懂视网 时间:2022-04-14 17:25

ash是非常有效的监控工具之一,1秒抓一次select max(sample_time)over(),min(sample_time)over() from dba_hist_active_sess_history; --8天 select max(sample_time)over(),min(sample_time)over() from v$active_session_history; --当天首先先了解几个视

ash是非常有效的监控工具之一,1秒抓一次
select max(sample_time)over(),min(sample_time)over() from dba_hist_active_sess_history; --8天 
select max(sample_time)over(),min(sample_time)over() from v$active_session_history; --当天

首先先了解几个视图:
V$ACTIVE_SESSION_HISTORY: 是ASH的核心,用以记录活动SESSION的历史等待信息,每秒采样一次,这部分内容记录在内存中,期望值是记录一个小时的内容。
WRH#_ACTIVE_SESSION_HISTORY : 是V$ACTIVE_SESSION_HISTORY在AWR的存储地。 
V$ACTIVE_SESSION_HISTORY: 中的信息会被定期(每小时一次)的刷新到负载库中,并缺省保留一个星期用于分析。
DBA_HIST_ACTIVE_SESS_HISTORY: 视图是WRH#_ACTIVE_SESSION_HISTORY视图和其他几个视图的联合展现,通常通过这个视图进行历史数据的访问。

------------------------------------
--V$ACTIVE_SESSION_HISTORY的监控:--
------------------------------------

------------session:1-----------------


SQL> @big

 SID
----------
 131

Elapsed: 00:00:00.00
drop table big
  *
ERROR at line 1:
ORA-00942: table or view does not exist


Elapsed: 00:00:00.03
Elapsed: 00:00:00.31
Elapsed: 00:00:00.34
Elapsed: 00:00:00.29
Elapsed: 00:00:00.73
Elapsed: 00:00:01.75
Elapsed: 00:00:10.59
Elapsed: 00:00:24.62
Elapsed: 00:00:00.01

 BIG_M
----------
 522
Elapsed: 00:00:00.36

 COUNT(*)
----------
 4650368
Elapsed: 00:00:26.70


------------session:2-----------------

SQL> @getash_sid
Enter value for sid: 131

SESSION_ID NAME        P_NAME  P_VALUE SQL_ID WAIT_TIME CURRENT_OBJ# CURRENT_FILE# CURRENT_BLOCK#
---------- ---------------------------------------------------------------- --------------- --------------- ------------- ---------- ------------ ------------- ---------
 131 db file sequential read      file#  1  d2wbn28rdk8z4 0  547  1  3604
          block#  53206
          blocks  1

 131 db file sequential read      file#  1  d2wbn28rdk8z4 0  -1  0  0
          block#  3009
          blocks  1

 131 db file scattered read      file#  4  03b71c07nsc1a 0  134  1  1064
          block#  4845
          blocks  8

 131 log buffer space         0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch completion       0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  6046
            0
            0

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  4995
          block#  4995
          blocks  5

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  7170
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  7170
            0
            0

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  8578
          block#  8578
          blocks  126

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  12802
          block#  12802
          blocks  126

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  12930
            0
            0

 131 db file sequential read      file#  1  aq32z6wjx1s4h 0 65921  201  3585
          block#  2854
          blocks  1

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  14084
          block#  14084
          blocks  124

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  18436
          block#  18436
          blocks  128

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  19972
          block#  19972
          blocks  128

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  21252
          block#  21252
          blocks  124

 131 db file parallel read      files  1  aq32z6wjx1s4h 0 76851  4  23424
          blocks  29
          requests 29

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  24320
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  24320
            0
            0

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  25856
          block#  25856
          blocks  128

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  27652
          block#  27652
          blocks  124

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  29312
          block#  29312
          blocks  32

 131 Disk file operations I/O      FileOperation 2  aq32z6wjx1s4h 0 76851  4  29952
          fileno  0
          filetype 2

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  30724
          block#  30724
          blocks  124

 131 db file scattered read      file#  4  aq32z6wjx1s4h 0 76851  4  34530
          block#  34530
          blocks  14

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  35716
            0
            0

 131 log file switch (checkpoint incomplete)      0  aq32z6wjx1s4h 0 76851  4  35716
            0
            0

 131 Disk file operations I/O      FileOperation 5  aq32z6wjx1s4h 0 76851  4  37632
          fileno  0
          filetype 2

 131 db file sequential read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  4999
          blocks  1

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  10344
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  17409
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  22083
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  28549
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  34733
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  39217
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  45114
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  48836
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0  9  1  86832
          block#  52391
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  5196
          block#  5196
          blocks  6

 131 db file sequential read      file#  4  fqcxb1n33642x 0 76851  4  8261
          block#  8261
          blocks  1

 131 db file sequential read      file#  4  fqcxb1n33642x 0 76851  4  11318
          block#  11318
          blocks  1

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  14489
          block#  14489
          blocks  56

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  17935
          block#  17935
          blocks  50

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  21195
          block#  21195
          blocks  20

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  25170
          block#  25170
          blocks  2

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  28453
          block#  28453
          blocks  34

 131 db file sequential read      file#  4  fqcxb1n33642x 0 76851  4  33067
          block#  33067
          blocks  1

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  36991
          block#  36991
          blocks  13

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  41616
          block#  41616
          blocks  21

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  44055
          block#  44055
          blocks  8

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  2723
          block#  2723
          blocks  44

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  50056
          block#  50056
          blocks  9

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  53658
          block#  53658
          blocks  102

 131 db file scattered read      file#  4  fqcxb1n33642x 0 76851  4  56580
          block#  56580
          blocks  128

 131 db file sequential read      file#  4  fqcxb1n33642x 0 76851  4  60256
          block#  60256
          blocks  1


64 rows selected.

Elapsed: 00:00:00.40
SQL> @getsql_sqlid
Enter 1 for curr sql, 2 for hist sql,default 1:

Enter value for sqlid: fqcxb1n33642x

SQL_FULLTEXT
---------------------------------------------------------------------------------------------
select count(*) from big
Elapsed: 00:00:00.00
Elapsed: 00:00:00.00
SQL> @getobj_id
Enter value for dblink:
Enter value for obj_id: 76851

OWNER  OBJECT_NAME   OBJECT_TYPE  CREATED  STATUS
-------------------- ------------------------------ ------------------- ------------------- -------
SCOTT  BIG    TABLE  2014-11-20 15:56:23 VALID

1 row selected.

Elapsed: 00:00:00.01
SQL> @getobj_fb
Enter value for file_id: 4
Enter value for block_id: 60256

OWNER  SEGMENT_NAME  SEGMENT_TY
--------------- -------------------- ----------
SCOTT  BIG   TABLE

1 row selected.

Elapsed: 00:00:00.37




--------------------------@脚本--------------------


--@big 

@sid
set feedback off
drop table big;
create table big as select * from dba_objects;
insert into big select * from big;
/
/
/
/
/
commit;
select SUM(bytes) / 1024 / 1024 big_M from dba_segments where segment_name = 'BIG';
select count(*) from big;
set feedback on


--@getash_sid
col p_name for a15
col p_value for a15
select SESSION_ID,
 NAME,
 P1TEXT||chr(10)||P2TEXT||chr(10)||P3TEXT p_name,
 p1||chr(10)||p2||chr(10)||p3 p_value,
 sql_id,
 WAIT_TIME,
 CURRENT_OBJ#,
 CURRENT_FILE#,
 CURRENT_BLOCK#
 from v$active_session_history ash, v$event_name enm
 where ash.event# = enm.event#
 and SESSION_ID = &sid
 order by sample_time; 
 
 

----------------------------------------
--DBA_HIST_ACTIVE_SESS_HISTORY的监控:--
----------------------------------------

--查当前时间
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;

--根据时间找到snap_id(8天内,1小时前),因为基表非常大,利用snap_id的索引才能快速查询
select distinct snap_id from dba_hist_snapshot b where to_date('2014-11-20 14:08:12','yyyy-mm-dd hh24:mi:ss') between b.begin_interval_time and b.end_interval_time;

--top instance
select /*+parallel(a,8)*/instance_number,count(*) from dba_hist_active_sess_history a where a.snap_id=67421 group by instance_number;

--top event
select /*+parallel(a,8)*/event,count(*) from dba_hist_active_sess_history a 
where a.snap_id=67421
and instance_number=2
and sample_time>=to_timestamp('2014-11-20 14:07:12','yyyy-mm-dd hh24:mi:ss')
and sample_time<=to_timestamp('2014-11-20 14:08:12','yyyy-mm-dd hh24:mi:ss')
group by event
order by count(*) desc;

--top user
select /*+parallel(a,8)*/user_id,(select username from dba_users b where b.user_id=a.user_id) username,count(*) from dba_hist_active_sess_history a 
where a.snap_id=67421
and instance_number=2
and sample_time>=to_timestamp('2014-11-20 14:07:12','yyyy-mm-dd hh24:mi:ss')
and sample_time<=to_timestamp('2014-11-20 14:08:12','yyyy-mm-dd hh24:mi:ss')
group by user_id
order by count(*) desc;

--top sql
select /*+parallel(a,8)*/sql_id,count(*) from dba_hist_active_sess_history a 
where a.snap_id=67421
and instance_number=2
and sample_time>=to_timestamp('2014-11-20 14:07:12','yyyy-mm-dd hh24:mi:ss')
and sample_time<=to_timestamp('2014-11-20 14:08:12','yyyy-mm-dd hh24:mi:ss')
group by sql_id
order by count(*) desc;

-- select SQL_TEXT from dba_hist_sqltext where sql_id='49p4hfj6azw19';


--top program
select /*+parallel(a,8)*/program,count(*) from dba_hist_active_sess_history a 
where a.snap_id=67421
and instance_number=2
and sample_time>=to_timestamp('2014-11-20 14:07:12','yyyy-mm-dd hh24:mi:ss')
and sample_time<=to_timestamp('2014-11-20 14:08:12','yyyy-mm-dd hh24:mi:ss')
group by program
order by count(*) desc;



热心网友 时间:2022-04-14 14:33

ashwebsv,小A的网络防护服务组件。(ashwebsv=avast webservice)。会在后台监控80端口的网络流量(80端口是HTTP/Web的基准端口),以发现威胁。所以,只要你上网,只要你使用80端口(比如浏览网页),ashwebsv都会进行监控。即使不是由其产生的流量也会被网络流量监控程序算成它产生的(实际上是浏览器等等联网程序产生的),而且一般是会大于浏览器的流量值(使用80端口的不止浏览器了)。

热心网友 时间:2022-04-14 15:51

看来你那流量监视有点不准确,本地扫描的成了杀软的流量值。

热心网友 时间:2022-04-14 17:26

做久了那边肯定要这么做的的,只是迟早的事。

热心网友 时间:2022-04-14 19:17

回复 2# 怎么会是内存,我说的网络流量。avast的一个进程为什么会产生那么大多的流量?
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
ViewSonic优派VP3268A-4K 31.5英寸显示器,细腻画质与实用功能的完美结合... ViewSonic 优派 VP3268A-4K 31.5英寸显示器-高清大屏,色彩真实,适合多... 帮忙写一篇 读书的快乐 的作文,很急!谢谢! 以《我为什么读书》为题,写一篇作文,大家帮帮忙,谢谢了谢谢了 好书伴我成长征文, 急!! 电脑课程配置动画专业需要怎样的电脑配置 宁德时代在湖南哪个地方 伸缩自如,多场景应对,纳拓悟空露营灯开箱使用体验 欧派橱柜和奇美橱柜哪个好 奇美雅阁橱柜怎么样 华为手机摄像头不能对焦修理需要多少钱 修理尼康70-200镜头不自动对焦了,修理费用是多少 监听耳机用,AKG K240MII 和 K240r studio(红黑的)哪个好?或者推荐哪款? 爱科技K240R Studio 和Beats EP ML9C2PA/A 哪个比较好? 某宝某猫买耳机靠谱么? 看上了AKG K240R 京东自营价是699 某宝双十二活 请问推akg.k240r需要上什么胆机功放推,求介绍 AKG k240r 与 森海塞尔小馒头一代哪个更好 akg k240s和akg k240r哪个音质好? 扫描隧道显微镜的分辨率是多少 爱科技K240R多少钱,最新爱科技K240R的价格 买了akg k240r 用什么解码耳放比较好? 请问K240r(akg)电脑直推效果怎么样? 我在U盘中装了个小的linux系统,问题是,我要怎么更新这个系统?比如装软件什么的? AKG K240R耳机怎么样 请问乐檬X3c50能推好akgk240r吗 显微镜分辨率是什么 电子显微镜分辨率0.25nm是说小于0.25nm的就看不清了, AKG240 K240R K240S K240MK K240HD【红黑】哪个好? 原子力显微镜,透射电子显微镜和扫描电子显微镜的分辨率各是多少 用过科颜氏(契尔氏)亚马逊白泥净致面膜的请进 求真实使用效果 电子显微镜的分辨率能达到多少你能用一个恰当的比喻来描述吗 是买飞利浦shn9500还是AKG K240R 佳能前镜片摔碎了能修么,前镜片碎了,调焦卡住了,不能自动对焦了,还能修好么?大概多少钱 刚才相机摔了一下,镜头前面对焦的那一段晃了,对焦和防抖都没太大问题,谁知道一般修理大约多少钱? 佳能18 135镜头马达损坏了!不能自动对焦,修的话大概需要多钱? 尼康18-135的镜头给摔了能拍照不能自动对焦了,到尼康售后修要多少钱,镜头修了还能如从前一样吗? 苹果5s后置摄像头不能对焦,维修大概多少钱? 尼康镜头对焦环坏了,修理大概要多少钱 职务层次中正处职与正处级有何区别- 问一问 纠结要不要买下刚刚看好的一个马油爽肤水, 马油霜和马油水的区别 处级正职,正处级是什么区别 正品马油抹完之后是不是干的特别 马油能去除脸上的红血丝吗 Platinum Labe马油 化妆水 怎么样 QQ怎么自动接收文件??? 马油对毛孔粗大有黑头有效果吗 晚上洗完脸以后,使用马油膏之前需要用爽肤水吗? 正县级和正处级一样吗 中国干部级别的正处级 梦到老公和别人在一起...