5

I'm running experiments with different jvm options on java 8 in order to lower RSS:

Output (partial for Thread area):

-                    Thread (reserved=130696KB -21564KB, committed=130696KB -21564KB)
                            (thread #121 -21)
                            (stack: reserved=130048KB -21504KB, committed=130048KB -21504KB)
                            (malloc=379KB -67KB #610 -105)
                            (arena=268KB +7 #240 -42)

Question: What memory will be taken into account for RSS from output above, is it committed or reserved?

janih
  • 2,214
  • 2
  • 18
  • 24
Petro Semeniuk
  • 6,970
  • 10
  • 42
  • 65

1 Answers1

4

The relation between reserved/committed and resident/virtual is a little more complex. RSS covers pages resident in physical memory. Things that have been paged out (or never paged in) can be committed memory but not resident.

Maybe this answers your question: reserved-but-not-committed pages cannot be resident.

Eugene
  • 117,005
  • 15
  • 201
  • 306
the8472
  • 40,999
  • 5
  • 70
  • 122