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.
私のページ サイズは 10 GB に設定されています。.net API を使用して、使用可能なページ サイズが 25 % (つまり 2.5 GB) 未満かどうかを調べたいと思います。その場合、プロセスを強制終了します。
ヒントはありますか?
確認したいSystem.Diagnostics.Process.PagedMemorySize64場合、このプロパティは、プロセスが使用しているページメモリの量を示します。ハードキャップがある場合は、現在の使用量とそのキャップを計算し、必要に応じてプロセスを強制終了します。
System.Diagnostics.Process.PagedMemorySize64