Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance Problems MRJ2.2 and java.net.socket/sun.net.ftp -> slow writing to the net



"Thomas Fettig" <email@hidden> wrote:

>i'm still working on a java applet for MacOS 9, that is Mrj2.2.x and
>Netscape 7.02. Everything we wanted to do technically (jni, signing,
>dom-access) is working sufficiently well, but one thing is constantly slow
>(really slow): Using java.net.socket or sun.net.ftp within MRJ. The best i
>get is about 2MBytes/sec on a 100 Mbit (10MByte/sec) Ethernet. I have a
>clean switched connection to the unix-server and Fetch is reaching about
>8-9 MBytes/sec (upload direction).

First, I'm assuming that you're using "ftp://"; URLs, because you mention
sun.net.ftp, and compare to Fetch's thruput.

Have you profiled your program to see where it's spending its time? In
particular, have you determined whether the slowness is the actual data
transmission (bandwidth), or whether it's the time to establish the
connection (latency)?

Have you looked at replacing the built-in FTP client implementation with
another one?

Here's a few examples of FTP clients from my Frequently Pasted URLs:
<http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/>
<http://www.savarese.org/oro/docs/NetComponents/api/index.html>
<http://www.fooware.com/>

You could probably find more with some quality time at a search engine.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.