Skip to main content
Known Participant
November 21, 2010
Question

ColdFusion jrunsvc.exe pegged at 45%-50% with no utilization

  • November 21, 2010
  • 3 replies
  • 6942 views

Hello,

I have a box running Windows Server 2008 R2 x64 with ColdFusion 9 x64.

IIS 7.5

I am noticing that the jrunsvc.exe (Which is the path file listed in the ColdFusion Application Service) is constantly being pegged at around 50% of CPU power.  I cannot figure this out.

A few odd things:

If I kill jrunsvc.exe, coldfusion will still run perfectly fine under jrun.exe.  The ColdFusion Applicaiton service will have the option to 'start', but it is not actually stopped.  I can still query and everything.

Restarting all CF services and the operating system itself does not do the trick.  I am on version 9,0,1,274733

Any ideas?  I would like to avoid a full reinstallation if at all possible.  I'm also using the internal JVM.   Any config changes I can make?  Is anyone else experiencing this problem?

Nothing is showing up in any error logs, and I even stopped the websites on IIS.  I do not think this is user generated.

Thanks!

Michael

    This topic has been closed for replies.

    3 replies

    Participant
    June 9, 2011

    Did anyone ever figure out what was causing this? I am having a similar problem on my production server with Windows Server 2008 R2 and ColdFusion 9.

    Only my jrunsvc.exe is pegged at 100% and brings down all of my sites. It is so bad, whenever we perform a reboot, we have to kill the process to prevent the problem.

    Legend
    June 10, 2011

    Hi Connor,

    Bit of an old thread, did not hear what solution was or if there was a resolve.

    Not had similar problem myself. I guess your CF9 Ent multi server? I would look in \JRun4\logs\ admin-event.log and admin-out.log for errors.

    HTH, Carl.

    Legend
    November 21, 2010

    Hi Michael,

    You do not say, is CF Standard or Enterprise multi-server installation?

    Regards, Carl.

    Known Participant
    November 22, 2010

    This is coldfusion 9 enterprise.

    Thanks for the help - this community is great!

    Also, I keep the SOLR and the Search services disabled since I don't use them

    I'm seeing this in the exception log - over and over and over again.  I have no clue what page is causing this.  I don't have any variables named in adminuser in my code.  Is there a possible memory leak or a loop that is occuring under the hood?

    From application.log:

    "Error","jrpp-21","11/21/10","18:40:25","cfadmin","Variable ISADMINUSER is undefined. The specific sequence of files included or processed is: E:\inetpub\wwwroot\CFIDE\adminapi\_datasource\setmsaccessregistry.cfm, line: 4 "

    From exception.log:

    "Error","jrpp-21","11/21/10","18:40:25","cfadmin","Variable ISADMINUSER is undefined. The specific sequence of files included or processed is: E:\inetpub\wwwroot\CFIDE\adminapi\_datasource\setmsaccessregistry.cfm, line: 4 "
    coldfusion.runtime.UndefinedVariableException: Variable ISADMINUSER is undefined.
    at coldfusion.runtime.CfJspPage._get(CfJspPage.java:377)
    at coldfusion.runtime.CfJspPage._get(CfJspPage.java:339)
    at cfsetmsaccessregistry2ecfm669422673.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\adminapi\_datasource\setmsaccessregistry.cfm:4)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381)
    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
    at coldfusion.CfmServlet.service(CfmServlet.java:200)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Legend
    November 22, 2010

    CF9 Enterprise "Server" or "Multi-server" installation?

    I think the "admin_jvm.config" might be interesting to look at so if you could paste a copy?

    Do not know what to make of  "cfadmin","Variable ISADMINUSER is undefined etc.

    Regards, Carl.

    Big Mad Kev
    Participating Frequently
    November 21, 2010

    Just to clarify the two servies you get when you run under windows using the services

    • jrunsvc.exe is a wrapper for the Windows Service to be able to stop and start the jrun instance
    • jrun.exe is the actual Jrun Server running so if you stop jrunSvc.exe this still runs.

    So ideally jrunSvc.exe shouldn't really do much. (Something to prove this, if you have jrunSVC.exe and jrun.exe running and you kill jrun.exe it will be automatically restarted by jrunSvc.exe)

    You say your running IIS 7.5 and CF 9 updater 1 (9.0.1) I know there was a change in how it handled IIS mappings, is this is a clean install or did you have CF 9.0.0 installed then upgraded to 9.0.1 and then got these issues?  You could check out the FAQ and the release notes

    To upgrade the Java Virtual Machine that ColdFusion runs on download and install the latest JDK from oracle ( http://www.oracle.com/technetwork/java/javase/downloads/index.html )

    Then edit (not sure if you're running standard or enterprise)

    • c:\cfusion9\runtime\bin\jvm.config
    • c:\jurn4\bin\jvm.config

    And place a # in front of java.home=

    and below this type

    • java.home=c:/program files/[Path to your newly installed jvm]\jre

    In this use either one forward slash ( / ) or two back slashes ( \\ )  for the path seperators

    This will then have your ColdFusion instance running in the latest JVM

    Known Participant
    November 21, 2010

    Thanks Kev,

    I went ahead and updated the JVM to the latest JDK from SUN and I no longer use the Java package that ships with ColdFusion, but I am still experiencing the issue.

    I believe that I upgraded from 9.0 to 9.01 and it was not a clean install.  I do remember that I had to re-run the connector software after the upgrade.

    I did not experience these problems after the upgrade.  I was fine for a few months up until now.  Is it possible I missed a hotfix or a patch?

    If I kill jrunsvc.exe everything runs fine and the CPU usage goes back to pretty much 0.   This bug only happens when I either restart the services or the box.

    I read through the documentation you provided, but nothing struck out at me in terms of missing a step when I did the upgrade.

    I'm wondering if maybe something is just wrong with the operating system?  A memory leak somewhere that is causing this one jrunsvc.exe and churn over and over again?

    Thanks again,

    Michael

    Big Mad Kev
    Participating Frequently
    November 21, 2010

    Is there anything reading the log files?

    As this blog post sort of indicates that there code be? http://www.rupeshk.org/blog/index.php/tag/jrunsvc-exe/

    (Currently down so I checked using google cache: http://webcache.googleusercontent.com/search?q=cache:JDBtgBc2QtoJ:www.rupeshk.org/blog/index.php/2010/05/cfbuilder-tip-tailview-can-kill-server-performance/+http://www.rupeshk.org/blog/index.php/2010/05/cfbuilder-tip-tailview-can-kill-server-performance/%23comments&cd=1&hl=en&ct=clnk&gl=uk&client=firefox-a )

    It's the only thing I can think of that might cause the issue?