File tree Expand file tree Collapse file tree
java/com/microsoft/azure/samples/perfsimjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# =============================================================================
2- # Performance Problem Simulator - Java Blessed Image
3- # GitHub Actions Workflow for Azure App Service Deployment
2+ # Performance Problem Simulator - Java
3+ # GitHub Actions Workflow for Azure App Service (Java SE on Linux)
44# =============================================================================
55
66name : Build and Deploy to Azure App Service
1313
1414env :
1515 JAVA_VERSION : ' 21'
16- AZURE_WEBAPP_NAME : perfsimjava3
16+ AZURE_WEBAPP_NAME : perfsimjava
1717 AZURE_RESOURCE_GROUP : rhamlettRG
1818
1919permissions :
Original file line number Diff line number Diff line change 11# =============================================================================
2- # Performance Problem Simulator - Java Blessed Image
3- # Dockerfile for Azure App Service Linux Container
2+ # Performance Problem Simulator - Java
3+ # Dockerfile for local development and testing
44# =============================================================================
55
6- # Use Microsoft's official Java 21 runtime image (matches Azure blessed image)
6+ # Use Microsoft's official Java 21 runtime image
77FROM mcr.microsoft.com/openjdk/jdk:21-ubuntu
88
99# Set working directory
Original file line number Diff line number Diff line change 1- # Performance Problem Simulator - Java Blessed Image
1+ # Performance Problem Simulator - Java
22
33A Java 21 Spring Boot application designed to simulate various performance problems for testing Azure App Service diagnostics and monitoring tools.
44
@@ -33,7 +33,7 @@ This application allows you to deliberately trigger different types of performan
3333
3434## Technology Stack
3535
36- - ** Runtime** : Java 21 (Blessed Image )
36+ - ** Runtime** : Java 21 (Built-in Linux Runtime )
3737- ** Framework** : Spring Boot 3.3
3838- ** Build** : Maven
3939- ** WebSocket** : STOMP over SockJS
@@ -42,13 +42,13 @@ This application allows you to deliberately trigger different types of performan
4242
4343## Deployment
4444
45- This application is designed to run on Azure App Service using the Java 21 Blessed Image on Linux.
45+ This application is designed to run on Azure App Service using the built-in Java 21 SE runtime on Linux.
4646
4747### GitHub Actions CI/CD (Recommended)
4848
49- 1 . Create an Azure App Service (Linux, Java 21)
50- 2 . Download the publish profile from Azure Portal
51- 3 . Add it as a GitHub secret named ` AZURE_WEBAPP_PUBLISH_PROFILE `
49+ 1 . Create an Azure App Service (Linux, Java 21 SE built-in runtime )
50+ 2 . Configure OIDC authentication (see [ Azure Deployment Guide ] ( /azure-deployment.html ) )
51+ 3 . Add GitHub secrets: ` AZURE_CLIENT_ID ` , ` AZURE_TENANT_ID ` , ` AZURE_SUBSCRIPTION_ID `
52524 . Push to ` main ` branch - the workflow will build and deploy automatically
5353
5454### Manual Deployment
Original file line number Diff line number Diff line change 100100 </dependencies >
101101
102102 <build >
103- <!-- Output JAR named 'app.jar' for Azure App Service blessed image compatibility -->
103+ <!-- Output JAR named 'app.jar' for Azure App Service deployment -->
104104 <finalName >app</finalName >
105105 <plugins >
106106 <plugin >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class PerfSimJavaApplication {
3939 public static void main (String [] args ) {
4040 // Print startup banner
4141 System .out .println ("=" .repeat (70 ));
42- System .out .println (" Performance Problem Simulator - Java Blessed Image (Java|21)" );
42+ System .out .println (" Performance Problem Simulator - Java (Java|21)" );
4343 System .out .println ("=" .repeat (70 ));
4444 System .out .println (" WARNING: This application intentionally causes performance problems!" );
4545 System .out .println (" Use only in controlled environments for training purposes." );
Original file line number Diff line number Diff line change 11# =============================================================================
2- # Performance Problem Simulator - Java Blessed Image
2+ # Performance Problem Simulator - Java
33# Spring Boot Application Properties
44# =============================================================================
55
Original file line number Diff line number Diff line change 11/* =============================================================================
2- Performance Problem Simulator - Java Blessed Image
2+ Performance Problem Simulator - Java
33 Charts Module (Chart.js Integration) - Updated for new layout
44 ============================================================================= */
55
Original file line number Diff line number Diff line change 11/* =============================================================================
2- Performance Problem Simulator - Java Blessed Image
2+ Performance Problem Simulator - Java
33 Dashboard Module (UI Logic)
44 ============================================================================= */
55
Original file line number Diff line number Diff line change 11/* =============================================================================
2- Performance Problem Simulator - Java Blessed Image
2+ Performance Problem Simulator - Java
33 WebSocket Client (STOMP over SockJS)
44 ============================================================================= */
55
You can’t perform that action at this time.
0 commit comments