macromedia.coldfusion.component_development
[Top] [All Lists]

Re: Performance issue when cfc is called as web service

Subject: Re: Performance issue when cfc is called as web service
From: GArlington <garlington@xxxxxxxxxxxxx>
Date: Thu, 10 Apr 2008 01:45:39 -0700 (PDT)
Newsgroups: macromedia.coldfusion.component_development, macromedia.coldfusion.advanced_techniques

On Apr 9, 9:12 pm, jl <jo...@xxxxxxx> 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.

<Prev in Thread] Current Thread [Next in Thread>