Skip to content

Instantly share code, notes, and snippets.

View zaharidichev's full-sized avatar

Zahari Dichev zaharidichev

View GitHub Profile
2017-01-04 07:45:46
Full thread dump OpenJDK 64-Bit Server VM (25.111-b14 mixed mode):
"Attach Listener" #118 daemon prio=9 os_prio=0 tid=0x00007f5038029800 nid=0xb3 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"MqConsumer-getTokenInfo-22" #117 prio=5 os_prio=0 tid=0x00007f501ca37800 nid=0x7c waiting on condition [0x00007f4fd55d6000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000009519ddf0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
2017-01-04 08:09:06
Full thread dump OpenJDK 64-Bit Server VM (25.111-b14 mixed mode):
"Attach Listener" #118 daemon prio=9 os_prio=0 tid=0x00007f5038029800 nid=0xb3 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"MqConsumer-getTokenInfo-22" #117 prio=5 os_prio=0 tid=0x00007f501ca37800 nid=0x7c waiting on condition [0x00007f4fd55d6000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000009519ddf0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
{
"id": "4302b00c-5aea-43d5-9967-54b5cbda3a92",
"alertTrigger": {
"id": "0d59d72b-41b7-43e5-bf7a-48aa4f34bd8d",
"userId": "dummyUserId",
"fromLocations": [
{
"locationName": "dummy",
"locationId": "dummy",
"type": "AIRPORT"

Discount Store Service

This is a simple REST service written in Spring Boot which returns a list of the popular purchases for a particular user. When the endpoint /api/recent_purchases/:username a response such as that is returned:

[
  {
    "id": 201074,
    "face": "(•◡•)/",
 "price": 604,
INFO] --- groovy-maven-plugin:2.0:execute (start-test-broker-A) @ amqp-client ---
erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
GEN virgin-node-tmpdir
erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
../rabbit_common/erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
../rabbit_common/erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
../rabbit_common/erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
../rabbit_common/erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
../rabbit_common/erlang.mk:24: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
object PlacingRooks {
sealed trait Color
case object White extends Color
case object Black extends Color
case class Rook(x:Int, y:Int, color: Color)
def main(args: Array[String]): Unit = {
val boardOfRooks = for {
x <- 1 to 2048
public static final specialization.PlacingRooks$Rook $anonfun$main$2(int, int);
Code:
0: new #22 // class specialization/PlacingRooks$Rook
3: dup
4: iload_0
5: iload_1
6: getstatic #103 // Field specialization/PlacingRooks$White$.MODULE$:Lspecialization/PlacingRooks$White$;
9: invokespecial #106 // Method specialization/PlacingRooks$Rook."<init>":(IILspecialization/PlacingRooks$Color;)V
12: areturn
object PlacingRooks {
sealed trait Color
case object White extends Color
case object Black extends Color
case class Rook[T](x:T, y:T, color: Color)
def main(args: Array[String]): Unit = {
val boardOfRooks = for {
x <- 1 to 2048
public static final specialization.PlacingRooks$Rook $anonfun$main$2(int, int);
Code:
0: new #22 // class specialization/PlacingRooks$Rook
3: dup
4: iload_0
5: invokestatic #106 // Method scala/runtime/BoxesRunTime.boxToInteger:(I)Ljava/lang/Integer;
8: iload_1
9: invokestatic #106 // Method scala/runtime/BoxesRunTime.boxToInteger:(I)Ljava/lang/Integer;
12: getstatic #109 // Field specialization/PlacingRooks$White$.MODULE$:Lspecialization/PlacingRooks$White$;
15: invokespecial #112 // Method specialization/PlacingRooks$Rook."<init>":(Ljava/lang/Object;Ljava/lang/Object;Lspecialization/PlacingRooks$Color;)V
num #instances #bytes class name
-------------------------------------------------------------------------------
1: 8827741 141243856 java.lang.Integer
2: 4194304 100663296 specialization.PlacingRooks$Rook
3: 169776 24354616 [Ljava.lang.Object;