Save actions are slow: I/O exception, Connection refused: connect

We see this error message several times in the log for each save:
I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect

Example: adding a journaled update to an Incident takes 40 seconds.

Theory: can not connect to database before after several retries.

Commiting save action at 16:23:22, gets stored at16:24:05. See attachment Skjermbilde.png.

Log excerpt:
1868( 4376) 03/02/2018 16:23:17 RTE I Using "utalloc" memory manager, mode [0]
1868( 4376) 03/02/2018 16:23:17 RTE I Process sm 9.50.0025 () System: 13087 (0x784DFB00) on PC (x64 64-bit) running Windows Server 2008 R2 SP1 (6.1 Build 7601)
Timezone GMT 01:00 daylight Locale nb_NO from Udi-p- v-hpsm01
1868( 4376) 03/02/2018 16:23:17 RTE I Connected to SOAP client at 10.252.134.76
1868( 4376) 03/02/2018 16:23:17 RTE I Thread attaching to resources with key 0x784DFB00
1868( 4376) 03/02/2018 16:23:17 RTE I Info: SQL State: 01000-5701 Message: [Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'HPSM'.
1868( 4376) 03/02/2018 16:23:17 RTE I Info: SQL State: 01000-5703 Message: [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting to us_english.
1868( 4376) 03/02/2018 16:23:17 RTE I API=SQLConnect
1868( 4376) 03/02/2018 16:23:17 RTE I Connection established to dbtype 'sqlserver' database 'HPSM940' user 'hpsm'
1868( 4376) 03/02/2018 16:23:17 RTE I Connected to Data source 'HPSM940' SQL server 'UDI-P- SQLDB16\INTERN2014' version: 12.0.5553 through SQL driver version:
6.1.7601 using database 'HPSM' as user 'HPSM'
1868( 4376) 03/02/2018 16:23:17 RTE I MS SQL Server collation 'Danish_Norwegian_CI_AS', varchar codepage 1252, comparison 196609: case insensitive, accent
sensitive
1868( 4376) 03/02/2018 16:23:17 RTE I Thread DAOThread - serviceportal initialization done. Thread 5 of 35.
1868( 4376) 03/02/2018 16:23:17 RTE I Total sessions since process began: 11553
1868( 4376) 03/02/2018 16:23:17 JRTE I GUID=455c8fdb-8d5d- 463b-a927- 729b705eb4bb
1868( 4376) 03/02/2018 16:23:17 RTE I User serviceportal has logged in and is using a Named license ( 8 out of a maximum 20 )
1868( 4376) 03/02/2018 16:23:18 RTE A Performance-7- $G.timezone.java.ids, Globallist $G.timezone.java.ids contains too many items! num=600 ;
application(apm.global.initer), panel(evaluate)
1868( 4376) 03/02/2018 16:23:18 RTE A Performance-7- $G.files, Globallist $G.files contains too many items! num=830 ; application(apm.global.initer), panel(start.loop)
1868( 4376) 03/02/2018 16:23:18 RTE A Performance-7- $G.tables.dsp, Globallist $G.tables.dsp contains too many items! num=830 ; application(apm.global.initer),
panel(start.loop)
1868( 4376) 03/02/2018 16:23:18 RTE I -Memory : S(4253552) O(1008668) MAX(5262220) - MALLOC's Total(635281)
1868( 4376) 03/02/2018 16:23:18 RTE I Base login Response: 1.076 -- RAD: 0.062 JS: 0.157 Log:0.000 Database: 0.857(03185) LDAP: 0.000 (CPU 0.405)
application:login,cleanup

5756( 8656) 03/02/2018 16:23:23 KMSearchEngineTimeout is defined as 20 seconds.
5756( 8656) 03/02/2018 16:23:24 I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
5756( 8656) 03/02/2018 16:23:24 Retrying request
5756( 8656) 03/02/2018 16:23:25 I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
5756( 8656) 03/02/2018 16:23:25 Retrying request
5756( 8656) 03/02/2018 16:23:26 I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
5756( 8656) 03/02/2018 16:23:26 Retrying request
5756( 8656) 03/02/2018 16:23:27 [Ljava.lang.StackTraceElement;@1fa6b6a
org.apache.solr.client.solrj.SolrServerException: java.net.ConnectException: Connection refused: connect
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:483)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
at org.apache.solr.client.solrj.request.SolrPing.process(SolrPing.java:60)
at org.apache.solr.client.solrj.SolrServer.ping(SolrServer.java:114)
at com.hp.ov.sm.server.plugins.knowledgemanagement.solr.KMSolrSearch.pingEngine(KMSolrSearch.java:1244)
at com.hp.ov.sm.server.plugins.knowledgemanagement.solr.KMSolrSearch.initializeEngine(KMSolrSearch.java:924)
at com.hp.ov.sm.server.utility.TopazThread.handleRequest(Native Method)
at com.hp.ov.sm.server.utility.TopazThread.processRequest(TopazThread.java:413)
at com.hp.ov.sm.server.utility.TopazThread.process(TopazThread.java:339)
at com.hp.ov.sm.server.utility.TopazThread.run(TopazThread.java:354)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:286)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:427)
... 9 more