java - Run jar as a webapp on Azure -


i able run metabase.jar on machine (w10), , need try on azure, because it's have sql server.

metabase.jar: metabase.com/start/

i couldn't myself (closure , jetty new me).

on azure, tried:

  • create web app;
  • set java 8 , jetty 9.1;
  • failed run metabase.jar.

based on understanding, think want deploy metabase.jar file web application on azure webapps on local. followed article upload metabase.jar file directory wwwroot/bin created via kudu console , create & configure wwwroot/web.config below start app.

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <handlers>             <add name="httpplatformhandler" path="*" verb="*" modules="httpplatformhandler" resourcetype="unspecified" />         </handlers>         <httpplatform processpath="%programw6432%\java\jdk1.8.0_60\bin\java.exe" arguments="-djava.net.preferipv4stack=true -dport.http=3000 -jar &quot;%home%\site\wwwroot\bin\metabase.jar&quot;" stdoutlogenabled="true" startupretrycount='10'>         </httpplatform>     </system.webserver> </configuration> 

the result of deployment can't startup without error. seems app restart azure webapp because of reasons, such resource exceeded quotes not enough memory or unable connect metabase db. while scaled tier testing webapp small large, issue still occured. please see figures below.

enter image description here

enter image description here

so think seems deploy metabase on azure via using docker or virtual machine. hope helps.


Comments