[PJUG Javamail] Optimizing Java

Joe Hoffman joe at intelopment.com
Tue Sep 29 14:52:33 EDT 2009


For Server side, multi-threaded, complex, transactions with remote  
RMI, Web Services calls, JMX asynch components, etc,   normal  
profilers are just too heavy and incapable of handling the complexity  
that exists in most server side java environments.

Check out dynatrace,  it was designed from the ground up to handle  
complex appServers, including when the transaction runs across the  
network, anywhere in the world, including alternate threads, etc.

Disclaimer: I work for dynatrace and when I"m not playing racquetball,  
I spend most of my waking hours debugging performance problems on java  
and .NET Web apps.

joe Hoffman


On Sep 29, 2009, at 11:14 AM, Zack Radick wrote:

> Vincent,
> Unfortunately nobody has wanted to pay me to optimize our software  
> recently, so I haven't had much chance to work with a profiler in  
> the last few years.  I used JProfiler a number of years ago and it  
> did what I needed at the time.  JBoss has some built-in profiling  
> that is using JMX data, but I haven't had a chance to play with it  
> much so I can't say how useful it is.  Perhaps someone who has had a  
> chance to do profiling recently can give some suggestions.  What  
> specifically are you trying to profile (e.g. JEE app on JBoss 4.2,  
> stand-alone client/server apps, a WAR on Tomcat...)?
> Good luck!
> --Zack
>
> At 11:02 AM 9/29/2009, VY wrote:
>> Zack:  Thanks for your reply.
>>
>> What is a good and widely used Java profiler?
>> I saw those MxBeans classes in Java 1.5 and 1.6 and was thinking of  
>> using them.
>> So wondering if those are the profiling you are referring to.
>>
>>
>>
>>
>> On Tue, Sep 29, 2009 at 10:56 AM, Zack Radick <zack at crc-corp.com>  
>> wrote:
>> 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
>>>
>>> This book was published 9 years ago:
>>> 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 <gohilumesh at hotmail.com 
>>>  > wrote:
>>> May be this might help you
>>>
>>> http://java.sun.com/performance/reference/whitepapers/tuning.html
>>>
>>> Date: Tue, 29 Sep 2009 10:09:01 -0700
>>> From: richardj at lingosys.com
>>> To: 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://www.amazon.com/exec/obidos/ASIN/0201704293/none0b69
>>> 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
>>>
>>> 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®. See how.
>>> _______________________________________________
>>> Web Site - http://www.pjug.org/
>>> Javamail mailing list
>>> 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
>>
> _______________________________________________
> 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/d59485cf/attachment.html 


More information about the Javamail mailing list