Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Unstable internet causes program to slow down

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, We have a JavaFx Web Start application with some cron jobs synchronizing with a server via web services. When running in our test environment everything runs fast and stable for at least days. In the test environment, the internet connection is very good.

The problem comes when moving to the production environment. Same hardware, the only difference is that the internet connection is a usb dongle - and the signal is very bad.

So we get a lot of : Unexpected end of file from server
and Error writing to server

, and after a while (30 mins) the program gradually slows down to the point where it becomes unusable.

We connect via a UrlConnection, and do the usual cleanup by closing the streams. But somehow there seems to be a buildup of used resources, that slows the system down.

Its is running on Win7, Java7, FX2.2

Does anybody have any idea what is going on, and what to do about it ?

This is the code (and we do close the InputStreams in the calling methods)

    Bookmark Topic Watch Topic
  • New Topic