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

com.groupbyinc.flux.bootstrap.JNANatives.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?(com/groupbyinc/flux/bootstrap/JNANativesjava/lang/ObjectJNANatives.java0com/groupbyinc/flux/bootstrap/JNACLibrary$Rlimit)com/groupbyinc/flux/bootstrap/JNACLibraryRlimitGcom/groupbyinc/flux/bootstrap/JNAKernel32Library$MemoryBasicInformation0com/groupbyinc/flux/bootstrap/JNAKernel32Library
MemoryBasicInformation6com/groupbyinc/flux/bootstrap/JNAKernel32Library$SizeTSizeT+com/groupbyinc/flux/monitor/jvm/JvmInfo$Mem'com/groupbyinc/flux/monitor/jvm/JvmInfoMemlogger!Lorg/apache/logging/log4j/Logger;LOCAL_MLOCKALLZLOCAL_SYSTEM_CALL_FILTERLOCAL_SYSTEM_CALL_FILTER_ALLMAX_NUMBER_OF_THREADSJMAX_SIZE_VIRTUAL_MEMORY
MAX_FILE_SIZE$assertionsDisabled()V#$
%this*Lcom/groupbyinc/flux/bootstrap/JNANatives;tryMlockalljava/lang/UnsatisfiedLinkError*?mlockall(I)I-.
	/	1java/lang/String3)com/groupbyinc/flux/common/sun/jna/Native5getLastError()I78
69strerror(I)Ljava/lang/String;;<
	=7com/groupbyinc/flux/common/apache/lucene/util/Constants?LINUXA	@BMAC_OS_XD	@E
%RLIMIT_MEMLOCKIHI		J	getrlimit6(ILcom/groupbyinc/flux/bootstrap/JNACLibrary$Rlimit;)ILM
	Nrlim_cur/Lcom/groupbyinc/flux/common/sun/jna/NativeLong;PQ	R-com/groupbyinc/flux/common/sun/jna/NativeLongT	longValue()JVW
UXrlim_maxZQ	[	]&Unable to retrieve resource limits: {}_org/apache/logging/log4j/Loggerawarn'(Ljava/lang/String;Ljava/lang/Object;)Vcdbe.Unable to lock JVM Memory: error={}, reason={}gjava/lang/IntegerivalueOf(I)Ljava/lang/Integer;kl
jm9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Vcobp5This can result in part of the JVM being swapped out.r(Ljava/lang/String;)Vctbu7Increase RLIMIT_MEMLOCK, soft limit: {}, hard limit: {}wrlimitToString(J)Ljava/lang/String;yz
{	user.name}java/lang/SystemgetProperty&(Ljava/lang/String;)Ljava/lang/String;??
???These can be adjusted by modifying /etc/security/limits.conf, for example: 
	# allow user '{}' mlockall
	{} soft memlock unlimited
	{} hard memlock unlimited?K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Vc?b?`If you are logged in interactively, you will have to re-login for the new limits to take effect.?!Increase RLIMIT_MEMLOCK (ulimit).?rlimit2Lcom/groupbyinc/flux/bootstrap/JNACLibrary$Rlimit;resulte Ljava/lang/UnsatisfiedLinkError;userLjava/lang/String;errnoerrMsg
rlimitSuccess	softLimit	hardLimittrySetMaxNumberOfThreads	?java/lang/StringBuilder?
?%*unable to retrieve max number of threads [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??]?toString()Ljava/lang/String;??
??rlimit_nproctrySetMaxSizeVirtualMemory	RLIMIT_AS?I		? 	?,unable to retrieve max size virtual memory [?trySetMaxFileSizeRLIMIT_FSIZE?I		?!	?"unable to retrieve max file size [?"	?java/lang/AssertionError?
?%
RLIM_INFINITY?		?	unlimited?java/lang/Long?toUnsignedString?z
??valuedefinitelyRunningAsRoot()ZWINDOWS?	@?geteuid?8
	?tryVirtualLockgetInstance4()Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library;??
?GetCurrentProcess.()Lcom/groupbyinc/flux/common/sun/jna/Pointer;??
?jvmInfo+()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo;??
?getMem/()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo$Mem;??
?getHeapInit1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;??
?-com/groupbyinc/flux/common/unit/ByteSizeValue?getBytes?W
??(J)V#?
?SetProcessWorkingSetSize?(Lcom/groupbyinc/flux/common/sun/jna/Pointer;Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library$SizeT;Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library$SizeT;)Z??
?HUnable to lock JVM memory. Failed to set working set size. Error code {}?*com/groupbyinc/flux/common/sun/jna/Pointer?
%
??size?8
?VirtualQueryEx?(Lcom/groupbyinc/flux/common/sun/jna/Pointer;Lcom/groupbyinc/flux/common/sun/jna/Pointer;Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library$MemoryBasicInformation;I)I
StateQ	Protect
Q	BaseAddress,Lcom/groupbyinc/flux/common/sun/jna/Pointer;	
RegionSize8Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library$SizeT;	
XVirtualLockg(Lcom/groupbyinc/flux/common/sun/jna/Pointer;Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library$SizeT;)Z
CloseHandle/(Lcom/groupbyinc/flux/common/sun/jna/Pointer;)Z
java/lang/Throwable lockablememInfoILcom/groupbyinc/flux/bootstrap/JNAKernel32Library$MemoryBasicInformation;addresskernel2Lcom/groupbyinc/flux/bootstrap/JNAKernel32Library;processgetShortPathName*com/groupbyinc/flux/common/sun/jna/WString*\\?\,#t
+.GetShortPathNameW2(Lcom/groupbyinc/flux/common/sun/jna/WString;[CI)I01
2!failed to get short path name: {}4([C)Ljava/lang/String;?6
67[C9longPath,Lcom/groupbyinc/flux/common/sun/jna/WString;length	shortPathpathaddConsoleCtrlHandler5(Lcom/groupbyinc/flux/bootstrap/ConsoleCtrlHandler;)V5(Lcom/groupbyinc/flux/bootstrap/ConsoleCtrlHandler;)Z@B
C"console ctrl handler correctly setEdebugGtbH1unknown error {} when adding console ctrl handlerJhandler2Lcom/groupbyinc/flux/bootstrap/ConsoleCtrlHandler;tryInstallSystemCallFilter(Ljava/nio/file/Path;)Vjava/lang/ExceptionP.com/groupbyinc/flux/bootstrap/SystemCallFilterRinit(Ljava/nio/file/Path;)ITU
SV	X	ZisDebugEnabled\?b] unable to install syscall filter_*(Ljava/lang/String;Ljava/lang/Throwable;)VGabb"unable to install syscall filter: dcabfretLjava/lang/Exception;tmpFileLjava/nio/file/Path;java/lang/ClassmdesiredAssertionStatuso?
np*com/groupbyinc/flux/common/logging/Loggersr	getLogger4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;tu
sv?????????CodeLocalVariableTableLineNumberTable
StackMapTable
SourceFileInnerClasses  !"#$|/*?&?}'(~))$|	?,;L=	B	7?06??2??:;?>L?C?	?F???Y?G:?K?O?=?S?YB?\?Y7??^`?:?>?f?:??^h?n+?q?^s?v?N?@?^x!?|?|?q?C?1~??:?^????^??v?
?^??v?p+mp+}\	:3??[?Ir???????I?????	????~?!=>?@	ADEFGJ K%L1N:OEPGQPR]TmZpWrYs]?^?_?`?a?b?d?e?k?l?n?q$?4?+?B+?_	?$|?M?C?I;?Y?GL+?O?+?S?Y???(?^??Y??????:?>????????v?}	C?I;??~ty	{|}'L??'?$?$|?Q?C?	?F?G?Y?GK??*?O?*?S?Y???(?^??Y??????:?>????????v?}<??~????+?P???$?$|?Q?C?	?F?G?Y?GK??*?O?*?S?Y???(?^??Y??????:?>????????v?}<??~????+?P???$yz|j*????C??F???Y????Ĕ?ư?˰}*?~??"?%?
??|i?љ??Ԛ??K?+}??~?????
	@@+?$|??KL*??L?Y??????a??M*+,,????^??:?n?f???Y??N	7*+??Y??--???c-??Y??'-??Y

??-??Y

???6?*-??Y-????W-??a7????2+?)*+?W? M+?*+?W?:+?	*+?W????+?????}>?("H}#$Kz%#???&'?(~f????#?-?@?H?K?a?s?????????????????????????????N?@??
?G@???L+M!??!??)?|9|????њ??Y????+Y??Y??-??*?????/L??+?3=??^5?:?n?f*??N??+-?3?-?8??^5?:?n?f*?L*?Py+Qey+fxy+}40I;<:?=IU$>9z??|??~6
??0?:?>?O?Q?U?a?f?w?y?z??<+?:?4+@A|?6?љ2??*?D<??^F?I??^K?:?n?f?L?14+}#?6LM~"???? ?1?4?5?? ?B+NO|?:*?W<?Y??[?'L?^?^??^`+?c?^e+?g?Q} 
hI#?i:jk~*
	
!-
9BQ?Q?l$|v7?q?????w?^?2?Y?[x??z??z???~"&+.0 3$6*80:@??"	
			




© 2015 - 2024 Weber Informatics LLC | Privacy Policy