Update: I downloaded the tester from thoeni.io and ran the test before and 
after applying the /etc/hosts change.
The tester did not show any improvement at all: still about 5ms to execute.

However, my real app (a Spring Boot web-app running in Tomcat 8 accessing 
H2 in server mode) now appears to start and stop as quickly as it did 
before I installed MacOS Sierra.
So I call that a win!

Bob


On Saturday, November 19, 2016 at 2:32:14 PM UTC-5, [email protected] wrote:
>
> Some further testing in my case shows the issue is related to Java 8, 
> because Java 7 does not show the slowdown.
> I am still seeing the issue with Java 8u112 (which has several 
> Sierra-related fixes in it).
> Using h2 version 1.4.193 with url:
>
> jdbc:h2:ssl://localhost:8955///Users/bob/path-to-my/db;MVCC=TRUE;MAX_COMPACT_TIME=5000;MV_STORE=FALSE
>
> Bob
>
>
> On Tuesday, November 15, 2016 at 5:29:56 PM UTC-5, Tomas Pospichal wrote:
>>
>> One possibility for slowdowns when opening a connection: sometimes even 
>> innocent looking net calls from Java produce reverse DNS attempts, which 
>> could cause visible slowdowns on a local network. In this situation, using 
>> an IP address might be paradoxically slower than using a host name.
>>
>> This behavior might be very system dependent, so it is better to state 
>> what version of system and Java you have, and what URL string you used (was 
>> it SSL?).
>>
>> For illustration, see
>>
>> http://stackoverflow.com/questions/3193936/how-to-disable-javas-ssl-reverse-dns-lookup?rq=1
>> or
>> https://github.com/spray/spray/issues/993
>>
>> Regards,
>> Tomas
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to