-2

I found the following JVM argument in my working environment

-Xms12288m This specifies initial heap size

-Xmx12288m This specifies max heap size

one doubt here, If it reaches beyond this it will throw exception(Out of memory) ?

-Xns:3g what is this argument specifies?

Thanks in advance

Pydi
  • 77
  • 1
  • 5

3 Answers3

1

Here you find theOracle doc for commandline options. this explains -Xns:

-Xns sets the nursery size. the JRockit JVM uses a nursery when the generational garbage collection model is used, that is, when the dynamic garbage collector has determined that the generational garbage collection model should be used or when the static generational concurrent garbage collector ( -Xgc : gencon) has been selected. You can also use -Xns to set a static nursery size when running a dynamic garbage collector (-XgcPrio).

Jens
  • 67,715
  • 15
  • 98
  • 113
1

You can check out many options here : Which arguments stand for what in JVM memory options?

-Xns: sets the nursery size. the JRockit JVM uses a nursery when the generational garbage collection model is used, that is, when the dynamic garbage collector has determined that the generational garbage collection model should be used or when the static generational concurrent garbage collector ( -Xgc : gencon) has been selected. You can also use -Xns to set a static nursery size when running a dynamic garbage collector (-XgcPrio).

Community
  • 1
  • 1
Madhavan Malolan
  • 719
  • 6
  • 24
0

Run java -X and it will print help on all available -X options

Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275