Saturday, August 31, 2013

#define QCON_SP_2013 "SUCESSO!!!!"

Hi Internet!

The QCon in SP ended today =(  but the good news the event was a hit! It was very awesome!!! All the lectures and the presenters where very cool! I recommend you to take a look on the @QConSP (Twitter) and the in the slideshare for the slides to have a taste of how good it was =D I loved the agile presentations, they are very close to what I'm going to talk in AgileVale =D (and the others lecture I loved too =D@qmx rocks! )

Well, this is my device today =D Soon I will paste some open source project I created =D

Bye!

Wednesday, August 28, 2013

QCon SP 2013 , the Storm is arriving!

Hi internet!

Just showing my new presentation tomorrow (for early adopter ;) ) , just need to click on this link .

Bye! See you again!
Luan

Monday, August 26, 2013

Time for QCon in Brazil =D


Hi Internet!

29, 30 and 31st  is the day. WHAT!? You Forgot? The QCon in Brazil will be in this week =D Here the link to the web site of QConSP2013. QCon is an awesome event! Only great lectures of great people are there. I would recommend you to visit the InfoQ (here the link for portuguese version), it is in this site that you can find the QCon videos of lectures and the interviews as well. Also in the  InfoQ you can find others great lectures from other events and articles =D It is one of (if it isn't the best ) sources of great knowledge of many technologies.

Ow, I will have a small lecture in the 29th =) I will talk about Storm =DD The tittle is "Criando aplicações mais rápidas e distribuídas com Storm"  and the description about is the following:
O framework Storm pode ser traduzido como "Aplicações paralelas e
distribuídas de baixa latência de forma fácil". Nessa palestra será
dada uma rápida introdução a conceitos de Big Data que impulsionaram a
criação do Storm e a definição de sua arquitetura, além de exemplos
práticos da utilização do framework.
I will share the link here and then give good posts about it, I promise! =)

Bye!

Monday, June 24, 2013

JVM - Problems and Diagnosis, Part One


Hi folks,

