Slow Connection

Поиск
Список
Период
Сортировка
Искать

Slow Connection

От:
Achmad Amin <ma_achmad@yahoo.com>
Дата:
Dear all,
I develop application using Delphi and Postgres (use
Winzeos component to connect to postgres). But I have
problem, when I run application at first time, I wait
about 1 minute to see the application. I think this
happen because my application to connect to postgres
too slow. What I must do to reduce speed connection
between my application to postgres ?
FYI, my server use Linux RH 7.1, Postgres 7.0.2, CPU
Cyrix M-II 300, RAM 32 MB, NIC Realtek 8029 
my client use Win98, CPU P200MMX, RAM 49 MB, and
delphi 5 for develop app.

regards,
Achmad MA

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Re: Slow Connection

От:
Andreas Kretzer <andi@kretzer-berlin.de>
Дата:
Achmad Amin schrieb:
Dear all,
I develop application using Delphi and Postgres (use
Winzeos component to connect to postgres). But I have
problem, when I run application at first time, I wait
about 1 minute to see the application. I think this
happen because my application to connect to postgres
too slow. What I must do to reduce speed connection
                              ^^^^^^^^^^^^^ you mean increase?
between my application to postgres ?
Well, often this behavior can result from a timed out
name lookup (I assume you don't really have an official
name for your client :-) To check this, try to 'telnet'
to your server before you do anything else (so you will
have the same situation). If this takes more than just
one or two seconds - but succeeds after a while, perhaps
the one minute delay you mentioned - then it probably is
the name lookup. In this case you should add the IP address
of your Win98 box and a name to either your '/etc/hosts' or
your named data base (probably in /var/named).

If telnet just works fast then try to do a select statement
using 'psql'. Does this one take the that long? Can you
afterwards connect fast from your Windoze-Box? Then
it probably is the size of your database in relation to your
memory ... 32MB is not much for a database server if you
want to handle a huge amount of data. This would be accompanied
by havy disk activity. Perhaps you can shut down your X
environment - if you have it running.

Hope this helps

Andreas

Re: Slow Connection

От:
Achmad Amin <ma_achmad@yahoo.com>
Дата:


> Well, often this behavior can result from a timed
> out
> name lookup (I assume you don't really have an
> official
> name for your client :-) To check this, try to
> 'telnet'
> to your server before you do anything else (so you
> will
> have the same situation). If this takes more than
> just
> one or two seconds - but succeeds after a while,
> perhaps
> the one minute delay you mentioned - then it
> probably is
> the name lookup. In this case you should add the IP
> address
> of your Win98 box and a name to either your
> '/etc/hosts' or
> your named data base (probably in /var/named).
> 

I already did that, and telnet works fine.
Yesterday, I try to trace, then i found my problem,
but I can resolve it :(  My problem is when app. send
query (ZPgSqlQuery component)  to server or when i try
to set ZPgSqlQuery properties active = true, it take
much time. 


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Re: Slow Connection

От:
M.Feldtmann@t-online.de (Marten Feldtmann)
Дата:


Andreas Kretzer schrieb:
> 
> Achmad Amin schrieb:
> 
> > Dear all,
> > I develop application using Delphi and Postgres (use
> > Winzeos component to connect to postgres). But I have
> > problem, when I run application at first time, I wait
> > about 1 minute to see the application. I think this
> > happen because my application to connect to postgres
> > too slow. What I must do to reduce speed connection
> 
>                               ^^^^^^^^^^^^^ you mean increase?
> 
> > between my application to postgres ?
> 
> Well, often this behavior can result from a timed out
> name lookup (I assume you don't really have an official
> name for your client :-) To check this, try to 'telnet'
> to your server before you do anything else (so you will
> have the same situation). If this takes more than just
> one or two seconds - but succeeds after a while, perhaps
> the one minute delay you mentioned - then it probably is
> the name lookup. 
Even if the name lookup works ... it may be the reverse 
name lookup .... try to use 
nslookup 

to find it out.
Marten

FAQ