All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.monitor.os.OsProbe.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?&com/groupbyinc/flux/monitor/os/OsProbejava/lang/ObjectOsProbe.java4com/groupbyinc/flux/monitor/os/OsProbe$OsProbeHolder
OsProbeHolder-com/groupbyinc/flux/monitor/os/OsStats$Cgroup	&com/groupbyinc/flux/monitor/os/OsStatsCgroup5com/groupbyinc/flux/monitor/os/OsStats$Cgroup$CpuStatCpuStat*com/groupbyinc/flux/monitor/os/OsStats$CpuCpu*com/groupbyinc/flux/monitor/os/OsStats$MemMem+com/groupbyinc/flux/monitor/os/OsStats$SwapSwaposMxBean,Ljava/lang/management/OperatingSystemMXBean;getFreePhysicalMemorySizeLjava/lang/reflect/Method;getTotalPhysicalMemorySizegetFreeSwapSpaceSizegetTotalSwapSpaceSizegetSystemLoadAveragegetSystemCpuLoad!CONTROL_GROUPS_HIERARCHY_OVERRIDELjava/lang/String;logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;$assertionsDisabledZ()Jjava/lang/Exception*	,????????	0java/lang/reflect/Method2invoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;45
36java/lang/Long8	longValue:)
9;eLjava/lang/Exception;this(Lcom/groupbyinc/flux/monitor/os/OsProbe;	A	C 	E()[Djava/io/IOExceptionH java/lang/IllegalAccessExceptionJ+java/lang/reflect/InvocationTargetExceptionL7com/groupbyinc/flux/common/apache/lucene/util/ConstantsNWINDOWSP(	OQLINUXS(	OTreadProcLoadavg()Ljava/lang/String;VW
X'(	Z(\d+\.\d+\s+){3}\d+/\d+\s+\d+\java/lang/String^matches(Ljava/lang/String;)Z`a
_bjava/lang/AssertionErrord()Vfg
eh\s+jsplit'(Ljava/lang/String;)[Ljava/lang/String;lm
_njava/lang/DoublepparseDouble(Ljava/lang/String;)Drs
qt%&	v6com/groupbyinc/flux/common/apache/logging/log4j/LoggerxisDebugEnabled()Zz{y|error reading /proc/loadavg~debug*(Ljava/lang/String;Ljava/lang/Throwable;)V??y?MAC_OS_X?(	O?!	?doubleValue()D??
q?[D???&java/lang/ReflectiveOperationException?;error reading one minute load average from operating system?procLoadAvgfields[Ljava/lang/String;Ljava/io/IOException;oneMinuteLoadAverageD(Ljava/lang/ReflectiveOperationException;.Lcom/groupbyinc/flux/common/SuppressForbidden;reasonaccess /proc/loadavg
/proc/loadavg?'com/groupbyinc/flux/common/io/PathUtils?get;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;??
??readSingleLine((Ljava/nio/file/Path;)Ljava/lang/String;??
?getSystemCpuPercent()S"	?"com/groupbyinc/flux/monitor/Probes?getLoadAndScaleToPercentI(Ljava/lang/reflect/Method;Ljava/lang/management/OperatingSystemMXBean;)S??
??java/nio/file/Files?readAllLines&(Ljava/nio/file/Path;)Ljava/util/List;??
??java/util/List?size()I????(I)Ljava/lang/Object;????pathLjava/nio/file/Path;lines$Ljava/util/List;Ljava/util/List;getControlGroups()Ljava/util/Map;readProcSelfCgroup()Ljava/util/List;??
?java/util/HashMap?
?hiterator()Ljava/util/Iterator;????
java/util/Map?java/util/Iterator?hasNext?{??next()Ljava/lang/Object;????:??,?#$	?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????controlGroupPathprevious
controllercontrollersline
controllerMap5Ljava/util/Map;Ljava/util/Map;access /proc/self/cgroup/proc/self/cgroup?isEmpty?{??getCgroupCpuAcctUsageNanos(Ljava/lang/String;)J"readSysFsCgroupCpuAcctCpuAcctUsage&(Ljava/lang/String;)Ljava/lang/String;??
?	parseLong?
9controlGroupaccess /sys/fs/cgroup/cpuacct/sys/fs/cgroup/cpuacct
cpuacct.usage"getCgroupCpuAcctCpuCfsPeriodMicros"readSysFsCgroupCpuAcctCpuCfsPeriod
?
access /sys/fs/cgroup/cpu/sys/fs/cgroup/cpucpu.cfs_period_us!getCgroupCpuAcctCpuCfsQuotaMicros%readSysFsCgroupCpuAcctCpuAcctCfsQuota?
cpu.cfs_quota_usgetCgroupCpuAcctCpuStatK(Ljava/lang/String;)Lcom/groupbyinc/flux/monitor/os/OsStats$Cgroup$CpuStat;readSysFsCgroupCpuAcctCpuStat$(Ljava/lang/String;)Ljava/util/List;
hashCode?
_
nr_periods!equals(Ljava/lang/Object;)Z#$
_%nr_throttled'throttled_time)(JJJ)Vf+
,numberOfPeriodsJnumberOfTimesThrottledtimeThrottledNanoscpu.stat2areCgroupStatsAvailableHaccess /proc/self/cgroup, /sys/fs/cgroup/cpu, and /sys/fs/cgroup/cpuacctjava/nio/file/LinkOption6exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z89
?:	getCgroup1()Lcom/groupbyinc/flux/monitor/os/OsStats$Cgroup;4{
>??
@??cpuacctC&(Ljava/lang/Object;)Ljava/lang/Object;?E?F??
HcpuJ	?
L?
N
Pa(Ljava/lang/String;JLjava/lang/String;JJLcom/groupbyinc/flux/monitor/os/OsStats$Cgroup$CpuStat;)VfR

S!error reading control group statsUcpuAcctControlGroupcgroupCpuAcctUsageNanoscpuControlGroupcgroupCpuAcctCpuCfsPeriodMicroscgroupCpuAcctCpuCfsQuotaMicroscpuStat7Lcom/groupbyinc/flux/monitor/os/OsStats$Cgroup$CpuStat;getInstance*()Lcom/groupbyinc/flux/monitor/os/OsProbe;
access$000`_
a
hgetClass()Ljava/lang/Class;de
f2com/groupbyinc/flux/common/logging/ESLoggerFactoryh	getLoggerK(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;jk
ilosInfo+(JI)Lcom/groupbyinc/flux/monitor/os/OsInfo;%com/groupbyinc/flux/monitor/os/OsInfopjava/lang/Runtimer
getRuntime()Ljava/lang/Runtime;tu
svavailableProcessorsx?
syOS_NAME{$	O|OS_ARCH~$	O
OS_VERSION?$	O?<(JIILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Vf?
q?refreshIntervalallocatedProcessorsIosStats*()Lcom/groupbyinc/flux/monitor/os/OsStats;??
?!G
?(S[D)Vf?
?)
?)
?(JJ)Vf?
? )
?)
?
?<=
?java/lang/System?currentTimeMillis?)
???(JLcom/groupbyinc/flux/monitor/os/OsStats$Cpu;Lcom/groupbyinc/flux/monitor/os/OsStats$Mem;Lcom/groupbyinc/flux/monitor/os/OsStats$Swap;Lcom/groupbyinc/flux/monitor/os/OsStats$Cgroup;)Vf?
?,Lcom/groupbyinc/flux/monitor/os/OsStats$Cpu;mem,Lcom/groupbyinc/flux/monitor/os/OsStats$Mem;swap-Lcom/groupbyinc/flux/monitor/os/OsStats$Swap;cgroup/Lcom/groupbyinc/flux/monitor/os/OsStats$Cgroup;	getMethod.(Ljava/lang/String;)Ljava/lang/reflect/Method;?com.groupbyinc.flux.common.sun.management.OperatingSystemMXBean?java/lang/Class?forName%(Ljava/lang/String;)Ljava/lang/Class;??
??@(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;??
??
methodNamedesiredAssertionStatus?{
??&java/lang/management/ManagementFactory?getOperatingSystemMXBean.()Ljava/lang/management/OperatingSystemMXBean;??
????
? !"es.cgroups.hierarchy.override?getProperty??
??CodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsRuntimeInvisibleAnnotationsLocalVariableTypeTable	Signature7()Ljava/util/Map;&()Ljava/util/List;8(Ljava/lang/String;)Ljava/util/List;
SourceFileInnerClasses!
 !"#$%&'()?|#?-?.??-?1??7?9?#?@?BC
FGH?
S+)?|#?B?.??B?1??7?9?#?@?PQ
TUV?
S+)?|#?D?.??D?1??7?9?#?@?^_
bcd?
S+ )?|#?F?.??F?1??7?9?#?@?lm
pqr?
S+!G??ֲR???U?`*?YL?[?+]?c??eY?i?+k?oM?Y,2?uRY,2?uRY,2?uR?L*?w?}?*?w+????[?????eY?i????????1??7?q??J?Y)??)??RY?RY?R?L*?w?}?*?w?+???OPI???K???M?>=?$1??Q=?? ???=???@?R?????*?1?P?Q?]?i?k?????????????????]?!_?%I?I??"??????
???VW?8*??_???????@???I???s????4
???1????
?@??????,+??M?[?,?
,????eY?i?,???_?? ,?@,??'???'?????!??	???I????
?*??L??Y??M+??N-????-???_:?o:?[????eY?i?2?o::?66		?F	2:
?????:?	2:,
???_:?[???eY?i??	?????m,??f
v?$"?$??$k6?$
1v??QV??(?$??@???
???????
????>??
?(?1?F?Q?k?q?y???????????]?????1_??
???_????_?_?!??????I??????*??_????L?[?+?+????eY?i?+??*?@
???
????
?(??	? ??I?????s????=	*+?????	?@	$??I???M*?_Y+SYS???????@$??I???s	??=	*+????	?@	$??I
??M*?_Y+SYS???????@$?,?I???s
??=	*+????	?@	$?8?I??M*?_Y+SYS???????@$?F?I???s
?N,*+?M.B.7.7,??:		????	???_:

k?o:2:6
? ?S?s}?4b"?W#|2?rE"?&?(6
?"(?&?6
?*?&?6

?:%12?B?2?7?2?7??D?[?!.???eY?i??[?.???eY?i??[?.???eY?i??Y!?-??R;???2??$
,?@,$&??
"./0/1/?&???FQR
STU2V;W?Y?Z?\?]?_?b?c?def?Z
?_???O_??_?_

?_????I??6?_Y+SY3S????M?[?,?
,????eY?i?,?? 6?@6$??????{|4}?	?,??I?????s
4{??C??_???7?;???_???7?;???_???7?;????C?@????)?+???A?????s5<=???*????*?AL?[?+?B??eY?i?+D?G?_M?[?,??eY?i?*,?IB+K?G?_:?[???eY?i?*?M7*?O7*?Q:
?
Y,!
?T?L*?wV+????I	??I?\	???2cW$JKX/X=Y$s"Z/{[/?\]
?=???@?????B??	??%?2?D?J?X?k?s?{??????????#	???_?&_?)I	^_??b???fg?B*?c**?g?m?w???@????no?W	?qY?w?z?}???????? ?@?/????????P?Y*??*????L?Y*??*????M?Y*??*????N?U?
*???:?Y??+,-????4P?@@J? 0??0 ??@????? ?0?@???=@

???b???*?????L?+?=>?$?????O+?g??V?????[?dz1ȸʳ-˸ʳB̸ʳD͸ʳFθʳ?ϸʳ?ѸԳ??&	*,67(819::C;L??@??2


	
				




© 2015 - 2025 Weber Informatics LLC | Privacy Policy