Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

speed up CFHTTP on CF10 (5000x slower than under CF8)

$
0
0

Hi, we've just moved a large application from CF8 to CF10 and are seeing that CFHTTP performance is *much* slower on the new system.

 

We've verified this by sequentially running 50 CFHTTP calls to small static assets on an Apache server, measuring the response times with gettickcount(), and averaging over several runs.

 

On our old (Ubuntu + JRun + CF 8) installation, we're averaging about 1 ms per request.

 

On our new (Centos + CF 10 standalone) installation, we're averaging 5000 ms per request. That's 5000 times slower.

 

We initially suspected that this was related to entropy generation issues as the first request in a test run would return relatively faster (a few hundred ms in total) compared to all subsequent requests in that run.  However, attempting to modify the JVM settings as prescribed did not resolve the issue.  We've further tried using alternative entropy-generating tools (as recommended in the original blog post cited in the aforementioned thread), but that has not helped either.

 

Note that we've also tested http performance outside of CF by using wget from a shell script, where we saw good performance (approx 1ms per request).

 

All help on this issue will be greatly appreciated, thanks!


Update: just tested the CF+Java-based CFHTTP alternative http://coldfusion9.blogspot.com/2012/03/custom-cfhttp-tag.html

It required a few minor bug fixes, but is greatly outperforming CF 10's CFHTTP, averaging 33 ms per request (still much slower than CF 8, but usable for most purposes).  Nonetheless, I'm still looking for a fix to restore appropriate speed to CFHTTP!

 

Message was edited by: Jon Obuchowski to add testing with custom CFHTTP tag


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>