Category Archives: JAVA

Print stacktraces for all threads on shutdown

If your microservice stops responding from time to time, and they only way out is to kill it with SIGINT or SIGTERM then adding a shutdown hook might be the way to go. Do note that this will not work … Continue reading

Posted in debugging, JAVA, JVM, Scala | 1 Comment

UDF/User Defined Functions in Cassandra 3.x

I was just playing around with Cassandra WRITETIME and thought it was somewhat difficult to figure out the date / timestamp of a number like this (microseconds since EPOC) 1470645914253000. So in my example it looked like this

So … Continue reading

Posted in Cassandra, JAVA | 1 Comment

Cassandra set the writetime explicitly with a PreparedStatement

This is a quick one, I wanted to set the writetime of a row explicitly when I populate the database for testing purposes. We use the writetime of a column to filter them out. It required some looking around to … Continue reading

Posted in Cassandra, JAVA, Scala | 1 Comment

DTrace;ing the JVM, useful tips

I am using DTrace from time to time and it is really nice, you can do a lot with it. This page is mostly a reminder to myself cause there are tons of pages out there if you google it, … Continue reading

Posted in debugging, DTrace, JAVA, JVM | Leave a comment