mentaaffinity.soliveirajr.com
MentaAffinity - Binding to Same Core
http://mentaaffinity.soliveirajr.com/mtw/Page/SameCore
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Binding To Whole Core. Binding To Same Core. Binding To Different Cores. Binding To Different Chips. Binding to the Same Core. Failed to load source code from svn: http:/ soliveirajr.com/svn/mentaaffinity/trunk/src/main/java/org/mentaaffinity/sample/BindToSameCore.java.
mentalog.soliveirajr.com
MentaLog - Performance Numbers
http://mentalog.soliveirajr.com/mtw/Page/Performance
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Of MentaLog was used for the performance test. MentaLog is very fast. It combines memory-mapped files, asynchronous logging through a lock-free queue. To be able to log a byte buffer with 100 bytes in around 65 nanoseconds on average. Plus it produces ZERO garbage! Yes ZERO garbage even in asynchronous mode). Here is the latest results on an i7 machine: (full machine specs here. Log Messages: 1,500,000. Min Time: 37 nanos.
mentalog.soliveirajr.com
MentaLog - Avoiding Autoboxing
http://mentalog.soliveirajr.com/mtw/Page/Autoboxing
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. If you pass a primitive variable to the log method, Java will automatically convert it to the corresponding wrapper object, in a process called autoboxing. Warnlog("This is a number:", 11222); / creates garbage because of autoboxing Warn.log("This is a number:", to sb(11222) ; / garbage-free version. Because the to sb method uses a StringBuilder pool, you can use it for as many parameters as you want in your log methods.
mentalog.soliveirajr.com
MentaLog - Colors
http://mentalog.soliveirajr.com/mtw/Page/Colors
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. If you are using a bash console or terminal, you can see a different color for each of the log levels. Here is the list of colors supported by a bash terminal:. FG BLACK=30 FG RED=31 FG GREEN=32 FG YELLOW=33 FG BLUE=34 FG VIOLET=35 FG CYAN=36 FG WHITE=37. So to change the color of a level, you can do:. Or you can pass the color code on startup for a level:. The default colors for the levels are:.
mentaaffinity.soliveirajr.com
MentaAffinity - Binding to Different Chips
http://mentaaffinity.soliveirajr.com/mtw/Page/DifferentChip
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Binding To Whole Core. Binding To Same Core. Binding To Different Cores. Binding To Different Chips. Binding to Different Chips. Failed to load source code from svn: http:/ soliveirajr.com/svn/mentaaffinity/trunk/src/main/java/org/mentaaffinity/sample/BindToDifferentChips.java.
mentalog.soliveirajr.com
MentaLog - Thread Pinning
http://mentalog.soliveirajr.com/mtw/Page/ThreadPinning
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. This feature is only available in the extended version. The producer thread (the one doing the logging) and the consumer thread (the one doing the writing) to isolated cpu cores. By doing that, latency is kept to a minimum as there are no thread interrupts and context switches. Also because the thread never leaves the cpu core, they can take better advantage of the L1 cache to make things even faster. The producer thread will ...
mentalog.soliveirajr.com
MentaLog - Interceptors
http://mentalog.soliveirajr.com/mtw/Page/Interceptors
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. You can intercept a logging operation just before it is flushed to the console or file. That will be useful if you for example want to implement a log server or send your logs to syslog. See the example below:. Then to add the interceptor you can do:.
mentalog.soliveirajr.com
MentaLog - Zero Memory Allocation and Zero Garbage Creation
http://mentalog.soliveirajr.com/mtw/Page/ZeroMem
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. This feature is only available in the extended version. MentaLog produces zero garbage, even in asynchronous mode, thanks to MentaQueue. That's very important if you want to avoid the latency produced by the Java garbage collector. You can test this by running the GCTest. Wrote 1,000,000 log lines to a file! Logs that allocated memory: 0 (0.0%). Logs that did not allocate any memory: 1,000,000 (100.0%).
mentalog.soliveirajr.com
MentaLog - Encoders
http://mentalog.soliveirajr.com/mtw/Page/Encoders
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Ideally any object would know how to transfer itself to a ByteBuffer. As fast as possible without producing garbage. You can make that happen with Encoder. MentaLog comes out-of-the-box with 5 encoders: one for CharSequence. Etc), one for Byte. Arrays, one for null. Objects, one for ByteBuffer. S and one for Throwable. S These encoders are included by default and you can see them by calling Log.getEncoders(). When an encoder d...
mentalog.soliveirajr.com
MentaLog - Debugging
http://mentalog.soliveirajr.com/mtw/Page/Debugging
I'm in a dialog. The confirmation message goes here. Edit comment: ( optional. Class and Line Number. For debugging purposes it can be easy to have along your logs the class name and the line number where the logging happened. You can easily turn that on with the -DlogShowClassAndLineNumber=true. Or by calling the static method Log.setShowClassAndLineNumber(true). Then when you log you will see something like:. 11:33:51.990-WARN- com.mypackage.MyClass. Out by setting up a filter.