[SOLVED] Unable to launch Metabase Application (heap memory)


#1

Hello,

I downloaded the Metabase Application recently, but unable to launch application.
Error log is appended below:

C:\metabase>java -jar metabase.jar
11-21 16:40:23 ←[1mINFO metabase.util←[0m :: Loading Metabase…
11-21 16:40:36 ←[1mINFO util.encryption←[0m :: Saved credentials encryption is D
ISABLED for this Metabase instance.
For more information, see https://www.metabase.com/docs/latest/operations-guide
/start.html#encrypting-your-database-connection-details-at-rest
11-21 16:41:41 ←[1mINFO metabase.core←[0m :: Starting Metabase in STANDALONE mod
e
11-21 16:41:41 ←[1mINFO metabase.core←[0m :: Launching Embedded Jetty Webserver
with config:
{:port 3000}

11-21 16:41:41 ←[1mINFO metabase.core←[0m :: Starting Metabase version v0.31.0 (
adf9a89 release-0.31.0) …
11-21 16:41:41 ←[1mINFO metabase.core←[0m :: System timezone is ‘Asia/Calcutta’

WARNING: any? already refers to: #'clojure.core/any? in namespace: monger.collec
tion, being replaced by: #'monger.collection/any?
11-21 16:41:54 ←[1mINFO metabase.core←[0m :: Setting up and migrating Metabase D
B. Please sit tight, this may take a minute…
11-21 16:41:54 ←[1mINFO metabase.db←[0m :: Verifying h2 Database Connection …
11-21 16:41:55 ←[1mINFO metabase.db←[0m :: Verify Database Connection …
11-21 16:41:55 ←[1mINFO metabase.db←[0m :: Running Database Migrations…
11-21 16:41:55 ←[1mINFO metabase.db←[0m :: Setting up Liquibase…
11-21 16:41:55 ←[1mINFO metabase.db←[0m :: Liquibase is ready.
11-21 16:41:55 ←[1mINFO metabase.db←[0m :: Checking if Database has unrun migrat
ions…
11-21 16:42:22 ←[1mWARN metabase.util←[0m :: auto-retry metabase.db$run_schema_m
igrations_BANG_$fn__15456@2679fd: Java heap space
11-21 16:42:22 ←[1mINFO metabase.db←[0m :: Setting up Liquibase…
11-21 16:42:22 ←[1mINFO metabase.db←[0m :: Liquibase is ready.
11-21 16:42:22 ←[1mINFO metabase.db←[0m :: Checking if Database has unrun migrat
ions…
11-21 16:42:48 ←[1mERROR metabase.core←[0m :: Metabase Initialization FAILED
java.lang.OutOfMemoryError: Java heap space
at java.util.Hashtable.rehash(Unknown Source)
at java.util.Hashtable.addEntry(Unknown Source)
at java.util.Hashtable.put(Unknown Source)
at sun.security.util.SignatureFileVerifier.updateSigners(Unknown Source)

    at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
    at sun.security.util.SignatureFileVerifier.process(Unknown Source)
    at java.util.jar.JarVerifier.processEntry(Unknown Source)
    at java.util.jar.JarVerifier.update(Unknown Source)
    at java.util.jar.JarFile.initializeVerifier(Unknown Source)
    at java.util.jar.JarFile.getInputStream(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour

ce)
at liquibase.resource.ClassLoaderResourceAccessor.getResourcesAsStream(C
lassLoaderResourceAccessor.java:53)
at liquibase.util.StreamUtil.singleInputStream(StreamUtil.java:186)
at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogPar
ser.java:27)
at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:
525)
at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.ja
va:490)
at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeL
og.java:368)
at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:293
)
at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogPar
ser.java:78)
at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:217)
at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1281)
at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1274)
at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:1270)
at metabase.db$has_unrun_migrations_QMARK_.invokeStatic(db.clj:147)
at metabase.db$has_unrun_migrations_QMARK_.invoke(db.clj:140)
at metabase.db$migrate_up_if_needed_BANG_.invokeStatic(db.clj:177)
at metabase.db$migrate_up_if_needed_BANG_.invoke(db.clj:168)
at metabase.db$migrate_BANG_$fn__15423.invoke(db.clj:288)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:747)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:717)
at clojure.java.jdbc$db_transaction_STAR_.invokeStatic(jdbc.clj:782)
at clojure.java.jdbc$db_transaction_STAR_.invoke(jdbc.clj:717)
11-21 16:42:48 ←[1mINFO metabase.core←[0m :: Metabase Shutting Down …
11-21 16:42:48 ←[1mINFO metabase.core←[0m :: Metabase Shutdown COMPLETE

Please help.


#2

What version of java do you have. Try with at least 8


#3

Already have java 8 in my system. Although the problem is solved by calling metabase.jar through different command.


#4

would be nice if you could share the command, that may help others :slight_smile:


#5

java -Xmx1g -jar metabase.jar

(Here 1g denotes Size for heap space in Gigabytes. Might be replaced with 2 or other intergers as per requirements)