Subject | Re: Firebird connection slow through Internet |
---|---|
Author | nagypapi |
Post date | 2005-07-14T07:41:58Z |
Jdk 1.4 doesn't have the slow socket connection bug (at least with
me). I tried connecting over the Internet with zedebee (btw this
eliminates the slow socket connection bug, because you connect to
localhost which is by default in the hosts file), but at specific
times of the day, connecting to the fbserver (through zebedee tunnel)
takes 10-30 seconds, and a simple query takes sometimes 5+ seconds.
(it "seems" faster than not using zebedee though)
I know this isn't firebird-java related anymore (kick me), but I was
wondering maybe you experienced people could give me a hint why
connecting to a computer's www server takes just a few seconds, while
connecting to the same computer's fbserver takes much more. Both are
TCP sockets aren't they? Btw, connecting to a non fbserver java socket
takes quite a while too.
me). I tried connecting over the Internet with zedebee (btw this
eliminates the slow socket connection bug, because you connect to
localhost which is by default in the hosts file), but at specific
times of the day, connecting to the fbserver (through zebedee tunnel)
takes 10-30 seconds, and a simple query takes sometimes 5+ seconds.
(it "seems" faster than not using zebedee though)
I know this isn't firebird-java related anymore (kick me), but I was
wondering maybe you experienced people could give me a hint why
connecting to a computer's www server takes just a few seconds, while
connecting to the same computer's fbserver takes much more. Both are
TCP sockets aren't they? Btw, connecting to a non fbserver java socket
takes quite a while too.
--- In Firebird-Java@yahoogroups.com, Steven Jardine <steve@m...> wrote:
> This is probably the same bug as was discussed earlier:
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5092063
>
> It could be fixed with modified constructor call for JDK1.4+ but is
not compatible with JDK1.3. I haven't had a chance to provide a work
around for this behaviour. My research on this seems to indicate the
problem lies with an incorrectly configured DNS.
>
> If you are using Jaybird with JDK1.4+ you could patch it yourself
for the time being. I would also be willing to provide a patch or
compiled jar for that matter that would probably fix this problem for
JDK1.4+.
>
> Steve
>
>
> nagypapi wrote:
>
> >I want to use a java program that connects to a FireBird 1.52 server
> >with jaybird 1.5.5 through the Internet
> >
> >I tried it from Helsinki to Budapest with normal, unencrypted,
> >uncompressed connection
> >At about 13 o'clock, connecting to the server took 30+ seconds, and
> >queries were real slow too.
> >Later at night it was better, but still slow
> >
> >One of my test personnel :) tried it from Budapest to Budapest at main
> >office times, and it took 30+ seconds too
> >
> >These attempts were made at 3 different (not overloaded) computers on
> >the net, with small RTTs
> >
> >Do you have any idea why it was so slow?
> >
> >Are there any hidden parameters that might make it faster?
> >
> >Will ZeeDeeBee probably solve this problem?
> >
> >Or should I use another approach? (like creating a php site from
> >scratch that is hosted on the same computer as the firebird server, or
> >creating a serverlocal java application that forwards requests to the
> >server)
> >
> >Thank you for your much appreciated and endless wisdom,
> >
> >John
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >