Hey
Jest jakiś sposób aby pobrać w programie aktualny rozmiar sterty (dostępny i zajęty).
// ( Coś takiego jest zrobione jako kontrolka w netBeansach. )
Hey
Jest jakiś sposób aby pobrać w programie aktualny rozmiar sterty (dostępny i zajęty).
// ( Coś takiego jest zrobione jako kontrolka w netBeansach. )
long heapSize = Runtime.getRuntime().totalMemory();
long heapMaxSize = Runtime.getRuntime().maxMemory();
long heapFreeSize = Runtime.getRuntime().freeMemory();
Dzięki
Pozdrawiam