Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
構成済みの-Xmxは2037m(-Xmx2037)ですが、 Runtime.totalMemory()から合計メモリを取得すると136mbになります。正確に構成済みのxmx値を取得するにはどうすればよいですか?
を使用して、現在のヒープサイズRuntime.maxMemoryを返します。Runtime.totalMemory
Runtime.maxMemory
Runtime.totalMemory
totalMemory現在のヒープサイズを報告します。これは、必要に応じて制限に向かって大きくなりXmxます。maxMemory最大ヒープサイズを報告します。
totalMemory
Xmx
maxMemory