public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/19621] New: Network-performance issue in java.io.PrintStream
@ 2005-01-25 11:41 mkrause at atronicsystems dot com
2005-01-29 0:27 ` [Bug libgcj/19621] " mckinlay at redhat dot com
2005-04-30 16:12 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: mkrause at atronicsystems dot com @ 2005-01-25 11:41 UTC (permalink / raw)
To: java-prs
When using a PrintStream in order to output 101 bytes via a socket, the output
is split into to packets with 100 and 1 byte respectively. A native JDK sends
101 bytes/packet.
The program reads
import java.io.PrintStream;
import java.net.Socket;
public class Test100ByteProblem {
public static void main(String args[]){
Socket s;
try {
int i = 0;
s = new Socket("127.0.0.1", 3333);
PrintStream ps = new PrintStream(s.getOutputStream());
while(i++<20){
ps.
print("qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqqqqqq");
ps.flush();
}
s.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
$gcj -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcj.spec
rename spec lib to liborig
Configured with: /var/tmp/portage/gcc-3.3.2/work/gcc-3.3.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib
--with-x --disable-multilib
Thread model: posix
gcc version 3.3.2 (Gentoo Linux 3.3.2, propolice)
--
Summary: Network-performance issue in java.io.PrintStream
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mkrause at atronicsystems dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19621
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-30 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-25 11:41 [Bug libgcj/19621] New: Network-performance issue in java.io.PrintStream mkrause at atronicsystems dot com
2005-01-29 0:27 ` [Bug libgcj/19621] " mckinlay at redhat dot com
2005-04-30 16:12 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).