Martin Probst's weblog

Java Performance and Garbage Collection

Saturday, February 26, 2005, 13:23 — 0 comments Edit

I’ve never really read a lot about Java performance tweaking which is something I’m going to change in the future. Partially because of a new job that will presumably require these skills, partially because it’s just quite interesting to see what the guys at Sun and other companies did under the hood of the JVM.

There are two general areas, optimization of your code and tweaking of the JVM parameters. I found really interesting information about GC tweaking at Sun (they have a truly ugly stylesheet for that article, but Opera users can use the custom stylesheet …).

More about memory management can be found in this article about Soft-, Weak- and PhantomReferences. I hadn’t heared about these and the package java.lang.ref at all before. Looks very interesting especially for server applications that need caches.

So far about memory management. I’m still lacking information about performance programming dos and don’ts. Apart from general stuff programmers should know (virtual functions, allocation/deallocation, …) I haven’t read much about things in Java. Can anyone recommend me a good book about java performance programming?


No comments.