Question

Living in Fear of JRun (w/CFMX)

Asked by: tomkinite

JRun is the bain of my existance.  Since the conversion of CF 5 to CFMX (not an upgrade, complete new system) JRun has been a living hell.  

For no reason it will spiral up to 500 MB of memory usage and then die.   This happens without warning, and frequently.   It seems to happen while customers or myself experiment with new code.  This is not a standalone version of JRun, it is part of the CFMX package.

My setup is as follows:
 -Windows 2003 Server
 -CFMX 6.1 (with JDBC driver update/datadirect drivers 3.1)
 -1GB Ram
 -IIS 6.0

Question is, is there a patch hidden somewhere, or performance upgrades available anywhere to rectify this obviously fairly common problem?

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
2003-11-17 at 12:04:13ID20800785
Tags

memory

,

jrun

Topic

ColdFusion Application Server

Participating Experts
10
Points
0
Comments
28

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. CFMX CPU Activity
    We have a dual CPU Win 2K system running CFMX and IIS 5 with a gig of RAM. During the busy time of day, the processors are still loafing at about 10% activity as shown on Task Manager Performance tab. Task Manager shows lots of Page Faults for the jrun process (the guts of C...
  2. how to install both cf 5.0 and CFMX in the same system
    hi experts, i would like to know how to install both CF 5.0 and CFMX in the same system. As some of the third party controls not supporting with cfmx, i've it with cf 5.0. so i want all the third part controls, cf 5.0 and cfmx, sqlserver in a dedicated system.. But when in...
  3. CGI.HTTP_REFERER and CFMX
    hi, i am have moved an application that originally resided on a cf 5.0 server and now resides on a cfmx server. i have worked out some syntax issues with having the application on the cfmx server, however i am stuck on one issue. in our application, we have a url that a...
  4. IIS & CFMX
    Hi all, I am running cfmx in IIS 6 on Win 2003 web edition. My issue is that I have multiple sites running and on two of them - completely different sites- the same page comes up... Example: joe.com/home.cfm pulls the same page as steve.com/home.cfm The home.cfm...

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: PE_CF_DEVPosted on 2003-11-17 at 14:06:00ID: 9767283

might post on macromedia's website and see if there is a hotfix for the problem.

In the mean time you might watch howmuch memory jrun.exe is using on average and se tthe JVM memory max to a little above that and the min a little below that.

Also make sure you don't have an outrageously high number in your simutanious connections.

 

by: jyokumPosted on 2003-11-17 at 15:21:30ID: 9767752

I can't say that we've found a fix yet but we've been fighting a similar problem for about 2 months. Our environment is different (CFMX 6.1 for J2EE, Solaris, Apache) but the problem is the same... memory spikes and it all dies.

We've updated every conceivable peice of software, tweaked settings,  modified tons of code and still we have problems. Initially we were crashing multiple times per day... at the moment, we can make it about a week before it dies. Macromedia is going through all our logs every day and I think they've run out of ideas. At this point we're basically taking guesses. The graphing engine is suspect at the moment.

I'll try to put together a list of the things we've done so far, perhaps one of them will help you.

 

by: PE_CF_DEVPosted on 2003-11-17 at 15:25:04ID: 9767770

Everynow and then our ram will spike and Jrun takes over all CPU usage on our test server, which runs dual xp athlons IIRC. We still have no solution but I think I have traced it back to something between coldfusion and our SQL server. Sometimes it will even throw and error 4096. I've search for the error but have come up with nothing...

 

by: jyokumPosted on 2003-11-17 at 16:49:58ID: 9768122

we've found that CFMX doesn't handle loss of connectivity to a database very well. it seems the threads never get released... requests queue... memory goes bye-bye... server dies.   it's pretty reliable that if our database goes down, the CF server is soon to follow.  We primarily use Oracle db's but do have a few MS SQL & DB2 databases.

 

by: anandkpPosted on 2003-11-17 at 20:46:38ID: 9768937

from what ive seen - JRUN does take about 47% of ur memory ... no matter what machines u have !

so even if u increase ur RAM - it wld still hover around 40 - 50% mark !

 

by: techy6Posted on 2003-11-19 at 06:11:13ID: 9779361

Same problem, we've gone up to 3GB of RAM in our dual 2Ghz Xeon server, performance is STILL an issue!  Any ideas please let me know!

 

by: PE_CF_DEVPosted on 2003-11-19 at 06:46:16ID: 9779606

I know one thing we did on our servers that helped with startup issues and some all around performance issues is we had our simutanious connections set to some where up in the 200-300 range which is a bit high...ok a lot high. We set it to 40 and things seem to go a lot smoother on restarts. In addition if you are using MX, which I assume we all are, if you use a lot of c++ cfx that will slow performance since JRUN and the JVM have to go through more to use the CFX, converting those to Java instead will increase performace. Same thing goes for COM objects coldfusion just runs slow when you use COM objects. I read some articles on it a while back if I can find them I'll put them up here.

 

by: tomkinitePosted on 2003-11-19 at 07:08:48ID: 9779772

To me, in a lot of ways CF is better than ASP but no one else can consider this platform with this issue.  It's not even a minor, uncommon issue.  It's very common.  The Macromedia boards are plagued with this very same issue.  Macromedia doesn't really help at all.  This is the context of most posts regarding this issue:

- User: "Memory leak, Jrun taking up 600 MB, etc"
- Macromedia: "Post your settings, configurations and process dumps"
- User: Posts all requested information.
- User (2 months later): "Hello?"

That's the general response from Macromedia.  It's very frustrating.

 

by: jyokumPosted on 2003-11-19 at 08:01:49ID: 9780232

Which version of JVM are you using?

Here's a fix for some SQL server problems.
http://www.macromedia.com/support/coldfusion/ts/documents/cfmx61_sqlserver_cpu.htm

 

by: jyokumPosted on 2004-01-05 at 20:32:11ID: 10049739

any progress on this?

 

by: brian_summitPosted on 2004-01-12 at 11:54:02ID: 10097798

My main issue is with the cpu getting pegged at 90 somehting percent every so often, I have been talking with someone at Macromedia off and on for  over 3 weeks, trying to get my issue resolved with memory leaks, and cpu overutilization. (going over configs, sending in stack traces, etc) to no avail, we still have a major issue with jrun in CFMX and our current workaround is to auto restart cfmx every 4-6 hours, which is no good!

 

by: jyokumPosted on 2004-01-12 at 13:41:52ID: 10098827

we've managed to rememdy the problem over here but I couldn't honestly tell you what "fixed" it. In the end, our sys-admins said the server was overloaded. We moved some of our sites to different servers to distribute the load a bit and the problem went away. The reason I'm not entirely sure this was the problem is that we also made several other changes at the same time.

 

by: brian_summitPosted on 2004-01-12 at 15:48:55ID: 10099816

Is it possible to find out what other changes you made?
I have isolated one site on a new clean server, with a clean database server as well and still see the problem, guessing a magic setting change may help.....

 

by: jyokumPosted on 2004-01-12 at 16:18:15ID: 10100117

I'll see what I can find out from everybody. we had no less than 5 people working on this so it was pretty much a big mess.

 

by: techy6Posted on 2004-01-13 at 01:24:16ID: 10102428

FYI Jrun seems to have settled down on our servers now, having applied every updater and patch and driver under the sun.  We even got it running pretty fast on a knackered old PIII 600 server, and we've been able to scale down our live servers from 3GB of RAM to 2GB.  All our servers are running Windows 2K Advanced Server with SP4, SQL 2K with SP4, MX on Jrun with all the latest patches.  

 

by: tomkinitePosted on 2004-05-03 at 13:05:48ID: 10981193

No acceptable answer provided. Refund and close.

 

by: jyokumPosted on 2004-05-04 at 07:29:23ID: 10987018

i'd recommend PAQ/refund

 

by: brian_summitPosted on 2004-05-04 at 13:49:20ID: 10990833

The Jrun issue on our servers was code related and was fixed. I have confirmed with others that have not posted that this was their problem as well. Try putting the ball back in the developers court. The stack traces actually do have vauable info in them, get with macromedia support and have them point out the bad cfc or lines of code from the traces...... Good Luck.  CFMX is actually not to bad when it's running clean code.

-Brian

 

by: jyokumPosted on 2004-05-04 at 14:18:22ID: 10991157

i agree there is no clear answer (or any "answer" for that matter) but i think it worth having the conversation archived. I don't see any harm in leaving it.

 

by: ee_ai_constructPosted on 2004-05-12 at 14:52:06ID: 11054345

PAQed, with points refunded (125)

ee_ai_construct - (re-order part number #xm34)
Community Support Moderator

 

by: LiamFurnissPosted on 2005-04-05 at 17:03:32ID: 13712773

Are you instantiating any COM objects?  If so, these will cause pagefile leaks, which, in my experience, will cripple a server.

If you've got 6.1, use the ReleaseComObject() function on every COM object ref as soon as you're finished with it.

Fixed my problem, which I had for way too long, so I figured I'd share... ;-)

-Liam

 

by: tomcropperPosted on 2005-04-08 at 13:29:58ID: 13740363

We are having the same problem I have a massive server, running Windows 2003, IIS6. MX with 10GB or RAM.  Everytime the jrun.exe gets over 512mb it just stops responding.  I've checked the exceptions log and see all these out of memory errors.  I have to restart the server completely, then watch the memory keep going up and up.

Any help would be great, I hate restarting this server everyday.

-Chuck

 

by: rhantsonPosted on 2005-04-30 at 21:59:16ID: 13903346

Been watching this post for some time...  And hopeing to find an answer...  what I have come up with (Since this is also a problem on our servers as well), is that there is no ONE thing that is causing this...  Macromedia says it's just problems with how you code your pages...  but there doesn't seem to be a way to actually pinpoint where the memory leak is actually occuring...

I see errors in the application log that says just "Occured in template...." without even an explination of WHAT the error might have been...

These appearing around the time that the memory leak decides to trash JRUN...

Incidentally, don't think you have to run your memory up to 512 or in our case as high as 1.4meg before JRUN will crash...  I've seen JRUN get trashed and the memory just hovering around 200K...  this is a little rediculous and getting to be a huge problem...

 

by: whaleykPosted on 2005-07-20 at 09:17:38ID: 14486271

turning off debugging on our production server seems to have fixed our problem!

 

by: rhantsonPosted on 2005-07-21 at 11:14:28ID: 14495636

We have noticed a number different things that seems to be putting this problem into the forefront...  and only one of them seems to be related to CFMX...

First off, we actually had to force a flush of all request variables at the end of each request.  Don't know why, but we had to forse it, apparently CF wasn't doing the job on its own.

Secondly, we had to really check on the DB Quereys and get them really optimized.  Loops and Joins were what was throwing fits into the CFMX system.

As well, when we went to CFMX 7 we saw a number of these problems just disappear, so the thought here is that Macromedia fixed a number of things.

Needless to say, every time we had JRUN's memory going through the roof, it was related to poor programming on our end....  and believe me, it took us quite a long time to get that through our heads because before CFMX, everything worked just fine... after, well...  you all know what happened....

Keep an EXTREMELY close eye on your application, server, and exception logs....  Undefined Variables, data locks, and other errors will just ramp the mem up in a heartbeat.  Fix them as you find them, and you'll see greater improvements.

We haven't fixed a thing by patches or upgrades...  only by fixing our code did we find our system not only stableize, but it's running better than it ever has run before!

I know everyone doesn't want to think its the way we code, but after months of fighting with the system, and changing our code, we brought everything under control.  (also opening up a gold support ticket and having Macromedia help us with the code as well helped a bit as well).

RH

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...