May 13 2009

10 Steps To A Stable and Performant Web Application - Step 4

Posted by Mike Brunt at 6:33 AM ColdFusion | JRun-J2EE

In this step we will use both the Metrics Logging output and the Verbose GC logging output to adjust the overall memory size and to help to stop ColdFusion hanging.  We will also adjust the size of each segment of the JVM memory space by passing arguments to the jvm.config file.  

Here are links to the first three steps in this series.

Step 1 - Inspect Production ColdFusion Logs (no older than 7 days).

Step 2 - Enable Enhanced ColdFusion Logging (Metrics Logging).

Step 3 - Enable Enhanced ColdFusion Logging (Verbose Garbage Collection Logging).

These are the resukts of the Metrics and Verbose GC Logging...

Metrics Logging Output:

01/05 12:17:09 metrics Web threads (busy/total/wait): 1/28/0 Sessions: 1 Total Memory=520048 Free=158060

01/05 12:18:09 metrics Web threads (busy/total/wait): 1/28/0 Sessions: 1 Total Memory=520432 Free=215408

01/05 12:19:09 metrics Web threads (busy/total/wait): 1/28/0 Sessions: 1 Total Memory=520984 Free=164688

01/05 12:20:09 metrics Web threads (busy/total/wait): 1/27/0 Sessions: 1 Total Memory=520000 Free=93655

01/05 12:21:09 metrics Web threads (busy/total/wait): 1/27/0 Sessions: 1 Total Memory=520832 Free=58571

01/05 12:22:09 metrics Web threads (busy/total/wait): 1/27/0 Sessions: 1 Total Memory=520792 Free=83309

01/05 12:23:09 metrics Web threads (busy/total/wait): 1/27/0 Sessions: 1 Total Memory=520496 Free=105955

Verbose GC Output:

PSYoungGen total 55360K, used 55360K [0x2bef0000, 0x2f7d0000, 0x2f7d0000)

eden space 52608K, 100% used [0x2bef0000,0x2bef0000,0x2f250000)

from space 2752K, 67% used [0x2f250000,0x2f422630,0x2f500000)

