I created a Restlet-based web service which uses POST/Json.
Problem is that when testing it on local machine,
it works perfectly well. But when it is deployed on a server, it
takes about 10 seconds more than when tested on my local development
machine to get response even though there is no other processes using
server's resources.
I solved the problem by using Apache Http Client instead of
ClientResource from RESTlet.
I tested both ClientResource and Apache HTTP for the same RESTlet-based web service on remote Linux server. The former took about 10 seconds and the latter less than 1 second. And I don't know why.