netrunner
netrunner copied to clipboard
Empty stacktraces
I've noticed many exceptions in the server log and issue reports are coming up with empty stack traces; see #1699 for an example. I looked into this a little, and it seems to be a JVM optimization, by which the VM can reuse exception objects and not actually fill in the stack trace (expensive) if a particular method has thrown many exceptions (see http://yellerapp.com/posts/2015-05-11-clojure-no-stacktrace.html). This is problematic for us. There seems to be an easy solution when launching the game server uberjar: add the flag -XX:-OmitStackTraceInFastThrow when invoking java. This is already done when launching the app with lein, but needs to be done by hand when invoking the compiled uberjar.