About Mikazo Tech Blog

My name is Mike, and this blog is my way of saving people time. If someone has a specific problem that I've encountered before, hopefully these posts will save them the extraneous Googling I had to go through to solve the same problem. Also, when I have something to say about technology today, I will post my thoughts here. If this blog has helped you out, even a little bit, vote on the poll below, or let me know by sending me an email. I'm always open to exchanging links with other blogs or websites that share a similar interest.

Tuesday, December 16, 2008

Java File Transfer Buffer Size

As I may have mentioned in a previous post, I've been working on a file transfer program written in Java. I was getting very sick of MSN file transfer and other stupid such mechanisms that are unreliable and do not allow transfer of executable files.

I was testing v1.0 of my program over the LAN with a hefty-sized file, and found that the transfer speed was only about 10 kB/s. Frustrated, I did a little research on Maximum Transmission Unit (MTU) size.

The byte buffer size I was using was 1024 bytes at a time. Apparently most LANs MTU value is 1500. I changed the byte buffer size to 1500 and some other small things, and the transfer speed jumped to around 1 MB/s. This was between two computers connected to the same router, and I have yet to test it over the internet.

1 comments:

pbsl said...

you have a nice site. thanks for sharing this site. there are various kinds of ebooks are available here

http://feboook.blogspot.com

Donate to Mikazo Tech Blog