mod_rest takes 2 second to reply

I installer ejabberd 2.1.11 for windows, installed on Windows server 2008 R2, added mod_rest.beam and mod_admin_extra.beam, configured the modules in cfg file.

On one server everything works as expected. On another server, same OS, same hardware, same setup, mod_rest takes 2 seconds to reply for each request.

I took mod_rest from here
http://code.google.com/p/wise4/downloads/detail?name=mod_rest.beam

and mod_admin_extra from ejabberd-2.1.11-3.el5.i386.rpm

I've tried almost everything and I'm quite sure it's an ejabberd related problem.
Here are some php logs of the interactions. I use curl for the post request in localhost.

[28-Sep-2012 09:35:51] rest-send: (1348817751.5765)register user100 xmpp.someserver.com xxxxxxxxxx
[28-Sep-2012 09:35:53] rest-revc: (1348817753.5761)
[28-Sep-2012 09:35:53] rest-send: (1348817753.5765)set_nickname user100 xmpp.someserver.com "Administrator"
[28-Sep-2012 09:35:55] rest-revc: (1348817755.5762)
[28-Sep-2012 09:35:55] rest-send: (1348817755.5768)get_roster user100 xmpp.someserver.com
[28-Sep-2012 09:35:57] rest-revc: (1348817757.5772)

Some ideas?
Thanks in advance.

regards
Marcello

Syndicate content