May 10 2012

An Insight Into Tuning Java-JVM via ColdFusion

Posted by Mike Brunt at 7:01 AM
53 comments
- Categories:

I was sitting here this morning thinking of all the things I have seen relating to server performance over the past 11 years, since I first was brought on board by Allaire Corporation as a ColdFusion-Spectra consultant. This was prior to the Java based version of ColdFusion and I recall well the transition to Java that occurred when the version changed from ColdFusion 5 to ColdFusion MX 6 rapidly followed by ColdFusion MX 6.1 which included the first fully J2EE certified version of JRun, JRun4 if I recall that correctly.  The main point here though was the transition to Java using JRun4 as the underlying container, that changed server tuning and troubleshooting dramatically and for the better after a learning curve.

With JRun and Java we have much more access to underlying and critical settings relating to thread and memory and I wanted to share what I look for in improving server performance or solving critical issues relating to performance and stability.

My first interest is always with the Java Virtual Machine (JVM) most clients I have helped have the Sun (Oracle) JVM which is the one shipped with ColdFusion.  I start there because it literally is the "engine room" of everything.  I use garbage collection logging to see exactly what is going on there by adding these arguments to the jvm.config file...

-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:cfwhispererGC.log

What I am looking for in the resulting log file is how many garbage collections are going on, how many full garbage collections (Full GC's) are going on and how long those Full GC's are taking.  Here are two actual examples from my work showing what I have found to be a bad situation and also what I have found to be a good situation after tuning...

  • First the bad results
  • Garbage collections per minute = 39
  • Full GC's per minute = .61
  • Full GC duration 2.6 seconds
  • Now the good results
  • Garbage collections per minute = 4.3
  • Full GC's per minute = .06
  • Full GC duration 230 milliseconds

I also want to make sure that the permanent generation is not filling up, which it almost always is.  Ideally we do not want the permanent generation to top 70% used.

Next I focus on the efficiency of threads.  To observe this I used JRun metrics logging, I created a blog piece to show how this is enabled here.  The efficient processing of threads is critical and we need to get to a point where the busy thread number is always low, where the number of handled threads per minute is high and where there are no delayed threads.  

These are the things I look for and at in all of my work and I wanted to give an overall insight into to what I do in case it helps others.

Comments

David

David wrote on 05/10/12 1:31 PM

Thanks Mike,

Your probably already aware of this, but HPJMeter does a brilliant job of visualising GC logs.

Dave
Mike Brunt

Mike Brunt wrote on 05/11/12 7:06 AM

Thank you Dave for that tip, we use VisualVM a lot also.
Bernie

Bernie wrote on 05/14/12 7:47 AM

Don't stop being an optimist! The good results exceed the bad ones! Otherwise the future development wouldn't be possible!
Carl

Carl wrote on 05/15/12 5:54 PM

gcviwer tool from tagtraum can be handy for visualising JVM logs.
Carl

Carl wrote on 05/15/12 6:04 PM

gcviewer (pardon my typo above) http://www.tagtraum.com/gcviewer.html
rak toko swalayan murah

rak toko swalayan murah wrote on 06/17/12 10:04 AM

This posting is very cool and interesting post.This is a great inspiring article.I am very much pleased with your good work.You put really very helpful information in this site.

http://www.rakminimarket.com

therefore, I would like to thank you for the efforts you have made in writing this article.
timer-online.com

timer-online.com wrote on 08/23/12 11:51 PM

Cold Fusion always been a good support to web app developers like me and many. Earlier we all have had a tough time porting and pulling data, but Fusion does it all the easy way for us, HTML pages can be connected to any database in ease. Thanks to by Jeremy and JJ Allaire for the build we enjoy.
roofers el cajon

roofers el cajon wrote on 08/28/12 12:37 AM

When having some challenges and problems, it is best to brainstorm among the them and continue moving forward. totally a great one in here indeed.
www.acnesolution101.com

www.acnesolution101.com wrote on 09/25/12 5:37 AM

“Story time” might not be famous as “Yellow Submarine” but still this is another highly influential film that reflected the explosion of creativity in Animation. Terry Gillian is a genius and his works are amazing.
online kartenspiele

online kartenspiele wrote on 10/24/12 4:58 AM

I cannot get the sock down to forty stitches. I have taken to decreasing my stitches instead.
sizzling hot kostenlos spielen

sizzling hot kostenlos spielen wrote on 10/26/12 3:24 AM

Here I would say my big thanks to the writer of the site for having such nice collections which are totally intresting and informative for me.Thanks a lot again!!
sizzling hot kostenlos spielen

sizzling hot kostenlos spielen wrote on 10/26/12 3:25 AM

To write a such kind of article is really awesome,I daily read your blogs and give my comments for that here this article is too great and so interesting.
sizzling hot kostenlos spielen ohne anmeldung

sizzling hot kostenlos spielen ohne anmeldung wrote on 10/26/12 3:30 AM

Good article with well description about the topic Java-JVM via ColdFusion has been shared with us!!
chip runner

chip runner wrote on 10/29/12 2:50 AM

lad to visit your blog, I seem to be forward to more good articles and I believe we all love to thank so many good articles, blog to share with us.
chip runner kostenlos spielen

chip runner kostenlos spielen wrote on 10/29/12 2:51 AM

Its really good blog here hope in your coming blog you will add interesting topics like this.
gameduell abzocke

gameduell abzocke wrote on 11/03/12 5:20 AM

A good informative post that you have shared and be grateful your work for sharing the information. Got some interesting information and would like to provide it a try. Appreciate your work and keep sharing your information.
stargames gutschein

stargames gutschein wrote on 11/03/12 5:21 AM

Glad to visit your blog, I seem to be forward to more good articles and I believe we all love to thank so many good articles, blog to share with us.
achat pharmacie generique

achat pharmacie generique wrote on 11/06/12 5:00 AM

achat pharmacie generique
more here

more here wrote on 11/07/12 11:42 PM

I liked the way of conversion approached here with Cold fusion plans. I think it would be nice and effective to perform this Java to JVM transfer using this platform. I hope you keep up the standard in your further works too.
lzy

lzy wrote on 11/11/12 7:42 PM

These bags reflect contemporary women's aesthetic view
Share It

Share It wrote on 11/11/12 11:41 PM

Hi, visited your site before, but I can not say I've come across while surfing the internet, and now we get to see the information I needed. First of all thank you for it. Other than that I am adding your web site and post your favorites uses then be my chance to follow in an orderly manner.
Hogedrukreinigers

Hogedrukreinigers wrote on 11/19/12 5:40 AM

Hi,Reading your posting I love it completely we appreciate you in your effort. I want to declare that it is very good and informative. Thanks.
vietnamese girls

vietnamese girls wrote on 11/19/12 10:58 PM

This posting is very cool and interesting post.This is a great inspiring article.I am very much pleased with your good work.You put really very helpful information in this site.
http://www.chnmate.com/idateasia-reviews-why-i-go-date-thai-beauties-there/
http://www.squidoo.com/iDateAsia
http://www.flickr.com/photos/idateasia
http://pinterest.com/idateasia/
MMA Gear

MMA Gear wrote on 11/30/12 7:40 AM

Outstanding piece of work you have done. This type of posts is rarely found. This site has proved its metals in the way of giving extra ordinary information.
cupping therapy

cupping therapy wrote on 12/09/12 10:29 PM

I admire your efforts and your idea that you put into this blog. Thanks for the information. Really lovely and useful for me and will refer my friends to this blog.
Double Triple Chance kostenlos spielen

Double Triple Chance kostenlos spielen wrote on 12/11/12 10:17 PM

I like all the reviews have been posted by the visitors ofthis site ,some of them are very good suggested regard the article.
Tripple Chance online

Tripple Chance online wrote on 12/11/12 10:18 PM

The cost of education is really becoming very expensive for average students and I think something should be done about it baseball field covers
creationfinance

creationfinance wrote on 01/04/13 3:32 AM

When I read the title of your blog I became very much surprised but after reading whole blog, I understand this properly. Really very interesting content.
expressfinance

expressfinance wrote on 01/04/13 3:33 AM

How can we avoid Fibromyalgia? It is very painful diseases.
financeplanner

financeplanner wrote on 01/04/13 3:34 AM

Can you share some more detail of chronic pain? I really like to see.
healthy private

healthy private wrote on 01/15/13 2:13 AM

I would like to say thank for sharing this great article. We can’t get this kind of information from anywhere.
healthy world

healthy world wrote on 01/15/13 2:13 AM

You have shared best information in your blog. I have also seen the above link which you have mentioned in above.
impove health

impove health wrote on 01/15/13 2:14 AM

I have read your post and I am waiting for another interesting post. Please update useful information on your blog.
nivåvakt

nivåvakt wrote on 01/29/13 5:33 AM

This kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post…
mykids-health.com

mykids-health.com wrote on 03/01/13 3:10 AM

Wow, nice post,there are many person searching about that now they will find enough resources by your post.Thank you for sharing to us.Please one more post about that.
Sorankshare Bookmarks

Sorankshare Bookmarks wrote on 03/12/13 5:40 AM

usually Java based scripts give error in my database..
ahair-cut

ahair-cut wrote on 04/13/13 4:38 AM

I would like to say thank for sharing this great article. We can’t get this kind of information from
acnesolution101

acnesolution101 wrote on 04/15/13 11:03 PM

Acne is a very common problem, especially among young people. It has been reported by the British Journal of Medicine that 8 in 10 teenagers will suffer from acne at some point and half of teenagers from ages 14 to 16 suffer from acne regularly.
www.smartfortoys.com

www.smartfortoys.com wrote on 04/22/13 4:37 AM

I never read whole articles but the way you wrote this information is simply amazing and this kept my interest in reading and I enjoyed it.
Link Building Service

Link Building Service wrote on 04/22/13 3:48 PM

I found lots of interesting information here. The post was professionally written and I feel like the author has extensive knowledge in this subject. This is a nice post in an interesting line of content.Thanks for sharing this article, great way of bring such topic to discussion. I am sure my visitors will find that very useful.
affaire internet

affaire internet wrote on 04/28/13 12:15 PM

Defeat is not the worst of failures. Not to have tried is the true failure.
tn requin pas cher

tn requin pas cher wrote on 04/29/13 6:31 PM

vous ne pouvez pas l'avoir realise, mais le port de chaussures mal construites dans l'enfance peuvent avoir des consequences desastreuses a l'age adulte (ainsi que causer de l'inconpourt a la fois trop).
resume for graduate school admission

resume for graduate school admission wrote on 05/22/13 6:30 AM

For you to sleep well at night, the aesthetic, the quality, has to be carried all the way through.
college essay writing service

college essay writing service wrote on 05/27/13 2:56 AM

The main point here though was the transition to Java using JRun4 as the underlying container.
girl sex chat

girl sex chat wrote on 05/31/13 11:27 PM

The main point here though was the transition to Java using JRun4 as the underlying container, that changed server tuning and troubleshooting dramatically and for the better after a learning curve.
futures index

futures index wrote on 06/01/13 8:29 AM

Howdy our family loves your awesome blog thanks and pls keep it on
water softener ratings

water softener ratings wrote on 06/04/13 12:01 AM

Very Enjoyable! I hope you write more on this subject! Wow, that was pretty interesting. Inspiring, as well. Thanks for sharing such inspiring experience with us. Great blog, congrats! This is a nice post in an interesting line of content.Thanks for sharing this article, great way of bring such topic to discussion.
Budget Television Sales & Service

Budget Television Sales & Service wrote on 06/05/13 11:16 PM

Namun penjualan online dah tutup,, cuma bisa lihat saja bukunya.semoga Penjualan Online akan dibuka lagi..,, berharap
website launch press release

website launch press release wrote on 06/08/13 5:15 AM

