Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Application server is busy, PROXY_BUSY, JRun too busy

 

This blog entry will attempt to describe the symptoms and likely causes of a collection of error messages often found to occur together in a given context.

Symptom:

[Browser Error Message, CFMX 6.0]:

Server Error
The server encountered an internal error and was unable to complete your request.
Too many concurrent requests, jcp.endpoint.main.max.threads exceeded.

[Browser Error Message, CFMX 6.1]:

Server Error
The server encountered an internal error and was unable to complete your request.
Application server is busy. Either there are too many concurrent requests or the server is still starting up.

Explanation:
Here, the error message changed between CFMX 6.0 and CFMX 6.1 to be somewhat more accurate regarding the cause. Essentially, there are three possible conditions in which you can get either of these errors.

  • 1) ColdFusion Server is just starting up when the request was made. When ColdFusion is started, first the JRun server is started and then the ColdFusion Application Server (which is actually a deployed J2EE application in JRun) is started, and then your web application will become available when those two are complete. The above browser errors will be returned if your request comes in after JRun started but before ColdFusion is fully deployed.

  • The Running Request pool (Simultaneous Requests) is saturated with long running requests, which also described as "the server is hung". This will cause new requests to be queued up. Then one of these two conditions has occurred:

    • 2) The queue has already reached its maximum size. This is a setting in jrun.xml JRun Proxy Service called "maxHandlerThreads". Your request could not be queued.

    • 3) Your request has been queued, but it has been waiting in the queue for a period exceeding the queue timeout. This is a setting in jrun.xml JRun Proxy Service called "threadWaitTimeout", and it's unit is seconds. jrun.xml

Additional Symptoms:[Apache error_log]

[Tue Oct 7 12:10:16 2003] [notice] jrApache[1745] PROXY_BUSY <- [11]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1745] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1731] PROXY_BUSY <- [3]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1731] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1746] PROXY_BUSY <- [14]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1746] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1732] PROXY_BUSY <- [3]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1732] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1748] PROXY_BUSY <- [8]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1748] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1749] PROXY_BUSY <- [9]
[Tue Oct 7 12:10:16 2003] [notice] jrApache[1749] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1750] PROXY_BUSY <- [6]
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1750] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1752] PROXY_BUSY <- [12]
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1752] returning error page for JRun too busy or out of memory
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1753] PROXY_BUSY <- [5]
[Tue Oct 7 12:10:17 2003] [notice] jrApache[1753] returning error page for JRun too busy or out of memory

[Apache access_log]

192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 231
192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 231
192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:16 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:17 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:17 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236
192.168.0.2 - - [07/Oct/2003:12:10:17 -0400] "GET /serat/sleep.cfm?sec=120 HTTP/1.1" 503 236

Recommendations:

You should examine the performance of your application and review the settings configuration for the ColdFusion Administrator. You could start by logging slow pages, a setting in the CFAdmin, as well as generate some thread dumps.

See this blog entry for how to generate and debug "Full Thread Dumps" in CFMX, as well as pointers on where to look for tuning information.

 


Comments

Do you know of a way to customize these Error Messages? Eliminating the cause for the errors is good, but sometimes you just can't predict what might happen. I tried to do custom cutom error pages through the web server, but we're using IIS and IIS does NOT allow you to customize the 503 (which is what these come back as; IIS only allows you to customize up to 502). Any info would be helpful. Thanks.



Well, there are two ways to get this error, as described above. Either your (JRun) server is just starting (and is in the middle of starting the ColdFusion server that sits on it), or requests are queueing up. If its the former, see how often your server restarts, if at all, and if its the latter then look at ways to improve the performance of the Coldfusion server and your application.


See:


Help! My ColdFusion MX Server is Slow!!!!

http://www.talkingtree.com/blog/index.cfm?data=20031003#03BC95F9-45A6-2844-7E7075EBD54B42C6



 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
A ColdFusion Trick for Lost D..
Starting ColdFusion9 Solr: Us..
Adobe LiveCycle DataServices ..

Recent Comments

 
Posted By Aaron Longnion:
Thanks Steven, I just ran into this problem, remembered your tweet about it, and found your blog on it. :)

Posted By srinyvas:
Hai, This information is very useful and i like your excellent writing skill. Can i copy this Content to my website top management colleges ...

Posted By Steven Erat:
@Wade - Glad I could help! Thanks for letting me know it worked for you too.

recently played

 
The Candid Frame #70 - Greg Gorman
by Ibarionex R. Perello
on The Candid Frame: A Photography Podcast

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (427)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer