
Thursday, December 15, 2011
Maven2 → Maven3 migration - real life example

Monday, December 05, 2011
FW: Garbage collection in HotSpot JVM
There is an excellent new post from Alexey Ragozin on JVM Garbage Collector:
http://www.dzone.com/links/r/garbage_collection_in_hotspot_jvm.html.
He posted almost all basics you should know about different types of GCs, how to enable them in HotSpot JVM and most importantly when to enable them.
Just go there and read it!
http://www.dzone.com/links/r/garbage_collection_in_hotspot_jvm.html.
He posted almost all basics you should know about different types of GCs, how to enable them in HotSpot JVM and most importantly when to enable them.
Just go there and read it!
Friday, November 25, 2011
HotSpot (64bit server) hangs on socket read (JVM 1.7 bug?) - updated
Few days ago I started working on some maven-based project (Java 1.7.0) on my new laptop (with Windows 7 64bit installed) and I noticed that very often Maven 3 was stuck downloading JARs from the internet even though my internet connection was fine. I started investigating this issue and after checking thread dump and binary dump (DMP) I think I found a bug in HotSpot for 64bit Windows.
Wednesday, November 23, 2011
GC and preformance tuning for Tomcat (from VMware)
Coming back to my previous post "Beware of your GC": just yesterday Daniel Mikusa from VMware published his post "Performance Tuning the JVM for Running Apache Tomcat" which adds some more interesting information complementing my post. You could find "Selecting a Collector" section specifically interesting e.g.:
Enjoy!
When you specify the option to run the concurrent collector, it is important to realize that garbage collection will happen concurrently with the application. This means that garbage collection will consume some of the processor resources that would have otherwise been available to the application. On systems with a large number of processors, this is typically not a problem. However, if your system has only one or two processors then you will likely want to enable the -XX:+CMSIncrementalMode option. This option enables incremental mode for the collector, which instructs the collector to periodically yield the processor back to the application and essentially prevents the collector from running for too long.
Enjoy!
Friday, November 18, 2011
Be aware of your GC

Friday, July 29, 2011
Friday, July 22, 2011
JDK 7 is finally out...

Here's the list of new features Java 7 will bring (consult JDK 7 project page for more details):
Features are listed in order, more or less, from lowest to highest in the overall JDK software stack.
For me one of the most interesting changes are "Small language enhancements" that come from project Coin.
The goal of Project Coin is to determine what set of small
language changes should be added to JDK 7. That list is:
- Strings in switch
- Binary integral literals and underscores in numeric literals
- Multi-catch and more precise rethrow
- Improved type inference for generic instance creation
(diamond) try
-with-resources statement- Simplified varargs method invocation
All Java developers have waited for this moment since December 2006 when JDK 6 was released. It was the longest and the most painful release in Java history. It took almost five years to do it while for previous versions the period between releases was more or less two years. Of course, five years waiting for new Java was the effect of many factors like problems of Sun (eventually bought by Oracle), making JDK an open source project and thus opening a pandora's box of non-open source licenses, etc.
But it's finally here.
Now we'll wait for JDK 8 with lambda expressions that were supposed to be delivered in version 7 but actually it's good that JDK guys decided to postpone some features to finally release it.
Enjoy and celebrate the new JDK 7.
Sunday, March 13, 2011
JBoss AS 5 Performance Tuning - book review
Some time ago I received a new book from Packt Publishing i.e. "JBoss AS 5 Performance Tuning". This book couldn't reach me at a better time - few weeks ago my team was also releasing a new software, web application deployed in JBoss 5.x. Let me just write that this books was very useful in this critical time.
Subscribe to:
Posts (Atom)