Fork me on GitHub
#clojure-uk
<
2017-03-05
>
jasonbell09:03:05

good thanks, you?

djtango12:03:46

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.

djtango12:03:15

So when I am observing top, the CPU % hovers around 900-1000 then promptly drops to 100% after 20 minutes, pretty much every time.

djtango12:03:47

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...

jasonbell13:03:58

@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).

jasonbell13:03:36

That will give you an idea of heap/gc. Also worth opening up JMX port and running jconsole against the application.

jasonbell13:03:03

And you can ignore, -Daeron.term.buffer.length=33554432, I need that one only

jasonbell13:03:27

@djtango - Thank @tcoupland @elise_huard and @acron, they showed me šŸ™‚

djtango13:03:41

:) awesome thanks guys!

jasonbell13:03:15

@djtango just to confirm then you'd run java $PEER_JAVA_OPTS -cp myjar.jar path.to.class.main etc

djtango13:03:02

šŸ™‚ thanks, will admit had to lookup github

dominicm19:03:25

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.

yogidevbear20:03:27

Haha, yes, I find myself doing that too from time to time

glenjamin20:03:53

i especially do it when iā€™m printing a recipe