A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/azure/container-apps/java-overview below:

Java on Azure Container Apps overview

Azure Container Apps can run any containerized Java application in the cloud while giving flexible options for how you deploy your applications.

When you use Container Apps for your containerized Java applications, you get:

This article details the information you need to know as you build Java applications on Azure Container Apps.

Deployment types

Running containerized applications usually means you need to create a Dockerfile for your application, but running Java applications on Container Apps gives you a few options.

Type Description Uses Buildpacks Uses a Dockerfile Source code build You can deploy directly to Container Apps from your source code. Yes No Artifact build You can create a Maven build to deploy to Container Apps Yes No Dockerfile You can create your Dockerfile manually and take full control over your deployment. No Yes

Note

The Buildpacks deployments support JDK versions 8, 11, 17, and 21.

Application types

Different applications types are implemented either as an individual container app or as a Container Apps job. Use the following table to help you decide which application type is best for your scenario.

Examples listed in this table aren't meant to be exhaustive, but to help your best understand the intent of different application types.

Type Examples Implement as... Web applications and API endpoints Spring Boot, Quarkus, Apache Tomcat, and Jetty An individual container app Console applications, scheduled tasks, task runners, batch jobs SparkJobs, ETL tasks, Spring Batch Job, Jenkins pipeline job A Container Apps job Debugging

As you debug your Java application on Container Apps, be sure to inspect the Java in-process agent for log stream and console debugging messages.

Troubleshooting

Keep the following items in mind as you develop your Java applications:

Monitoring

All the standard observability tools work with your Java application. As you build your Java applications to run on Container Apps, keep in mind the following items:

Diagnostics

Azure Container Apps offers built-in diagnostics tools exclusively for Java developers. This support streamlines the debugging and troubleshooting of Java applications running on Azure Container Apps for enhanced efficiency and eases.

Scaling

If you need to make sure requests from your front-end applications reach the same server, or your front-end app is split between multiple containers, make sure to enable sticky sessions.

Security

The Container Apps runtime terminates TLS/SSL for you inside your Container Apps environment.

Memory management

To help optimize memory management in your Java application, you can ensure JVM memory fitting is enabled in your app.

Memory is measured in gibibytes (Gi) and CPU core pairs. The following table shows the range of resources available to your container app.

Threshold CPU cores Memory in Gibibytes (Gi) Minimum 0.25 0.5 Maximum 4 8

Cores are available in 0.25 core increments, with memory available at a 2:1 ratio. For instance, if you require 1.25 cores, you have 2.5 Gi of memory available to your container app.

Note

For apps using JDK versions 9 and lower, make sure to define custom JVM memory settings to match the memory allocation in Azure Container Apps.

Java components support

Azure Container Apps offers support for the following Java components as managed services:

Next steps

Launch your first Java app

Turn on Java Features


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4