The video on-demand of this session is available to logged in QCon attendees only. Please login to your QCon account to watch the session.

Session + Live Q&A

Using Shared Memory-Mapped Files in Java

  • Unsafe in Java 8
  • Project Panama in Java 17 and Java 19
  • Practical uses with code examples
  • Simple demo using Panama
  • Event Sourcing using shared memory with Chronicle Queue

Main Takeaways

1 Hear about Project Panama, Chronicle Queue, and interactions between the JVM and code written in other languages.

2 Learn to consider other options to write applications in Java.

What are you working on these days?

We're focusing very much on making our software as deployable and manageable as possible. In the past, we've focused on making it super fast and it's easy to use, but now we're very much shifting towards ease of deployment and manageability.

And what are the goals for your session?

It's really about challenging expectations, one of my frustrations when people talk about latency, they are talking about milliseconds, which is a red flag for me. Instead, we do everything in microseconds and sometimes nanoseconds.

It’s all too common to stop tuning code when it’s good enough or meets your expectations. I have published benchmarks even for competitors’ products at half the latency they publish by improving the way the product is tested and tuned.

What is it that you would like people to leave with after watching your session?

People to think differently about what is achievable with software, different ideas of what's possible, in Java in particular. 


Peter Lawrey

CEO @Chronicle_SW

Peter Lawrey has the most answers for concurrency and memory in, and the second-highest for Java.Peter is a Java Champion, the CEO of Chronicle Software and the architect of OpenHFT libraries downloaded from 15K different IP addresses each month.

Read more
Find Peter Lawrey at:


Wednesday May 18 / 11:20AM EDT (50 minutes)


Performance & Mechanical Sympathy


JavaJVMProgramming Languages


Slides are not available

Add to Calendar

Add to calendar


From the same track

Session + Live Q&A Java

Java Flight Recorder as an Observability Tool

Wednesday May 18 / 09:00AM EDT

Please note: this presentation will not have a live Q&AJDK Flight Recorder (JFR) is one of the best sources of telemetry and monitoring data for the JVM. However, it has not achieved particularly widespread usage - many Java engineers do not use it regularly and those that do frequently only...

Ben Evans

Java Champion, Author of "Java in a Nutshell"

Session + Live Q&A Java

Jedi Wisdom for Cloud Performance: Sympathize with Hardware, You Must!

Wednesday May 18 / 12:30PM EDT

This is part 1 in a series of talks covering Padawan Monica Beckwith’s hands-on practical experience over the last two decades. Monica, who has trained with many Knights and a few Masters, will cover what it means to be sympathetic to the underlying hardware in Scaling Up and Scaling Out...

Monica Beckwith

Java Champion, First Lego League Coach, passionate about JVM Performance @Microsoft

Session + Live Q&A Java

Understanding Java Through Graphs

Wednesday May 18 / 10:10AM EDT

Many people will know that when you use Java you compile your application using the javac compiler to a data structure called bytecode. Many people will also be familiar with a data structure called an abstract-syntax-tree, or AST, which is the way that the Java compiler represents your Java...

Chris Seaton

Researcher (Senior Staff Engineer) @Shopify

View full Schedule