APACHE SLING & FRIENDS TECH MEETUP

10-12 SEPTEMBER 2018

 

SLING MEMORY DEEP DIVE

@ValentinOlteanu, @AdobeCH

 

MEMORY

MEMORY

MEMORY

MEMORY

MEMORY

how much heap?

how much RAM?

how much page cache?

how to avoid OOM?

Full system dissection

RAM = 8GB

kernel = 200MB

/proc/meminfo [Slab + KernelStack + PageTables]

monitoring (logstash) = 800MB

heap = 4G

java -Xmx4G cq-quickstart

page cache = 2GB

/proc/meminfo [Active(file)]

Heap dissection

Xmx = 4GB

segment cache (256MB)

deduplication caches (200MB)

template cache (64MB)

link checker (72MB)

sling discovery (42MB)

datastore cache (36MB)

lucene (23MB)

sling servlet resolver (3MB)

replication (3MB)

felix service registry (2MB)

Page cache dissection

During normal operations

When "trashing"

During Online Revision Cleanup

It depends!

Heap

Page cache

  • on your system load (traffic)
  • on your content size (repository)
  • on your working set

How much?