java - JSoup execute method slow on linux -


i'm having issue performance of http request within jsoup.

on development pc (windows 7) works great. when deploy same service on suse linux enterprise server, http requests slower. difference +- 15 seconds. (15 seconds slower on linux)

jsoup version 1.7.3. java version : 1.7.0_51. 

the jvm parameters same on both machines.

my call:

 connection.response response =   jsoup.connect(urlwrk).data(headerdatamap).cookies(cookiestore).method(httpmethod).useragent(useragent).timeout(requesttimeout).execute(); 

i'm using post method.

i started tcpdump session , looks execute method hangs few seconds before executes http request.

any appreciated!

you might have slower dns resolution in linux box. check dns servers in /etc/resolv.conf. maybe first 1 not responding , times out before trying second.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -