Question

ColdFusion service stops responding...

Asked by: dougokc

Hi All,

I'm having an issue with our ColdFusion servers. The ColdFusion service will, from time to time, stop responding and the server requiring a reboot. I'm not sure how to investigate this and determine the cause of this issue. Any advise on how to proceed with resolving this issue would be greatly appreciated.

This is an extremely urgent request, as this is effecting my production environment. Thanks!

Also, we have the latest patches on the server, and below are the server specs:

2 Web Servers:
Windows 2003 IIS 6
ColdFusion MX 6.1 with all applicable patches
2x-3.06GHz Xeon Processors
2GB RAM

1 SQL Server:
Windows 2003
SQL Server 2000
2x-3.06GHz Xeon Processors
4GB RAM

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-01-19 at 12:21:56ID21280823
Tags

coldfusion

,

server

,

2003

,

responding

,

stops

Topics

ColdFusion Application Server

,

ColdFusion Studio

Participating Experts
3
Points
500
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Pentium 4 vs Xeon
    I'm wondering if somebody could lay down a simple outline of the differences between the current Pentium 4 branch and Xeon processors. I'd don't want a link to a whitepaper, nor statements of opinion. To better understand what information I'm trying to gather, here's my rea...
  2. Help with intel xeon motherboard power connections
    So i decided to build my first server. Based on the se7501hg2 intel motherboard. The case i have is an antec, that claims it is dual xeon ready. The motherboard calls for an 8 pin 12volt processor power, and also an Aux power signal connector. The power supply has o...
  3. Cyberspace investigator
    Hi again, we have a client who is looking to find out some information about a person. the only thing they know about this person is there name and email address. There email address is @hotmail. Does anyone know of a good investigator or how to find out info on hotmail user...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mrichmonPosted on 2005-01-19 at 13:09:58ID: 13087155

I would guess that there is one of the following:
an endless loop
a memory leak - posisbly caused by things such as accessing session, application, or client variables without locking
some other software causeing problems.

It is really hard to trouble shoot these.


1st try to see if you can reproduce the problem by hitting a specific page or by doing a specific task or set of tasks.

Double check all code to make sure you use cflock on appropriate scopes.

Double check loops that are not query based.

See if a certain page has a long run time.

Also as a side note you can often restart the services (all the ones called Cold Fusion ______  and the WWW service) instead of a full machine reboot which is faster.

 

by: mosphatPosted on 2005-01-19 at 13:10:05ID: 13087156

Have you checked
- ColdFusion logs (In CF Administrator - logfiles)
- Event viewer (For any CF service related entries)
- IIS or Apache (or whatever webserver you're using) log for unusual stuff

That would be the first things to investigate.

Also, ask yourself, has the issue started after a certain update? If so, review that update.

 

by: mosphatPosted on 2005-01-19 at 13:13:45ID: 13087200

If it is a endless loop or anything related, you can have ColdFusion log long running requests. This way you can isolate the page responsible.
However, I don't think it is likely, since CF automatically restarts after 10 (=default) unresponsive requests. In your case it just stops responding.

Also, check memory usage. Maybe Jrun is at 99%, which most likely is code related.

 

by: dougokcPosted on 2005-01-19 at 13:18:07ID: 13087250

Thanks, our DBA is in control of the reboots, and feels he needs to reboot instead of restarting services.. blah..

But I can say about the locking, I have locking on all writes, but not on reads. As from research, I've found that locking a read is not necessary. Is this incorrect, and I should include locking reads? What about excessive locking because I have a lot of application & session variables that make my application very, very dynamic. I load variables from the database into the application structure on first page hit, considered as my initialization of the app, and those variables are read throughout the app all over. Is this something I should consider changing? My only thought on that is to read them in a lock on the application page and put them in local variables instead? Is that what I'm doing ok, or do I need to go in and make this change?

This application I run is a very large reporting tool for over 8,000+ users and has a lot of pages to it, so changing this for sure won't be the easy route, but if this is what's needed, I want to be sure.

About the Logs & event viewer, I'm not really seeing much to indicate a crash... it just kills over.
As far as if it's been since an update, we started on in Oct, with the latest update... so we haven't been in Production long, but haven't done any updates since either... the latest update available from Macromedia was 10/19, and we already have it.

Thanks!

 

by: dougokcPosted on 2005-01-19 at 13:32:18ID: 13087417

Here's what I've done since this post... Talked to a few people internally that are CF Administrators full-time. I've turned on timeout request, set it for 10 minutes, I was advised that it has to have a setting even if it's 4 hours, because a build up of requests that don't timeout can cause a hang, also made sure debuggin was completely off on production, and trusted template cache is on. Also logging slow running pages over 3 minutes, only because this is a hardcore reporting tool that has a few reports that will always be 2-3 minutes due to their size and logical processing.

Please keep the feedback coming. I appreciate it, thanks!

 

by: mrichmonPosted on 2005-01-19 at 15:05:26ID: 13088375

locking a read  IS necessary if you also write to that variable at some point.  But the lock should be of type readonly instead of exclusive.  Readonly locks do not actually take effect UNLESS an exclusive lock (a write) is in progress.

 

by: dougokcPosted on 2005-01-19 at 17:49:14ID: 13089326

I don't really write any of the variables I'm reading in any other place... so in theory, the variables aren't being written anywhere else while they are being read.

The application variables get reset once nightly off hours. The session variables are set at login, from there, they don't change.  Should I still consider locking all my reads?

 

by: kyle1830Posted on 2005-01-19 at 19:32:53ID: 13089774

Another suggestion is to create new datasources, not database, that points to the same SQL Server db instance.  I have one db running two seperate Intranets, four public websites and an accounting system.  The Intranets use DSN1, the sites use DSN2, and the accounting app. uses DSN3.  Each connection has different settings in the cfadmin.  Since the accounting app. is all reporting (reading data) the "Allowed SQL" settings are read-only items, the "limit connections" is set to 2, "Maintain Connections" is off, and Timeout is set low.  Look at those settings to see if there is anything you could "change" also.  

If you still have problems, or have no issue with doing something "off-hours", you could set the cf service in the admin services to restart nightly, or even restart the server.  (Just another option that I have seen some people use.)

The other suggestions are very good, which I have also had to resolve in the past.
Kyle

 

by: mosphatPosted on 2005-01-19 at 22:15:54ID: 13090463

The only reason to use locking in ColdFusion MX is to prevent race conditions. (Note that in previous versions you had to lock every read and write to a persistent scope) So I guess you can throw away a lot of locks now :) See here for more info: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18235

And you might want to read this one: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18772

 

by: mosphatPosted on 2005-02-14 at 23:08:55ID: 13311380

Locking was mentioned as being the problem, however, as can be learned from my post, locking is not necessary anymore (in read/write situations) in MX, which is what dougokc is using.

The second link I posted is a MM technote on how to investigate hanging issues, which is what dougokc is having.

If only we knew whether it was helpful...

 

by: dougokcPosted on 2005-02-16 at 08:52:01ID: 13325989

Sorry guys!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...