kovasb / session

repl into the clojurescript community
Eclipse Public License 1.0
459 stars 36 forks source link

Datomic silently fails with an out of memory error #36

Closed ethansr closed 10 years ago

ethansr commented 10 years ago

This should fix silent memory errors that occur when an attempt is made to create a new system database.

Creating the system database can cause an out of memory error from datomic. This error is suppressed by a the try/catch in the loop that waits for datomic to load.

IllegalArgumentExceptionInfo :db.error/not-enough-memory (datomic.objectCacheMax + datomic.memoryIndexMax) exceeds 75% of JVM RAM datomic.error/arg (error.clj:55)

The solution seems to be increase the max memory for the jvm.