Payara Feature: Diagnostics

  • Request Tracing – Find cause of slow app performance
  • MicroProfile OpenTracing Compatible
  • Slow SQL Logger – Detect and log slow SQL statements
  • SQL Tracing – Details to help you identify issues
  • SQL Trace Listeners – Develop custom auditing, error handling, and monitoring components

Features CatalogPayara Platform Documentation

Diagnostic Benefits

Why You’ll Want to Use Diagnostics

Find the Cause of Slow App Performance

The Request Tracing Service helps detect application slowness and performance degradation by logging requests that exceed a given threshold. The trace data from long-running requests gives insight to solving bottlenecks and other performance issues. The service is very lightweight and doesn’t impact performance when enabled. Therefore it provides authentic information about what’s going on in the application and how long it takes to finish. It’s compatible with the MicroProfile OpenTracing specification so you can use any data generated in any OpenTracing tool (such as Zipkin and Jaeger).

Improve App Performance

Payara Server includes capabilities to detect and log slow SQL queries executed via a connection pool. The Slow SQL logger monitors all queries executed on the connection pool and if they exceed a configurable execution time in seconds, a warning message is logged into the server log. The warning message logs the SQL query and the stack trace to the code executing the query to enable rapid diagnosis, pinpointing the exact lines of code to investigate.

Develop Custom Auditing, Error Handling, and Monitoring Components

Develop custom auditing, error handling, and monitoring components with SQL Trace Listeners. Payara Platform SQL Trace Listeners track calls to the database and can be enabled globally on a data source if the class implementing it is on the server’s classpath, or they can be enabled on application-specific data sources by including them in the application’s WAR or EAR file.

Identify Issues

SQL Tracing in the Payara Platform gives you a detailed look at what the application is doing to identify the cause of issues and a view of all queries performed.

Advanced Administration and Maintenance of Payara Server

After you’ve got familiar with administering Payara Server, having configured your domain and deployed your applications, you might find it useful to get some more information on features supporting maintenance and diagnostics of your domain in the longer term.

Download the Guide which summarises some very useful maintenance features of Payara Server:

  • Backing up and restoring
  • Slow SQL Logger
  • Request Tracing Service
  • MicroProfile Metrics
  • Execution of admin commands in batch
  • Monitoring
  • Deployment of multiple application versions

The guide features a demo on Application Versioning in Payara Server and lists some useful references to the detailed documentation material for Payara Server.

Download Guide

Get Started With Diagnostics

Learn How to Use Diagnostics in Payara Server

Monitoring Payara Server in Production

Once an application is running on Payara Server, it’s important to know when something is not working as expected, or if you’re experiencing performance issues. To find out what is going on and what could be improved, Payara Server provides several monitoring options.

Read More

Payara Server in Production

Once you have developed applications on Payara Server and moved these applications into a production environment, control will pass over to your operations teams. This guide introduces some features of Payara Server that you may not know about, which are especially useful for the operations teams.

Read More

Request Tracing in Payara Platform

Request tracing has been a feature in Payara Platform for a number of years now, and over time it has evolved and changed in a number of ways. The crux of what the feature is remains the same, however: tracing requests through various parts of your applications and the Payara Platform to provide details about their travels.

Read More

Remote EJB Tracing in Payara Server

RMI calls to an EJB hosted on Payara Server from a Java SE client have the active Span Context automatically propagated to the server, with a counterpart server-side span being created as a child of this client call.

Read More

All Diagnostic Resources

  • Advanced Administration and Maintenance of Payara Server Guide
    Advanced Administration and Maintenance of Payara Server Guide After you've got familiar with administering Payara Server, having configured your domain and deployed your applications, you might find it useful... guide
  • Manage and Operate Payara Platform on Cloud Learn about the cloud-native features for managing and operating the Payara Platform on cloud including support for  the major cloud platforms... guide
  • Payara Server in Production Ops Guide
    Payara Server in Production for Operations Teams Once you have developed applications on Payara Server and moved these applications into a production environment, control will pass over to your... Guide

