db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2369) NetworkServerControl.shutdown() takes at least 1.5 seconds, could be faster.
Date Mon, 29 Jun 2009 14:13:47 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dag H. Wanvik updated DERBY-2369:
---------------------------------

    Derby Categories: [Performance]

> NetworkServerControl.shutdown() takes at least 1.5 seconds, could be faster.
> ----------------------------------------------------------------------------
>
>                 Key: DERBY-2369
>                 URL: https://issues.apache.org/jira/browse/DERBY-2369
>             Project: Derby
>          Issue Type: Improvement
>          Components: Network Server
>            Reporter: Daniel John Debrunner
>            Assignee: Daniel John Debrunner
>            Priority: Minor
>             Fix For: 10.3.1.4
>
>         Attachments: derby2369_reuse_socket.txt
>
>
> The shutdown command takes at least 1.5 seconds, broken into two parts:
>   - 0.5 seconds is the first sleep after the shutdown request and before the first ping
to see if the server is shutdown.
>   - ~1 second is the time trying to obtain a socket in order to perform the ping to see
if the server is shutdown. This socket creation fails (correctly) but takes time to do so.
> The socket creation time can be avoided by re-using the socket that was used to send
the shutdown request.
> The sleep time could be reduced by sleeping on a finer granularity, 0.5secs is a long
time for a modern processor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message