当前位置:网站首页>Runtime. getRuntime(). totalMemory/maxMemory()
Runtime. getRuntime(). totalMemory/maxMemory()
2022-07-03 22:30:00 【xinyihhh】
totalMemory()
return Java Total memory in the virtual machine . The value returned by this method may change over time , It depends on the host environment . Be careful , The amount of memory required to save any given type of object may depend on the implementation .
maxMemory()
return Java The maximum amount of memory the virtual machine will try to use . If there are no inherent restrictions , Will return to Long.MAX_VALUE
value
边栏推荐
- Es6~es12 knowledge sorting and summary
- Report on the current situation and development trend of ethoxylated sodium alkyl sulfate industry in the world and China Ⓞ 2022 ~ 2027
- Pat grade A - 1164 good in C (20 points)
- Mongoose the table associated with the primary key, and automatically bring out the data of another table
- How about agricultural futures?
- 1068. Consolidation of ring stones (ring, interval DP)
- Blue Bridge Cup -- Mason prime
- Programming language (1)
- The overseas listing of Shangmei group received feedback, and brands such as Han Shu and Yiye have been notified for many times and received attention
- Investment analysis and prospect trend prediction report of China's boron nitride industry Ⓨ 2022 ~ 2028
猜你喜欢
Blue Bridge Cup -- guess age
Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
Bluebridge cup Guoxin Changtian single chip microcomputer -- detailed explanation of schematic diagram (IV)
Exness: the Central Bank of England will raise interest rates again in March, and inflation is coming
Go Technology Daily (2022-02-13) - Summary of experience in database storage selection
How can enterprises and developers take advantage of the explosion of cloud native landing?
IDENTITY
Redis single thread and multi thread
Take you to master the formatter of visual studio code
Awk getting started to proficient series - awk quick start
随机推荐
pivot ROP Emporium
[golang] leetcode intermediate - alphabetic combination of island number and phone number
How about agricultural futures?
Investment planning analysis and prospect prediction report of China's satellite application industry during the 14th five year plan Ⓑ 2022 ~ 2028
User login function: simple but difficult
China's TPMS industry demand forecast and future development trend analysis report Ⓐ 2022 ~ 2028
油猴插件
Rest参考
Leetcode: a single element in an ordered array
Is it safe and reliable to open an account and register for stock speculation? Is there any risk?
LeetCode 1646. Get the maximum value in the generated array
2022 safety officer-a certificate registration examination and summary of safety officer-a certificate examination
Ansible common usage scenarios
C deep anatomy - the concept of keywords and variables # dry inventory #
Exness: the Central Bank of England will raise interest rates again in March, and inflation is coming
Niuke winter vacation training camp 4 g (enumeration optimization, Euler power reduction)
China's coal industry investment strategic planning future production and marketing demand forecast report Ⓘ 2022 ~ 2028
JS demo calculate how many days are left in this year
[Android reverse] use DB browser to view and modify SQLite database (download DB browser installation package | install DB browser tool)
To rotate 90 degrees clockwise and modify the video format