Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Performance issue when cfc is called as web service

2 views
Skip to first unread message

jl

unread,
Apr 9, 2008, 4:12:06 PM4/9/08
to
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

GArlington

unread,
Apr 10, 2008, 4:45:39 AM4/10/08
to

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.

jl

unread,
Apr 14, 2008, 9:39:09 AM4/14/08
to
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 -


0 new messages