In this post I want to give a quick guide over the JVM internals. I will describe about memory internals (the naming is following HotSpot, Oracle's JVM, and JVM specification, so the concepts can be applied in many different JVM vendors ). I will also talk some *unix tools that can help to solve a problem. I don't have intent for a deep tutorial and explaining how to tune a JVM, the objective is to give an overview that may help someone which encounter an odd problem with Java and also give some orientation where to get more information. Let's begin! (less talk and more action =) )

In this first part, let's try to understand some basic concepts/terms in JVM internals. Let's start with an overview of JVM memory:


click to enlarge

The diagram above summarize the basically structure of the JVM. In the Stack is a memory that each thread have that contains the Frames, like the state of each call you are doing in with that specific thread (each dotted rectangle is representing a thread). This guy you set using the -Xss JVM option (Also, you need to do some calculation to get the memory used by the JVM, one of them is multiplying the number of thread by the size of this memory pool). You can remind this space when you see StackOverFlowError, it happens due the JVM used the whole stack of that thread, so it will kill that thread due the failure to not keep running the process (due some bugs, the JVM can/could stop its own process due a crash, but the JVM stop is not a expected behavior).

There are some shared memory in the JVM. The Method Area (known as PermGen) is the area where the definition of classes and it meta information (for example the JIT references (JIT is the native code generated by the JVM which is faster than interpreted code)) are available. The PermGen can give OutOfMemory when you loaded too many classes. Like other features in the JVM, there are many options that you can use to optimize the throughput/latency.

But one of the most famous part of the JVM is the Heap. It is stored there the live objects. It is very complex (specially to optimize it, there are people who just work monitoring and enhancing the performance of JVM), so I will try to put in a simple way (removing some difficult concepts that it have). Basically when you create any object, the JVM will save it in the Heap, inside the Young area, and due it is very new, it will be in Eden space. If your object is not in use, it will be removed by Garbage Collector (GC) (this happens in all the spaces, only in the Stack space it doesn't). As the time goes, the objects are migrating to another spaces in the Heap. It will move to the Survivor Space (SS#1)(SS#2) and then (finally) to Old/Tenured Space. The expected JVM behavior is that each of those moves between spaces, less objects are removed. There is two special events associate with the Heap, I just called "removed" but there is two types of it (and a lot of things more in the following links): Scavenge and Stop-the-world events. The Scavenge is when the JVM do a normal job (removing objects of the Heap), but in some cases it need to guarantee that no thread will interfere in its job, so all thread stop working to the GC collect some objects in the Heap.

As I said, I will not cover too many details leaving some links and the comments section of this post to you can get further help. I will give some description with the link, that might help giving an preview what you will see.

#1 - http://en.wikipedia.org/wiki/Jvm#Heap - It is a very sumarized overview of the Heap, but the entire wiki page is very nice to you get a bit more familar of what happens inside your JVM. To get more familiar with some term used here and other details see also http://en.wikipedia.org/wiki/Java_performance .

#2 - http://www.slideshare.net/dougqh/jvm-internals-key-note and http://www.slideshare.net/caroljmcdonald/java-garbage-collection-monitoring-and-tuning - Very cool links. They cover most of things you might want to know about the JVM, such as memory spaces, collector's algorithms, JVM tuning and monitoring (the order of the links is due the complexity).

#3 - http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-2.html#jvms-2.5.3 - This is the JVM specification. The link is to the memory section, I would also suggest to take a look into the Table of Contents to give an idea of how big the JVM is http://docs.oracle.com/javase/specs/jvms/se7/html/index.html )

#4 - http://www.slideshare.net/aszegedi/everything-i-ever-learned-about-jvm-performance-tuning-twitter and http://www.slideshare.net/aragozin/garbage-collection-in-jvm-mailru-fin - These links are awesome! Unbelievable that we can find this kidn of thing in the internet =D! There presentes go very deep in the JVM internals subject. It is a good resource to see if you want to tuning a JVM and your Java application. If you like this subject, you can follow the site http://www.javaperformancetuning.com/ .

#5 - http://www.infoq.com/news/2013/03/java-8-permgen-metaspace - This link shows that some internals of JVM are changing in Java 7 (and much more in Java 8)

#6 - http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#available_collectors.selecting - This is a Oracle's guide of how to tune its JVM. See also this blog post https://blogs.oracle.com/jonthecollector/entry/our_collectors .

I have others links that I'd like to share, but I have to dig more in my bookmark.

I will post the next post I will cover problem solving aspects of JVM problems (how to identify and solve most of cases).

Goodbye internet!

Luan

Saturday, June 22, 2013

Spring cleaning

I will make some new posts soon! I will give an idea what is coming:

  • A JVM post
  • Cache post
  • Cloud post
  • English post (for Brazilian to learn english)
  • Camel post
  • and others =) 
Best regards!
Luan

Sunday, April 21, 2013

Presentations: an update


Hi guys!

An update:

I changed some links inside of the presentations that I made in JUDCon that to make more clear where the projects are in GitHub. Also I updated the main page of GitHub to have such information

Above the links of the presentations:

https://github.com/luan-cestari/judcon2013_bigdata
https://github.com/luan-cestari/judcon2013_switch
https://github.com/luan-cestari/judcon2013_fuseesb

Thanks for reading!
Luan

Note:
Hit 's' doring the presentation [1,2,3] to see some notes I put there. I also have a doc in Google Drive with many information, articles, videos and so on. I will format that and made it public available.
[1] http://luan-cestari.github.io/judcon2013_bigdata/#/
[2] http://luan-cestari.github.io/judcon2013_fuseesb/#/
[3] http://luan-cestari.github.io/judcon2013_switch/#/

Thursday, April 18, 2013

Three presentations in JUDCon 2013 Brazil


Hi Guys!!!!

Here are the links for the 3 presentations I made for JUDCon 2013 Brazil:

http://luan-cestari.github.io/judcon2013_bigdata/#/
http://luan-cestari.github.io/judcon2013_fuseesb/#/
http://luan-cestari.github.io/judcon2013_switch/#/

Hope you enjoy it =D Any question or an example you want from a specific technology, just call me that we can provide =D

[Note] Until JUDCon finish, there are not the last version yet ;) Have to wait a bit more to I execute the final "git push" =)

Saturday, March 30, 2013

I'm preparing a presentation about JBoss Fuse (http://fusesource.com/redhat/) that will be an overview and help to understand SOA patterns and how to use the main features of the product and its components.

Coming soon....