Is it possible to increase the size of the java process (when it works)?

I have a very important process. I can not stop it and increase the size of the java process! Is there a way to increase the size of my java process online (at runtime)?

+4
source share
3 answers

At runtime, you can increase the following.

  • number of threads
  • amount of memory used by the stack (but the maximum size of a single stack)
  • amount of memory used
  • number of files displayed in memory
  • shared libraries.

, , . , . , , .

+5

-Xmx Java (mx). Java- Java, JVM , Java. :

  • (JIT: ​​ed)
  • ( jar class)
  • java
  • (malloc: ed JNI)

, , , . , .

!= Committed

( ) , , .

-Xmx, , !

+1

, IDE. : eclipse edit eclipse.ini

-Xms<size> - 2048m
-Xmx<size> - 2048m

depending on the size of your RAM.

Hope this helps.

-1
source

Source: https://habr.com/ru/post/1569522/


All Articles