Skip to content

Unveiling the details of VirtualThreads, Java Profiler in 240 lines of pure Java

Photo of Benedikt Neumayr
Hosted By
Benedikt N.
Unveiling the details of VirtualThreads, Java Profiler in 240 lines of pure Java

Details

Dear Java enthusiasts,

We are delighted to announce our next Meetup at the Munich office.

This round starts with Miroslav Wengner who will guide us to the details of VirtualThreads which are new in Java SE 21, Dances with Threads: Unveiling the details of VirtualThreads.

And next Johannes Bechberger will give us an introduction to the fundamentals of Java profiling and how to get value out of it regarding analyzing performance on production, Write your own Java Profiler in 240 lines of pure Java.

All talks will be presented in English.

This event will only be available on site!
Don't miss out on this and RSVP to confirm your attendance.

Agenda:

  • 18:30 Walk in
  • 18:45 Food
  • 19:00 Talk 1 (see below)
  • 19:50 Break
  • 20:10 Talk 2 (see below)
  • 21:00 Drinks

First talk:
"Dances with Threads: Unveiling the details of VirtualThreads"
by Miroslav Wengner
Targeting the upcoming Java SE 21 release, VirtualThreads can perhaps play a game-changing role. Similar to structured concurrency framework or ScopedValues, which promises to simplify not only writing thread-per-request style multi-threaded application, but also to enforce the immutability of shared values across threads.

In this talk, we investigate the practical potential of proposed JEPs by example. Together we investigate the way to find meaningful measures while revealing information provided by profilers/monitoring. Whether you’re an experienced developer or just thinking about starting the journey, this talk will provide deeper understanding and inspiration to start threading dance in your own projects.

About Miro
Miro Wengner is an engineer with a passion for resilient distributed systems and product quality. He is a co-author and contributor to the Robo4J project (a reactive soft real-time framework for robotics/IoT). Miro contributes to OpenJDK and participates in other open source technologies. He uses his passion for helping build resilient and scalable solutions.

Miro was selected for the Java Champions Program, recognized as a JavaOne Rockstar, and elected to the Java Community Process (JCP) as an executive committee member.
Recently, Miro published his book Practical Design Patterns for Java Developers to help the community understand the benefits of the new Java enhancements.

In addition to his day-to-day duties as a principal engineer at OpenValue, he shares his knowledge at conferences (JavaOne, Devoxx, and so on) and in blogs. Miro believes in the Java ecosystem and helps move it forward!

Second talk:
"Write your own Java Profiler in 240 lines of pure Java" by Johannes Bechberger
Many people are afraid of Java profilers. But profilers aren’t rocket science: A usable Java profiler can be written in less than 300 lines of pure Java code, helping you to fix performance issues and add custom features fast.

This talk will give the fundamentals of Java profiling and how Java profilers typically work, followed by a detailed explanation of how to develop a functioning profiler in a few lines of Java code. This talk will also explain how you can use it in production to analyze performance issues and show briefly how to work with a widely used open-source profiler that is based on the same principles.

About Johannes
Johannes Bechberger (SAP) is a JVM developer working on profilers and their underlying technology in the SapMachine team at SAP. This includes improvements to async-profiler and its ecosystem, a website to view the different JFR event types, and improvements to the FirefoxProfiler, making it usable in the Java world.

He started at SAP last year after two years of research studies at the KIT in the field of Java security analyses. His work today is comprised of many open-source contributions and his blog, where he writes regularly on in-depth profiling and debugging topics.

Photo of OpenValue München group
OpenValue München
See more events
OpenValue GmbH
Sonnenstraße 22 · München, BY