1 / 21

Installing, Configuring And Troubleshooting Coldfusion

Installing, Configuring And Troubleshooting Coldfusion. Mark A Kruger CFG Ryan Stille CF Webtools. Installing: Prep the Server. Start with a Clean Server Put the following on the desktop Services CPL Command Prompt Perfmon Make sure IIS is installed Change Folder Settings

pennie
Download Presentation

Installing, Configuring And Troubleshooting Coldfusion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Installing, Configuring And Troubleshooting Coldfusion Mark A Kruger CFG Ryan Stille CF Webtools

  2. Installing: Prep the Server • Start with a Clean Server • Put the following on the desktop • Services CPL • Command Prompt • Perfmon • Make sure IIS is installed • Change Folder Settings • Settings List for CF and IIS

  3. Install: The Installer • Choose Your Poison

  4. Install: The Installer • Choose Your Services

  5. Installer: Finishing Up • Before Anything Happens Log into the Admin • Begin By reviewing all the settings in the Admin against your idea of usage • Add Data sources • Configure CFX Tags, Mappings Etc (all of this should be prepared in advance)

  6. JVM Configuration • The “default” configuration is unsuitable for a production environment • Edit it Using the File System NOT the Administrator: • # Arguments to VM • java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC (..followed by some path settings) • This is suitable only for a multi-purpose server where CF is services a few internal users.

  7. JVM Configuration • First Item is Memory Allocation: 2 schools of thought • Min and Max the same as in –Xmx1024 –Xms1024 • Some headroom for young gen recovery as in –Xmx1024 -Xms756 • Beware of Limitations • Windows – 1.5 gigs (max + PermSize) • Linux – 2.5 gigs

  8. JVM Configuration • Garbage Collection • Young Space Vs Old Space • JVM 1.5 allows for specific garbage collectors for each space -server -Dsun.io.useCanonCaches=false -Xmx2048m -Xms2048m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC XX:PermSize=64m -XX:MaxPermSize=192m-XX:NewSize=48m -XX:SurvivorRatio=4 • Other Mem Switches Permsize, maxpermsize, newsize and survivorRatio

  9. The Magic Connector Script • Found in cfusion8/bin/connectors • Can resolve Web site being unable to serve CF • Try it first when you install a new web • Use this one for a single site (site name is case sensitive) @echo off set CFUSION_HOME=*where you put CF* echo You are configuring %1 pause %CFUSION_HOME%\runtime\bin\wsconfig -server coldfusion -ws IIS -site %1 -coldfusion -cfwebroot

  10. Performance • Performance Monitor (Windows)

  11. Running/Queued (Request Stats) Memory Usage Performance – Server Mon.

  12. Performance – Server Mon. • Things You Can’t Find Elsewhere • Threads By Memory • Queries By Memory • Active, Cached and Slowest Queries • Pool Status • Frequently Run Queries

  13. Performance – Server Mon. • Things You Can’t Find Elsewhere • Threads By Memory • Queries By Memory • Active, Cached and Slowest Queries • Pool Status • Frequently Run Queries • Don’t Trust the Session Tracking

  14. Performance – Alerts • Slow or Unresponsive • Memory • Timeouts • JVM Memory • Possible Actions • Run a CFC • Kill Long Threads • Send an Email • Snapshots are useful as well

  15. See Fusion – an Alternative • Cost 300.00 • Great overview Page • Ability to Kill Long Running Threads • Advanced Features • JDBC query monitoring • Alerts (“rules”) • Stack traces • Logging

  16. Linux Tool - Jconsole • Demo from Ryan

  17. Some Current Issues • Referencing From 2 Persistent Scopes • <cfset session.x = application.fnc(y)/> • Using a Class Loader with 1.6 • Fix by downgrading to 1.5 (FYI we see no performance degradation when doing this) • Memory Limitation • Fix by upgrading to 64 bit (hardware, OS and CF enterprise) or use multi-server.

  18. Downgrading to 1.5 • Demo from Ryan • Install 1.5 SDK • Repoint the jvm.config file • Keep the /runtime/Coldfusion-out.log at the ready to troubleshoot • Restart the Service • Check CF Admin to verify the version

  19. Some Common Issues • Debugging Turned on • No use of Caching • Improper Use of Application Variables • Poor Query Code • A “Default” Installation • Networking Issue (JDBC setup, auto duplex synching etc) • Bad Session Management • Not thinking about agents and bots

  20. Resources • www.robisen.com • JVM Options: • http://blogs.sun.com/watt/resource/jvm-options-list.html • Sun’s Tuning GC http://java.sun.com/docs/hotspot/gc1.4.2/index.html • www.petefreitag.com • www.talkingtree.com/blog/

  21. Q and A

More Related