Anyone ?
Can someone please take a look on this issue ?
It just seems that you are heavily using the server, sending a hell lot
of data to it. Do you have any releavnt informations about the load on
your server ?
If you look at the code pumping out CPU, you'll see that there is no
black magic in it :
//
// On some platforms, a call to System.in.read(new byte[65536],
0,32768) always throws an IOException.
// So we need to protect against that and chunk the call into
smaller calls.
// This problem was found on Windows, JDK 1.6.0_03-b05.
//
protected int securedRead(InputStream in, byte[] buf, int off, int
len) throws IOException {
int n = 0;
for (;;) {
int nread = in.read(buf, off + n, Math.min(1024, len - n));
if (nread <= 0) {
return (n == 0) ? nread : n;
}
n += nread;
if (n >= len) {
return n;
}
// if not closed but no bytes available, return
if (in != null && in.available() <= 0) {
return n;
}
}
}
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com