【发布时间】:2015-08-20 10:46:30
【问题描述】:
我使用Jersey发送一个GET请求:
Client client = Client.create();
WebResource webResource = client.resource(uri);
ClientResponse res = webResource.queryParams(params).get(ClientResponse.class);
//hangs out forever if uri returns big data(maybe > 2Mb, since those code run normally with about 1Mb data)
String result = res.getEntity(String.class);
应用程序正在 Tomcat 7 上运行。 我需要配置什么吗?
任何帮助将不胜感激。
【问题讨论】:
-
您确定是泽西岛的问题而不是服务器本身的问题吗?您是否向服务提出了手动请求? (通过 curl 或浏览器)?