Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Sichere ProgrammierungRefreshed repository pull requests page generally available(22.09.2026 um 03:25 Uhr)
Sichere ProgrammierungThe Joy of Learning the Basics Again(22.09.2026 um 03:28 Uhr)
Sichere ProgrammierungZero-Code OpenTelemetry Tracing for Dagster(22.09.2026 um 03:39 Uhr)
Linux Tipps & Hardening`prime-all`(22.09.2026 um 02:28 Uhr)
IT Security Toolsopensoho v0.15.2(22.09.2026 um 03:33 Uhr)
IT Security NachrichtenUS Proposes AI Incident Alert System in Talks With China, Bessent Says(22.09.2026 um 04:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Configuring Tomcat in Azure App Service: Increase maxParameterCount

When hosting Java web applications on Azure App Service using Tomcat, you might encounter issues with legacy Java applications due to the default maxParameterCount limit (1000). For legacy applications handling large forms or query…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

When hosting Java web applications on Azure App Service using Tomcat, you might encounter issues with legacy Java applications due to the default maxParameterCount limit (1000). For legacy applications handling large forms or query strings, this limit can block expected behavior and cause request failures.



In this guide, I'll walk you through a quick and effective way to increase the maxParameterCount parameter to 10000 using a custom startup script in Azure App Service.






Understanding the Problem



By default, Tomcat sets a limit of 1000 parameters that can be processed in a single HTTP request. This includes:




  • Form fields in POST requests

  • URL parameters in query strings

  • Multiple values for the same parameter name



When your application exceeds this limit, Tomcat will ignore additional parameters, potentially breaking your application's functionality without clear error messages.






Solution: Custom Startup Script



We'll create a startup script that:




  1. Modifies the server.xml configuration file

  2. Updates the maxParameterCount value

  3. Starts Tomcat with the new configuration






Step 1: Create a Startup Script



There are several ways to create and upload the startup script to your Azure App Service:






Option 1: Using the Kudu Console (Azure App Service Advanced Tools)




  1. Navigate to your Azure App Service in the Azure Portal

  2. Go to Development Tools > Advanced Tools > Go

  3. In the Kudu console, click on Debug console > SSH

  4. Navigate to the /home directory

  5. Click on the + button > New File and name it startup.sh

  6. Copy and paste the following script:




#!/bin/bash

# Update maxParameterCount from 1000 to 10000 in server.xml
set -e

SERVER_XML="/usr/local/tomcat/conf/server.xml"
NEW_VALUE="10000"

echo "[$(date)] Starting Tomcat configuration update..."

# Backup original file
cp "$SERVER_XML" "${SERVER_XML}.backup"
echo "[$(date)] Backup created."

# Update value
sed -i 's/maxParameterCount="1000"/maxParameterCount="'"$NEW_VALUE"'"/g' "$SERVER_XML"
echo "[$(date)] Updated maxParameterCount to $NEW_VALUE"

# Verify update
if grep -q "maxParameterCount=\"$NEW_VALUE\"" "$SERVER_XML"; then
echo "[$(date)] Configuration update successful"
else
echo "[$(date)] ERROR: Update failed, restoring backup"
cp "${SERVER_XML}.backup" "$SERVER_XML"
exit 1
fi

# Start Tomcat
echo "[$(date)] Starting Tomcat..."
exec catalina.sh run







  1. Save the file

  2. In the SSH console, run:




   chmod +x /home/startup.sh









Option 2: Using FTP/FTPS




  1. Set up FTP/FTPS credentials in your App Service (under Deployment Center > FTPS credentials)

  2. Create the script locally on your computer

  3. Upload the file to the /home directory using your preferred FTP client (like FileZilla)

  4. Connect to the Kudu SSH console as described above and run:




   chmod +x /home/startup.sh









Option 3: Using Azure CLI




  1. Create the script locally on your computer (e.g., startup.sh)

  2. Use Azure CLI to upload it:




   # Login to Azure
az login

# Set your subscription (if you have multiple)
az account set --subscription <your-subscription-id>

# Upload the file to the App Service
az webapp deploy --resource-group <your-resource-group> --name <your-app-name> --src-path startup.sh --target-path /home/startup.sh

# Connect to the App Service using SSH
az webapp ssh --resource-group <your-resource-group> --name <your-app-name>

# Inside the SSH session, make the script executable
chmod +x /home/startup.sh






This script performs the following operations:




  • Creates a backup of the original configuration file

  • Uses sed to replace the default value with our new value

  • Verifies the change was successful

  • Starts Tomcat with the updated configuration






Step 2: Configure App Service to Use the Script




  1. Navigate to your Azure App Service in the Azure Portal

  2. Go to Configuration > General settings

  3. In the Startup Command field, enter: /home/startup.sh

  4. Click Save






Verification and Testing



After deploying your changes:




  1. Check the application logs in Log stream to verify the script executed successfully

  2. Look for messages like: [date] Updated maxParameterCount to 10000 and [date] Configuration update successful

  3. Test your application with a request that contains more than 1000 parameters






Important Considerations




  • Always test configuration changes in a staging slot before deploying to production

  • This approach assumes you're using Tomcat on Linux in Azure App Service

  • The exact path to server.xml may vary depending on your Tomcat version and configuration

  • Consider security implications of increasing this limit, as very large requests could potentially be used in DoS attacks






Conclusion



By implementing this custom startup script, you can easily increase Tomcat's maxParameterCount to handle larger requests in your Azure App Service. This approach ensures the configuration is applied consistently each time your application starts, avoiding the need for manual intervention after deployments or service restarts.



For more complex scenarios or additional Tomcat configuration needs, you might consider creating a custom Docker image with your preferred settings pre-configured.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Configuring Tomcat in Azure App Service: Increase maxParameterCount

Thematisch verwandte Begriffe: Configuring, Tomcat, Azure, Service · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick