[PJUG Javamail] Optimizing Java

Zack Radick zack at crc-corp.com
Tue Sep 29 13:56:58 EDT 2009


Vincent,
The modern JVM is highly tuned and many of the 
old ways of ensuring JVM optimization do not 
matter so much at this point (e.g. declaring your 
variables as final inside of a loop as opposed to 
declaring them outside is moot because the JVM 
will do the right thing).  However, there is 
still value to good coding and if you have 
inefficiencies in your algorithms it may make 
sense to spend some time cleaning them up 
(especially if someone actually wants to pay you 
to do so).  A good profiler can help you 
determine where in your application you are 
spending the most time and can potentially point 
you in the right direction.  I'm afraid I can't 
recommend anything specific as it depends on your 
environment, but I would encourage you to look 
into where your trouble spots are before you 
start investigating optimization to make the best use of your time.
--Zack

At 10:41 AM 9/29/2009, VY wrote:
>Thanks for the tips.
>However, this raised a question that I have had before I email the group.
>
>This link is 4 years old:
><http://java.sun.com/performance/reference/whitepapers/tuning.html>http://java.sun.com/performance/reference/whitepapers/tuning.html
>
>This book was published 9 years ago:
><http://www.amazon.com/exec/obidos/ASIN/0201704293/none0b69>http://www.amazon.com/exec/obidos/ASIN/0201704293/none0b69
>
>
>If I am using the latest JDK, are these resources still applicable?
>I did some search myself and I ran into a lot of these somewhat dated
>resources as well.
>
>It leaves me the impression that perhaps modern day Java VM is already
>VERY optimized as is.
>
>--Vincent
>
>
>
>
>On Tue, Sep 29, 2009 at 10:20 AM, Umesh Gohil 
><<mailto:gohilumesh at hotmail.com>gohilumesh at hotmail.com> wrote:
>May be this might help you
>
><http://java.sun.com/performance/reference/whitepapers/tuning.html>http://java.sun.com/performance/reference/whitepapers/tuning.html
>
>
>----------
>Date: Tue, 29 Sep 2009 10:09:01 -0700
>From: <mailto:richardj at lingosys.com>richardj at lingosys.com
>To: <mailto:javamail at pjug.org>javamail at pjug.org
>Subject: Re: [PJUG Javamail] Optimizing Java
>
>
>Vincent asks:
>
>" I have the need to optimize a server side Java application.  Is
>" there any good book, website or reference   that talks about
>" Java optimization?
>
>
>Maybe these things from a quick search will get you started:
>
><http://bdn.backbase.com/node/5253>http://bdn.backbase.com/node/5253
>http://www.amazon.com/exec/obidos/ASIN/0201704293/none0b69
><http://software.intel.com/en-us/articles/optimizing-java-on-intel-server-platforms/>http://software.intel.com/en-us/articles/optimizing-java-on-intel-server-platforms/
>http://www.borland.com/us/products/index.html
><http://www.excelsior-usa.com/jetserver.html>http://www.excelsior-usa.com/jetserver.html
>
>I think there's a local company that does 
>optimization (and obfuscation) tools but who 
>they are escapes me at the moment.  Good 
>luck.  Let us know what you come up with, maybe do a talk for a meeting.  :-)
>--
>Richard J.
>
>
>----------
>Insert movie times and more without leaving 
>Hotmail®. 
><http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009>See 
>how.
>
>_______________________________________________
>Web Site - <http://www.pjug.org/>http://www.pjug.org/
>Javamail mailing list
><mailto:Javamail at pjug.org>Javamail at pjug.org
>http://www.pjug.org/mailman/listinfo/javamail
>
>
>_______________________________________________
>Web Site - http://www.pjug.org/
>Javamail mailing list
>Javamail at pjug.org
>http://www.pjug.org/mailman/listinfo/javamail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20090929/49df25fe/attachment.html 


More information about the Javamail mailing list