Modern JVM's pick default heap sizes based on the physical memory in
your machine. With more than 1GB of physical memory, initial heap is
1/64 and maximum heap is 1/4 of physical memory.[1]
For OpenJDK and Oracle, this command:
java -XX:+PrintFlagsFinal -version | grep HeapSize
will show the
(System/getenv DATABASE_URL) is returning nil. This will happen when
the system environment variable DATABASE_URL is not defined.
- Bruce
On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote:
I am going through this Heroku
tutorial [1]https://devcenter.heroku.com/articles/clojure-web-applicati
Your project.clj file contains
(defn -main
([] (-main ))
([port] (run-jetty app {:port (Integer. port)})))
near the end of the defproject form. That's not right.
I'm not quite sure what question to ask here. The (defn -main ...)
belongs in a source file, not in the project.clj.
In this line:
(if TRACE (do (println [:OFACTS (count ofacts)])
(clojure.stacktrace/e)))
the StackOverflowError must be occurring in the evaluation of ofacts.
The error breaks out of the evaluation, preventing
(clojure.stacktrace/e) from being evaluated. The error sends you back to
the
Even for a web site used exclusively by people, fail fast when
overloaded can be good. You would rather give an error (one hopes a
gee, so sorry, we having some trouble right now page) to some users
rather than be extremely slow for many users.
What do I do when I get a slow web page? I hit
Some fun (for some value of fun) vaguely related history: A fix has gone
into IBM Java 1.7 for a crash triggered by Leiningen.
see: http://www-01.ibm.com/support/docview.wss?uid=swg1IV32629 (where
Clojure is misspelled)
and https://github.com/technomancy/leiningen/issues/954.
- Bruce