Diagnostics and Monitoring Blogs

  • Ensuring Seamless Operations and Maximum Profitability: Key Insights on Application Server Efficiency and SLAs - Part 1 18 Jul 2024

    Robust and efficient application servers are essential for companies relying on software applications, whether these support e-commerce platforms, financial services portals or internal operations.  To help ensure smooth operations, deliver seamless services to users and generate revenue, it’s important that the runtime in place can offer maximum uptime to reduce cost while optimizing performance, profitability and user satisfaction.  In this blog post, we share insights from industry players on the impact of unexpected application server issues and downtime as well as how to reduce them.   

  • Request Tracing in Payara Platform 5.192 15 Aug 2019

    Request tracing has been a feature in Payara Platform for a number of years now, and over time it has evolved and changed in a number of ways. The crux of what the feature is remains the same, however: tracing requests through various parts of your applications and the Payara Platform to provide details about their travels.

  • Expanded Request Tracing Service in Payara Micro 21 Sep 2017

    As previously reported on this blog, the Request Tracing Service was improved drastically in release 4.1.1.171 and implemented the configuration of a historic trace record storing for increased productivity purposes. In addition to these changes, we also made the configuration on the Request Tracing Service in Payara Micro for the same release. These changes to Payara Micro make it simpler to configure the Request Tracing Service when starting a new instance!  

  • Payara Server 171 - Expanded Request Tracing 29 Mar 2017

    Since being introduced as a technical preview, the Request Tracing Service has been improved and polished to meet production quality requirements. In the latest Payara Server version 171, it was extended to allow tracing of more request types and more events that happen during the requests. It can also remember traces of the slowest 20 requests for viewing them later, though the number stored can be increased or decreased.

  • Request Tracing Service in Payara Server & Payara Micro 12 Sep 2016

    Have you ever wondered whether your application is slow to respond to requests? Which requests take the longest to respond to? And what you can do about it? Payara Server aims to provide the best tooling you would need to identify performance issues, identify their causes and help you solve them. One part of this tooling is the new Request Tracing service, available in Payara Server and Payara Micro from version 163 as a technical preview.  

  • Join Live Webinar Series - Boost Your System Performance: Troubleshoot Faster & Cut GC Waste 07 Oct 2024

    We’re excited to invite you to two informative webinars happening later this month, which we're running in collaboration with yCrash. During the first webinar, you will learn how to capture 16 essential artifacts that can dramatically improve your ability to troubleshoot production problems, ensuring faster resolution times. The second webinar dives into how enterprises unknowingly waste millions on garbage collection inefficiencies and provides 9 practical tips to optimize your application’s GC performance. Whether you're facing production issues or looking to enhance scalability, these sessions offer invaluable knowledge to streamline your approach and maximize your savings. Read on to find out more and register!

  • Ensuring Seamless Operations and Maximum Profitability: Key Insights on Application Server Efficiency and SLAs - Part 2 12 Aug 2024

    Robust and efficient application servers are crucial for companies relying on software applications, whether supporting e-commerce platforms, financial services portals, or internal operations. To ensure smooth operations and deliver seamless services to users, it's essential to partner with vendors who can provide a system runtime that offers maximum uptime. This reduces costs and optimizes performance, profitability, and user satisfaction. Effective service level agreements (SLAs) with these vendors play a key role in minimizing disruptions and ensuring that your applications run efficiently and reliably.  In this blog post, we share insights from industry players on what to look for in application runtime SLAs to minimize disruptions.

  • Ensuring Seamless Operations and Maximum Profitability: Key Insights on Application Server Efficiency and SLAs - Part 1 18 Jul 2024

    Robust and efficient application servers are essential for companies relying on software applications, whether these support e-commerce platforms, financial services portals or internal operations.  To help ensure smooth operations, deliver seamless services to users and generate revenue, it’s important that the runtime in place can offer maximum uptime to reduce cost while optimizing performance, profitability and user satisfaction.  In this blog post, we share insights from industry players on the impact of unexpected application server issues and downtime as well as how to reduce them.   

  • Watch the Recording: Effortless Jakarta EE Application Monitoring With Payara Monitoring Console 03 Aug 2023

    In this recorded webinar we explore how Payara Monitoring Console helps you streamline your Jakarta EE and MicroProfile application monitoring, troubleshooting, and management. Discover how the Payara Monitoring Console streamlines monitoring workflows, improves application performance, and enables faster incident response for your organisation.  

  • Monitoring JMX Using the Notification Service 11 Aug 2021

    Within Payara Server, the JMX system is used to store all the data that the monitoring service captures of the modules within the runtime. You can use any tool that can connect to the JMX system to collect these data and monitor the environment. Besides this direct access, the notifier service can send this information to various channels so that the data can be integrated with external systems.   The Notifier service is modular since October 2020 with version 5.2020.5 so that you can include only those notifiers that you are interested in and use within your environment. These notifiers cover a wide range of channels, from typical destinations like email, JMS Queues, over APM tools like DataDog and NewRelic to communication platforms like Teams, Slack, and Discord. In this blog, we take a look at enabling JMX Monitoring for the JVM Heap Size, monitoring the process Heap Size, and then sending that information to a Discord channel.

Features CatalogEcosystem Catalog

Back to top