This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-05
Channels
- # bangalore-clj (4)
- # beginners (16)
- # boot (4)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (177)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-russia (41)
- # clojure-spec (3)
- # clojure-uk (21)
- # clojurescript (46)
- # code-art (1)
- # datomic (10)
- # hoplon (125)
- # leiningen (1)
- # luminus (2)
- # lumo (1)
- # off-topic (10)
- # onyx (69)
- # re-frame (22)
- # reagent (4)
- # ring (32)
- # rum (6)
- # specter (2)
- # untangled (5)
How's things @jasonbell ?
morning.
hey all, have been playing around with Anglican lately, but I have run into a snag: multithreading seems to get throttled after 20 minutes of CPU time.
So when I am observing top, the CPU % hovers around 900-1000 then promptly drops to 100% after 20 minutes, pretty much every time.
Does anyone know what may be causing this? I suspect it could even be JVM options but I have not even the first clue how to debug this one...
@djtango We use this (with large hat tipping to @tcoupland @elise_huard and @acron )
: ${PEER_JAVA_OPTS:="-Daeron.term.buffer.length=33554432 -Xmx${XMX}m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$SANDBOX -XX:ErrorFile=hs_err_pid_%p.log -XX:+UseG1GC -Xloggc:gc_%p.log -XX:+PrintGCCause -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=2M -XX:+PrintGCDateStamps -server"}
on JVM startup of Mesos jobs, you may need to tinker with some of the output paths (ie remove $SANDBOX with your own path).That will give you an idea of heap/gc. Also worth opening up JMX port and running jconsole
against the application.
Wow thanks, @jasonbell
@djtango - Thank @tcoupland @elise_huard and @acron, they showed me š
@djtango just to confirm then you'd run java $PEER_JAVA_OPTS -cp myjar.jar path.to.class.main
etc
Does anybody else find themselves modifying the pages they're on when they find bugs? Just randomly browsing the web, notice that the content seems cut off, so I go & tweak the css to fix the bug. Chuckling to myself about how the css dev didn't consider that 200vh wouldn't be enough for all content on the site! I often borrow my girlfriends laptop and do this when she's confused by a page.
Haha, yes, I find myself doing that too from time to time