to space 2816K, 0% used [0x2f510000,0x2f510000,0x2f7d0000

We will use this output to add/modify the arguments to the JVM via the jvm.config file…

Defaults in a new CF install - java.args=-server -Xmx512m  XX:MaxPermSize=192m

Modified - java.args=-server -Xms1024m –Xmx1024m -XX:PermSize=96m -XX:MaxPermSize=192m -XX:NewRatio=3 

This will start the heap with 1GB of space with the same max ceiling value, give the Permanent Generation a start size of 96MB and allocate one quarter of the total heap size (256MB) to the New/Young Generation.  

As with all in this series these actions are not theoretical or simply lab based, these are based on succesful projects we carried out on behalf of clients who had ColdFusion performance problems.

We will be at CFObjective 09 in Minneapolis-St Paul and will be presenting "Indiana Jones and The Server of Doom" at 10:15AM on Thursday May 14 and also holding a BOF on all things ColdFusion in the Enterprise at 7:00PM on Friday May 16.

 

 

 

Comments

Abraham Lloyd

Abraham Lloyd wrote on 05/13/09 8:09 AM

Mike, great series. I think a series like this has been missing from the community for a long time, going all the way back to CF 6. Robi Sen and Spike had a few articles about JVM / server tuning, but its nice to see something more current / relevant that also focuses on process and task mechanics while explaining the changes.

I was curious -- what tool(s) do you use to review GC logs, JVM memory utilization, etc? I think that would be a nice addition to the articles.

Again, great work. I'm looking forward to read the rest of the series.
Mike Brunt

Mike Brunt wrote on 05/13/09 3:55 PM

@Abraham thanks for taking the time to comment, really the only special tool I use is SeeFusion and than will be in my next post in the series.
Nathan Miller

Nathan Miller wrote on 05/27/09 8:41 PM

I've enjoyed reading this series so far and have implemented the setting recommendations thus far on my VPS. I'm looking into SeeFusion or FusionReactor - any reason you prefer SeeFusion?
qiudong

qiudong wrote on 03/17/11 7:06 PM

unless http://feiyue.eu.com/feiyue-low-cut-cancas you have more than guests.
Jason

Jason wrote on 05/16/11 7:44 AM

Really great series of articles Mike! It helped me alot so far and i would love to read further on, but I cannot find the rest of this 10 step series on your blog...?
mike

mike wrote on 08/31/11 7:58 AM

Its a shame this died out at step 4
pandora

pandora wrote on 07/13/12 2:11 AM

thank you very much for your comment and yes we always try to follow this.
sizzling hot kostenlos spielen

sizzling hot kostenlos spielen wrote on 10/26/12 10:52 PM

A very interesting all worth visiting. I’m glad I found this article. It has helped me a lot. Keep up the good work.
sizzling hot kostenlos spielen ohne anmeldung

sizzling hot kostenlos spielen ohne anmeldung wrote on 10/27/12 2:43 AM

I am a writer and I collect such kind of articles which has some good subjects well I liked your blog.
buy instagram

buy instagram wrote on 06/20/13 9:13 AM

I really learn a lot while reading this series and looking forward to read more.
Real Estate Oakville

Real Estate Oakville wrote on 06/24/13 8:36 AM

Our team of professionals provides our clients with a very convenient one-stop opportunity for their Mississauga real estate needs. Our team includes: a professional photographer, a professional writer, stager, assistants, competent lawyers, experienced mortgage lenders and brokers, invaluable home inspectors, trustworthy renovators and handyman and the list goes on. Call us today to discuss your real estate goals.
gaabg

gaabg wrote on 10/22/13 9:10 AM

The blog is good.i recommend a great deal. These proceed through intensive study as well as growth to improve overall performance http://www.ronaldocleats.com characteristics which are good to gamers. Adidas, Nike, The puma company along with Umbro are the hottest and a lot donned cristiano ronaldo mercurial boot makes. The best measurement on your foot provides you with the best outstanding overall performance within a game. For most ages now, Chaussure de foot Nike Hypervenom may be famous for producing many different sneaker items that offers provide many players worldwide in several sports http://www.lionelmessif50.com as well as games. In almost any sport, Nike firm constantly make an effort to generate a particular footwear product which can be fitting to a certain sports activity variety. Thus, because presented within the Lionel Messi ads as well as used by way of a web host http://www.chaussurefootronaldo.com involving renowned people just like Gareth Bale, Jesse Silva, Luis Suarez as well as Pavel Pogrebnyak.This is exactly what Nike has developed for Ronaldo brand new footwear. Nonetheless, seems to be and all sorts of set aside. These shoes are produced from excellent unprocessed trash and are engineering based.A player must consider special care when picking her or his boots since it is critical Chaussure de foot Nike Hypervenom that it suits them personal, that means body along with really feel from the start. These boots need to suit the players?ft . properly, using the shape of the particular base into mind.
darrendemers12

darrendemers12 wrote on 11/20/13 2:29 AM

Wonderful subject and fair ... you simply have to do more study to come to be many more specific. Yet it's not that bad, it's amazing
http://www.distributech-email8.com/
http://www.americanbusinessgazette.com/
http://www.assistedbusinessplans.com/
http://www.enterprisebusinesscentres.com/
http://www.maw-business-consulting.com/
xuehua

xuehua wrote on 05/20/14 11:41 AM

They may be set up in boot styles to provide better hold http://www.chaussurefootballpaschere.com
throughout materials the place that the players enjoy. It's important http://www.nouveaufootball.com with regard to basketball shoes to have this specific component to be able to avoid these people through falling or perhaps getting back in mishaps.
Ricky

Ricky wrote on 06/05/14 8:58 AM

I really found this informative and useful and hopping for some more informative posts. Again thanks
http://www.satotravel.org/
http://www.traveldealsandpackages.com/tnt-travel.htm
sparxx rx

sparxx rx wrote on 10/16/14 8:55 AM

Here is our Titanium over-the-counter male enhancement product. You will find upon purchasing that this bottle contains one month’s supply of male enhancement pills (which is 16 pills to be exact).
www.bigfamilytravels.net

www.bigfamilytravels.net wrote on 11/02/14 12:54 AM

Traveling with a family can be quite expensive! I have found lots of ways to reduce the cost of my family trips. Flights, hotels, local transportation, activities and dining can drive the travel budget through the roof. Check out the money saving strategies I use when I travel with my kids.
www.impact-travel.net

www.impact-travel.net wrote on 11/02/14 12:54 AM

Sustainable tourism and responsible travel are hot items these days now that travelers start to realize that we should be more careful with our resources and environment.
http://www.evjf-original.fr

http://www.evjf-original.fr wrote on 11/05/14 7:36 PM

Where I see these as being "mildly related" is that there was a loss of actual physicality (NIC's, Hard Drives CPU's etc) and these were substituted by virtual equivalents.
sport rabbit

sport rabbit wrote on 11/19/14 6:56 AM

Right now, the athletics industry is considered to be the 11th largest sector in U . s ., producing over $213 billion dollars annually.
sport industry jobs

sport industry jobs wrote on 11/19/14 6:56 AM

Find out more on a exclusive franchise prospect and athletics marketing work opportunities. People today who will be avid with regards to sports, like you, are setting up a career involving combining his or her interest using sales along with marketing ideas and his or her desire to experience a business with their own.
better football

better football wrote on 11/19/14 6:56 AM

Basketball (as well as soccer because 'non-Brits' talk about it while) is the most famous sport on the globe. Millions of folks play, in various quantities, every day.
click

click wrote on 12/26/14 10:22 PM

Where I see these as being "mildly related" is that there was a loss of actual physicality (NIC's, Hard Drives CPU's etc) and these were substituted by virtual equivalents.
www.scorespro.com

www.scorespro.com wrote on 01/26/15 11:33 PM

Obtaining good football instructors and also tennis mentors is challenging. The the greater part are past college or high school graduation players which look moderately good reaching a basketball, but have got little genuine teaching knowledge.
www.esportshub.org

www.esportshub.org wrote on 02/13/15 4:22 AM

Singapore has turned into a sort of the sporting phenomenon recently, and we are able to only place the main of this particular new, sprouting interest to the recent successes recently.
healthylivingway

healthylivingway wrote on 02/18/15 7:14 AM

Despite the fact that a lot of us plan to be more healthy, plans can rapidly be derailed and before long we're back where we began - back to our old habits.
ehealthplanners

ehealthplanners wrote on 02/18/15 7:15 AM

Life care planners help patients find ways to best manage their day-to-day lives along with issues such as planning for necessary long-term care and discovering the options for providing the best quality of life possible for the patient.
studio dentistico roma

studio dentistico roma wrote on 04/01/15 2:50 AM

Lo studio Dentistico Roma Dottori Damis Resta Rossi Iommetti è situato nell'elegante quartiere Prati di Roma ed opera nel settore odontoiatrico dal 2005.   <a href="http://www.studiodentistico.roma.rm.it/">Studio Dentistico Roma</a>
architetto roma

architetto roma wrote on 04/03/15 11:13 PM

servizi dello Studio, spaziano anche in ambiti pratici tra cui consulenze tecniche per varie pratiche: urbanistiche per ottenere le autorizzazioni, pratiche dell'Agenzia del Territorio, ricalcolo di millesimi in appartamenti, stime immobiliari e altre ancora.
ristorante milano

ristorante milano wrote on 04/04/15 6:35 AM

Winter Restaurant Week 2008 launches in New York City this week, and provides a great opportunity to discover new restaurants or to experience pricier places you've been longing to try.   <b><a href="http://www.ristorante.milano.it/">Ristorante Milano</a></b>
Alexis Alex

Alexis Alex wrote on 04/06/15 11:04 AM

We are not just ‘Solutions for Beauty’; we provide solutions for beauty businesses and supplements for internal remedies. We enjoy taking businesses by the hand and consulting with them on ‘HOW TO’ get plugged into today’s market. We provide advertising assistance ie Groupons, etc. Need a lease, no problem.
http://solutionsforbeauty.com/w/
clothing manufacturer

clothing manufacturer wrote on 07/04/15 4:23 AM

I've enjoyed reading this series so far and have implemented the setting recommendations thus far on my VPS. I'm looking into SeeFusion or FusionReactor - any reason you prefer SeeFusion?
http://www.club-sif.fr

http://www.club-sif.fr wrote on 08/24/15 3:42 AM

There was a problem: Sorry, but your comment appears to be spam and could not be submitted.
naymz.com

naymz.com wrote on 05/16/16 7:11 AM

I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives in depth information. thanks for this nice article
cheats for csr racing

cheats for csr racing wrote on 05/25/16 5:34 PM

I was searching the blogs for a long time and that is good to know that I have found such blogs here. Great working! Keep it up!
Harvey the Handyman

Harvey the Handyman wrote on 06/09/16 2:46 PM

Greetings, it turned out to be such a fine experience for me when I checked out your web site. I hope you don't mind if I congratulate you on the high quality of your work and to wish you all the best with it as you progress in the future. It was nice to view this site and I shall probably be stopping by again soon to find out just how you are doing. Thanks a lot and I will see you here again soon - Harvey the Handyman