Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
ColdFusion Help / 

ColdFusion MX (Server Configuration): Troubleshooting ''jrun closed connection'' errors

Adobe Community Help


Products Affected

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

The error "Jrun closed connection" may be encountered within a ColdFusion application. This is caused by an issue occurring in the JVM, which in turn causes the JVM to close the socket that is open to JRun from the external web server connector, such as IIS, Apache, or iPlanet.

The problem can occur due to several issues, such as:

  • outOfMemory or the JVM approaches the max heap
  • Native code in a CFX or COM objects causes an error in the JVM
  • Socket closed during a restart of the ColdFusion services

JVM memory issues can occur due to several different issues, most commonly:

  • Debugging is turned on in production. Make sure debugging is turned completely off on production servers to prevent this from happening.
  • Large resultsets are returned from the database, taking up a significant amount of memory. If you cannot allocate additional memory, Macromedia recommends customers reduce the size of their database result sets.

Use the following steps to debug the issue:

  1. On the Settings page in the ColdFusion Administrator, turn on the "Timeout Requests after (seconds)" option and set the value to 30 seconds. Enabling this option prevents unusually lengthy requests from using up server resources. Requests that take longer than the timeout period are terminated.
  2. On the "Logging Settings" page in the ColdFusion Administrator, turn on "Log slow pages taking longer than X seconds" and set the value to 30 seconds. Logging slow pages can help you diagnose potential problems or bottlenecks in your ColdFusion applications. Entries are written to server.log.
  3. Upgrade the JVM to the latest version (1.4.2_08, as of 5/11/05) from java.sun.com/j2se/1.4.2/download.html.
  4. On the "Java and JVM" page in the ColdFusion Administrator, modify the "Java Virtual Machine Path" to point to the new JVM. For example:



    C:\j2sdk1.4.2_08
  5. Enable JRun metrics:

    1. Make a backup ofcf_root/runtime/servers/default/SERVER-INF/jrun.xml.
    2. Uncomment the following entry:
      <service outputclass="jrunx.metrics.MetricsService" name="MetricsService"><attribute name="bindToJNDI">true</attribute></service>
    3. Modify the LoggerService entry to:



      <service outputclass="jrunx.logger.LoggerService" name="LoggerService"><attribute name="metricsEnabled">true</attribute><attribute name="metricsLogFrequency">5</attribute>
  6. On the "Java and JVM" page in the ColdFusion Administrator, enable verbose garbage collection by adding the following arguments to the JVM Arguments field:



    -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC
  7. Stop the ColdFusion Server service.
  8. Delete all logs in cf_root/logs andcf_root/runtime/logs.
  9. Using the steps in TechNote 18339, start ColdFusion from a command prompt. For example:



    c:\CFusionMX\bin\ cfstart > out.txt
  10. Run cfstat to monitor the requests. For example:



    c:\CFusionMX\bin\ cfstat 5>c:\cfusionmx\logs\cfstat.out
  11. When the error is thrown or the site becomes unresponsive, generate a stack trace. Examine the stack trace using the steps inTechNote 18339, cfstat, and log files or contact Macromedia Technical Support with these files.
To the top

Additional Information

  • Debugging stack traces in ColdFusion MX (18339)
  • ColdFusion MX: Tips for performance and scalability (18540)
Keywords: tn_19301

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement