[rt-users] performance: REST vs. cmd line

Kevin Falcone falcone at bestpractical.com
Tue Jan 11 10:41:51 EST 2011


On Tue, Jan 11, 2011 at 08:47:36AM -0500, Gary Oberbrunner wrote:
> We're working on some reporting, and have discovered that the REST
> interface for simple ticket queries is around 400x slower than using
> the command line interface.  I wonder why this is, since I'd prefer
> to use the REST interface.

RT's command line interface (bin/rt) uses the REST interface.

-kevin

> System: Linux Ubuntu 8.04 (hardy)
> CPU: Core 2 Duo, 2.0GHz
> RAM: 2GB
> RT: 3.8.2
> Config: Apache2, mod_perl, mysql
> DBIx:SearchBuilder etc. are all up to date
> 
> Both command line and the curl/REST method are running on the same machine as RT (apache and the database).  We already have the HTTP basic-auth session auth cookie for REST, so that's not where the time's going.  Our apache server is fine for the other services it runs.  The CLI takes milliseconds, but REST takes several seconds on average (with large variance).
> 
> Any idea where I should look for the bottleneck?
> 
> thanks,
> 
> -- Gary Oberbrunner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110111/958702b8/attachment.sig>


More information about the rt-users mailing list