~/talk

They Do It With Mirrors – Java Process Memory in Microservices environment

slides:none on file

Production microservices randomly die because Linux OOM killer reaps Java processes after Java 8’s metaspace consumes native RAM; fat Spring Boot jars and shared libraries amplify RSS. Investigation uses top, free, jconsole, jstat, jcmd/jmap and Eclipse MAT heap dumps and Native Memory Tracking to find library-induced preloaded instances. Fixes: prune dependencies, convert shared fat jars to slim modules, set Xmx/Xms and -XX:MaxMetaspaceSize, and redeploy; result is metaspace reduction from gigabytes to megabytes and stable processes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53Microservices benefits
  3. 2:03Microservices complexity
  4. 2:52Memory
  5. 4:24Basics
  6. 4:47Native Memory
  7. 6:20Resident Memory
  8. 6:53Virtual Size Memory
  9. 8:25Java 8 Memory
  10. 8:41Demo
  11. 9:10Setting the scene
  12. 10:25The second motion
  13. 11:32What do we know
  14. 12:01Out of Memory Killer
  15. 14:10Container Memory Limits
  16. 15:32Memory Management
  17. 17:02Microservices Size
  18. 18:51Lessons Learned
  19. 19:08Clarification Jars
  20. 20:19Java 7 vs Java 8
  21. 20:55Metaspace
  22. 21:27Sample Order Service
  23. 21:56JVM Parameters
  24. 22:24Java 8 Meta Space Size
  25. 23:22Design and Implementation Decisions
  26. 25:34Resource Utilization
  27. 26:43Active Activity Monitor
  28. 27:03JConsole
  29. 27:21JVM Instrumentation
  30. 28:22GCUtil Allocation
  31. 28:38JCMD
  32. 28:59Heap Dump
  33. 29:38Leak Suspect Report
  34. 31:05Free Top
  35. 31:33Native Memory Tracking
  36. 32:16Cost Implications
  37. 33:28Memory Footprint
  38. 33:48Key takeaways
  39. 34:52A couplet
  40. 35:49Meta space
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.