Performance issue when cfc is called as web service

Ask a Question related to Coldfusion Component Development, Design and Development.

  1. #1

    Default Performance issue when cfc is called as web service

    Hello,
    We are using Coldfusion MX 7 on a Windows 2003 server SP2, 3Gigs RAM,
    4 CPUs (2 dual core), SUN JVM 1.4.2_11, Min & Max JVM Heap sizes =
    512, simultaneous request limit = 24. I created a CFC which does a
    cfhttp call to a remote SaaS application. Included on almost every
    page of our website is an iframe that calls the CFC. When I invoke the
    CFC with cfinvoke and I do not call it as a service it works fine
    under normal load. I created a web service using this cfc, when I
    invoke the cfc as a web service the CF process hangs and has to be
    restarted.

    I then downloaded Microsoft's Virtual PC 2007 and in a virtual
    machjine downloaded MicroSoft's Web Aplpication Stress 1.1. After some
    testing with numerous simultaneous users settings I found a point at
    the CF server will hang up and have to be restarted when using the web
    service. When I change the .cfm to not use a web service but simply
    call the cfc the CF server does not hang and response from the website
    is acceptable.

    Any suggestions on how to figure out why the web service hangs the
    server while the same number of calls to the cfc without using a web
    service is ok? It looks like a JVM issue but am not 100% sure at this
    point.

    Any help is greatly appreciated.

    Joe

    jl Guest

  2. Similar Questions and Discussions

    1. Performance issue
      I have an array with around 40 different url values in it. Im trying to cfhttp each URL in turn, and then parse the contents of each URL one by one....
    2. IsInRole Performance Issue
      Hi, We have a very large AD here and I am noticing that the WindowsPrinciple IsInRole function is taking upwards of 1 second to respond with just a...
    3. web service isn't called properly
      Newbie question. I have a VB.Net windows application which talks to database through a web service. This solution as a whole, works on my...
    4. CFMail - performance issue
      Hi, I have developed a discussion board on which users can subscribe to particular topics. Subscribed users receive an email (with link back to...
    5. GCC C++ Issue: pure virtual method called
      I have a threaded C++ application that produces a 'pure virtual method called' error about 3 out of 10 times while starting up the application. The...
  3. #2

    Default Re: Performance issue when cfc is called as web service

    On Apr 9, 9:12 pm, jl <jo...@rcn.com> wrote:
    > Hello,
    > We are using Coldfusion MX 7 on a Windows 2003 server SP2, 3Gigs RAM,
    > 4 CPUs (2 dual core), SUN JVM 1.4.2_11, Min & Max JVM Heap sizes =
    > 512, simultaneous request limit = 24. I created a CFC which does a
    > cfhttp call to a remote SaaS application. Included on almost every
    > page of our website is an iframe that calls the CFC. When I invoke the
    > CFC with cfinvoke and I do not call it as a service it works fine
    > under normal load. I created a web service using this cfc, when I
    > invoke the cfc as a web service the CF process hangs and has to be
    > restarted.
    >
    > I then downloaded Microsoft's Virtual PC 2007 and in a virtual
    > machjine downloaded MicroSoft's Web Aplpication Stress 1.1. After some
    > testing with numerous simultaneous users settings I found a point at
    > the CF server will hang up and have to be restarted when using the web
    > service. When I change the .cfm to not use a web service but simply
    > call the cfc the CF server does not hang and response from the website
    > is acceptable.
    >
    > Any suggestions on how to figure out why the web service hangs the
    > server while the same number of calls to the cfc without using a web
    > service is ok? It looks like a JVM issue but am not 100% sure at this
    > point.
    >
    > Any help is greatly appreciated.
    >
    > Joe
    If you cfc is local to your web app, why in hell would you want to
    call it as webservice? Webservice is by definition remote, the only
    reason to use it is if you can not cal it in any other way...
    BTW: from my experience I would say that simple http call (<cfhttp .../
    >) is faster than calling the webservice too.
    GArlington Guest

  4. #3

    Default Re: Performance issue when cfc is called as web service

    We may create web services to be offered remotely and I just created
    this to test ColdFusion's ability to handle
    web services over all. Regardless the question is about tuning and
    resolving the server's poor performance with
    regards to web services, not application design, but thanks for your
    feedback on that.
    >
    > If you cfc is local to your web app, why in hell would you want to
    > call it as webservice? Webservice is by definition remote, the only
    > reason to use it is if you can not cal it in any other way...
    > BTW: from my experience I would say that simple http call (<cfhttp .../
    >
    >
    >
    > >) is faster than calling the webservice too.- Hide quoted text -

    jl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139