It took us three years to build the NeXT computer. If we'd given customers what they said they wanted, we'd have built a computer they'd have been happy with a year after we spoke to them - not something they'd want now.
phoenix air conditioning

phoenix air conditioning wrote on 06/11/13 12:40 AM

ColdFusion MX 6.1 which included the first fully J2EE certified version of JRun, JRun4 if I recall that correctly. The main point here though was the transition to Java using JRun4 as the underlying container, that changed server tuning and troubleshooting dramatically and for the better after a learning curve.
iphne 5 lcd

iphne 5 lcd wrote on 06/18/13 1:57 AM

href="http://www.xclelec.com">iphone lcd</a>
<a href="http://www.xclelec.com">iphone 4 lcd</a>
<a href="http://www.xclelec.com">iphone 4s lcd</a>
<a href="http://www.xclelec.com">iphne 5 lcd</a>
<a href="http://www.xclelec.com">htc lcd</a>
<a href="http://www.xclelec.com">iphone repair</a>
iphne 5 lcd

iphne 5 lcd wrote on 06/18/13 1:58 AM

1. A reliable unlock iPhone solution will offer FULL Unlocking so that you can use the phone in any network across the world.
2. You don? require any technical knowledge for using unlock 3G iPhone solutions. All you have to do is download it and run it from your phone. Your phone should be connected to the computer where you have downloaded the software.
3. Working GPS and 3G Data network
4. A reliable unlock iPhone solution will ensure that there is no lo[url=http://www.xclelec.com]iphone lcd[/url] ss of signal, which can happen if you use unreliable unlocking solutions.

You are probably wondering how the unlock iPhone solution really works. Basically, unlock 3G iPhone solutions works when a piggy back sim is used. A piggy back sim is a slim and small simcard measuring up to 0.1mm. You have to slide this sim card over the original sim card or any other specific network sim card. For example: If you have an AT&T sim card and want to use a Vodafone sim card then you need to first insert the Vodafone sim card and then insert the piggy back sim card over it. This is a simple plug and play system that will help you to unlock 3G iphone instantly and effectively. Basically this piggy back sim card will fool the iPhone into thinking that the sim card inserted is the original sim card. This is how you will be able to use your sim card over multiple networks

Write your comment



(it will not be displayed)



Leave this field empty: