From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 09:28:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0957C16A4CE for ; Thu, 12 May 2005 09:28:03 +0000 (GMT) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id C19E843D70 for ; Thu, 12 May 2005 09:28:01 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1DWACh-000NUj-A6 for freebsd-hackers@FreeBSD.org; Thu, 12 May 2005 18:42:03 +0900 Message-Id: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 12 May 2005 18:26:35 +0900 To: freebsd-hackers@FreeBSD.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 09:28:03 -0000 Hi hackers, I thought somebody in this list could help me. I looked through Java forums at java.sun.com, and didn't find any solution. I'm writing speed test program in Java, and my upload speed test shows wrong result for Dial-up connection. It uses POST method and sends large data (128k) to Apache 1.3.x web server (FreeBSD). The web page is php script and it receives large data correct, but test time is "very" fast. Result is unbelievable, it is something like 500kbps for 56kbps Dial-Up connection, which is completely wrong. Can somebody tell me why is this happening? How can I correct this problem? How can I calculate my upload speed? What data size should I use for testing? I hope somebody in this list point me to the right direction. Maybe I'm doing something wrong, or missing something. thanks in advance, Ganbold Part of the Java code: ........... buffer_len = 128*1024; starttime1 = System.currentTimeMillis(); URL url = new URL(web_site); URLConnection connection = url.openConnection(); connection.setDoOutput(true); PrintWriter out = new PrintWriter(connection.getOutputStream()); out.print("test="); for(i=0; i