Skip to content

Instantly share code, notes, and snippets.

package io.vertx.starter;
import java.util.Date;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
@tcataldo
tcataldo / WsTests.java
Created July 7, 2021 21:56
OutOfMemory reproducer
package net.bluemind.github.gist;
import java.util.Date;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
/* BEGIN LICENSE
* Copyright © Blue Mind SAS, 2012-2017
*
* This file is part of BlueMind. BlueMind is a messaging and collaborative
* solution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of either the GNU Affero General Public License as
* published by the Free Software Foundation (version 3 of the License).
*
@tcataldo
tcataldo / gist:c0b6b3dfec9823bf6523
Created January 14, 2015 13:51
mailspool index template, with mapping
{
"mailspool":{
"template":"mailspool*",
"settings":{
"index":{
"analysis":{
"analyzer":{
"default":{
"tokenizer":"standard",
"filter":[
Jan 28, 2014 6:03:51 PM io.netty.util.ResourceLeakDetector reportLeak
SEVERE: LEAK: ByteBuf.release() was not called before it's garbage-collected.
Recent access records: 3
#3:
io.netty.buffer.AdvancedLeakAwareByteBuf.getBytes(AdvancedLeakAwareByteBuf.java:223)
io.netty.buffer.WrappedByteBuf.getBytes(WrappedByteBuf.java:289)
org.vertx.java.core.buffer.Buffer.getBytes(Buffer.java:178)
org.vertx.java.core.buffer.Buffer.getBuffer(Buffer.java:187)
org.vertx.java.core.parsetools.RecordParser.parseDelimited(RecordParser.java:179)
org.vertx.java.core.parsetools.RecordParser.handleParsing(RecordParser.java:156)