This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<appender name="fileAppender" class="org.apache.log4j.RollingFileAppender"> | |
<param name="append" value="false"/> | |
<param name="file" value="server.log"/> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> | |
</layout> | |
</appender> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-09-19 15:26:37,309 ERROR: org.graylog2.indexer.Indexer - Could not read name of ES node. | |
java.lang.NullPointerException | |
at org.graylog2.indexer.Indexer.nodeIdToHostName(Indexer.java:152) | |
at org.graylog2.indexer.DeflectorInformation.getShardInformation(DeflectorInformation.java:108) | |
at org.graylog2.indexer.DeflectorInformation.getIndexInformation(DeflectorInformation.java:94) | |
at org.graylog2.indexer.DeflectorInformation.getAsDatabaseObject(DeflectorInformation.java:74) | |
at org.graylog2.periodical.DeflectorInformationWriterThread.run(DeflectorInformationWriterThread.java:67) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) | |
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testSingleExecute() throws Exception { | |
final NodeSummaryResponse r = new NodeSummaryResponse(); | |
r.transportAddress = "http://horst:12900"; | |
Node node = new Node(r); | |
AsyncHttpClientConfig.Builder builder = new AsyncHttpClientConfig.Builder(); | |
builder.setAllowPoolingConnection(false); | |
StubHttpProvider localProvider = new StubHttpProvider(); | |
AsyncHttpClient client = new AsyncHttpClient(localProvider, builder.build()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GetMessageResponse r0 = Api.get("/messages/" + index + "/" + id, GetMessageResponse.class); | |
GetMessageResponse r1 = Api.get("/messages/{0}/{1}", GetMessageResponse.class, index, id); | |
GetMessageResponse r2 = Api.get(GetMessageResponse.class) | |
.path("/messages/{0}/{1}") | |
.pathParams(index, id) | |
.execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
otter:jersey-netty kroepke$ curl -i -XGET http://localhost:12900/system?pretty=true | |
HTTP/1.1 500 Internal Server Error | |
Content-Length: 0 | |
Content-Type: [application/json] | |
X-Runtime-Microseconds: [560] | |
X-Exceptions-Thrown: [java.lang.IllegalStateException : 4] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
otter:jersey-netty kroepke$ curl -i -XGET http://localhost:12900/system/jvm?pretty=true | |
HTTP/1.1 200 OK | |
Content-Type: [application/json] | |
X-Runtime: [2922] | |
{ | |
"max_memory" : { | |
"bytes" : 1907032064, | |
"kilobytes" : 1862336, | |
"megabytes" : 1818 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
otter:jersey-netty kroepke$ curl -v -XGET http://localhost:12900/system?pretty=true | |
* About to connect() to localhost port 12900 (#0) | |
* Trying 127.0.0.1... | |
* connected | |
* Connected to localhost (127.0.0.1) port 12900 (#0) | |
> GET /system?pretty=true HTTP/1.1 | |
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5 | |
> Host: localhost:12900 | |
> Accept: */* | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -XGET http://localhost:12900/system/jvm | |
Jul 07, 2013 6:28:32 PM org.jboss.netty.channel.SimpleChannelUpstreamHandler | |
WARNING: EXCEPTION, please implement org.graylog2.jersey.container.netty.NettyContainer.exceptionCaught() for proper handling. | |
java.lang.NullPointerException | |
at org.graylog2.jersey.container.netty.NettyContainer.messageReceived(NettyContainer.java:120) | |
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) | |
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) | |
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server started with: | |
./src/redis-server --save "" # to disable background saves | |
with CONFIG SET pub-expires "no" | |
test-4.experimental.fra2:~/redis # for i in 1 2 3; do ./src/redis-benchmark -r 10000000 -t setex -e 1 -n 1000000 --csv ; done | |
"SET","54424.73" | |
"SET","52988.55" | |
"SET","53853.20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function renderElement(page, selector) { | |
var prevClipRect = page.clipRect; | |
page.clipRect = page.evaluate(function(selector) { | |
return document.querySelector(selector).getBoundingClientRect(); | |
}, selector); | |
var pic = page.renderBase64('png'); | |
page.clipRect = prevClipRect; |