The next thing to do is start the application service, but first, reload systemd so that it loads the new application you added.Īfter reloading, start the service and set it to start at startup: Set the maximum and minimum memory values allowed by the Java application ( -Xms128m and -Xmx256m )In my case
Sudo nano /etc/systemd/system/rviceĮxecStart=/usr/bin/java -Xms128m -Xmx256m -jar metabase.jar Grant this user ownership of the application directory: Sudo useradd -r -s /bin/false -g appmgr appmgr Next, we create a system user appmgr Use default group
How to run Java Jar applications with Systemd on Linuxįor simplicity, I will create a specific systemd service file for the configuration databaseįirst create a system group for the user. For a separate guide to running Java applications on systemd, see our blog. The best way to run Metabase is to initialize the system with Systemd, which is available on Debian 10 / Debian 9. Step 4: Configure Metabase Systemd service
This will launch the Metabase application with all default settings. $Ġ1-14 21:24:56 DEBUG plugins.classloader :: Using NEWLY CREATED classloader as shared context classloader: Ġ1-14 21:24:57 INFO metabase.util :: Loading Metabase.Ġ1-14 21:24:57 INFO metabase.util :: Maximum memory available to JVM: 483.4 MBĠ1-14 21:25:01 INFO util.encryption :: Saved credentials encryption is DISABLED for this Metabase instance. Run Metabase to use java Command to start the application.