How to determine why connection creation lasts so long? On one of my servers (Windows 2008 Server), creating connection in Java to PostgreSQL server takes from 1,5 to 4 seconds! I have no clue how to start checking what can be wrong. I tried different database on this server, different user. Still the same. If I work with backup of database on my computer, it's 150ms. I would be grateful for any tip where to start.
I answer myself - it was SSL set to on.  Setting ssl to off in postgresql.conf solved the problem.