db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3435) Add an MBean for monitoring and managing the Network Server
Date Thu, 28 Feb 2008 16:07:51 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573339#action_12573339
] 

Knut Anders Hatlen commented on DERBY-3435:
-------------------------------------------

Looks good. A couple of small comments:

I think totalByteCount must be updated in DDMWriter.sendBytes() as well.

The way getBytesReceivedPerSecond() and getBytesSentPerSecond() calculate the average is very
vulnerable to loss of precision. If the time between two calls is 1999 ms, ((now - lastSentTime)/1000))
becomes 1999/1000 = 1. This means the returned value is twice as high as it should be. I think
you can preserve maximum precision by rewriting it like this:

  sentResult = (int) ((count - lastSentBytes) * 1000 / (now - lastSentTime));

> Add an MBean for monitoring and managing the Network Server
> -----------------------------------------------------------
>
>                 Key: DERBY-3435
>                 URL: https://issues.apache.org/jira/browse/DERBY-3435
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JMX
>            Reporter: John H. Embretsen
>            Assignee: John H. Embretsen
>             Fix For: 10.4.0.0
>
>         Attachments: d3435_v01.diff, d3435_v01.stat, derby-3435-live-data-v0.diff, derby-3435-live-data-v0.stat,
derby-3435-live-data-v1.zip, derby-3435-live-data-v2.zip
>
>
> Most functionality of and information about a running instance of the Network Server
is currently only available from the host running the Network Server, using the NetworkServerControl
API.
> With a JMX Management and Monitoring service in place utilizing JMX (DERBY-1387), it
is possible to expose some of the Network Server functionality and information through an
MBean that is specific to the Network Server, to both local and remote users (JMX clients),
subject to security restrictions. Access to Derby libraries on the client side is not even
a requirement, potentially making a server administrator's job a lot easier.

-- 
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