How many concurrent clients do you expect to have?

sent from the droid
On 22 Jul 2011 10:35, "hoangcuongit" <[email protected]> wrote:
> Hi everyone,
>
> I'm totally new to Apache Wink. Currently, I'm trying to send a very huge
> file (more than 2Gb) to Server Wink from Client Wink. Unfortunately, I got
a
> trouble like this:
>
> "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space"
>
> when using the regular way as follow:
>
> File f = new File("D:\\data\\1Gdata.csv");
>
> RestClient client = new RestClient();
> Resource resource =
> client.resource("http://localhost:8080/WinkBasedTcsServer/rest/SendFile";);
> try {
> ClientResponse response = resource.post(new FileInputStream(f));
> System.out.println(response.getStatusCode());
> } catch (FileNotFoundException e) {
> e.printStackTrace();
> }
>
> Would you like to suggest me any idea to solve this kind of trouble?
>
> Thank so much in advance!
> Cuong
>
> --
> View this message in context:
http://apache-wink-users.3471013.n2.nabble.com/Upload-a-huge-file-more-than-2Gb-tp6609906p6609906.html
> Sent from the Apache Wink Users mailing list archive at Nabble.com.

Reply via email to