@Deshmukh, Vijit , Thanks for good question. Firstly, Apologies for the delayed response from over the weekend.
Based on my understanding of your question, to set JVM runtime options (or allocated memory), you can create an app setting named JAVA_OPTS
with the options. App Service passes this setting as an environment variable to the Java runtime when it starts.
In the Azure portal, under Application Settings
for the Web app, create a new app setting named JAVA_OPTS (for Java SE) or CATALINA_OPTS (for Tomcat) that includes other settings, such as -Xms512m -Xmx1204m. Kindly refer this doc section 'Set Java runtime options' for more info.
---------
To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.