Hi ,
I have registered all function stats to JMX by creating new bean.
But need to know what Is the correct place register this bean.
I did like this :
public void handleFunctionCreation() throws ManagementException {
Map<String, Function> functionMap =
FunctionService.getRegisteredFunctions();
logger.info("akhand :functionMap:"+functionMap.size());
for(String funid :functionMap.keySet())
{
Function functionDetail= functionMap.get(funid);
FunctionStatsMBeanBridge functionStatsMBeanBridge = new
FunctionStatsMBeanBridge(functionDetail,cacheImpl, service);
FunctionStatsMXBean functionBean = new
FunctionStatsMBean(functionStatsMBeanBridge);
ObjectName senderObjectName =
MBeanJMXAdapter.getFunctionStatsMBeanName(
cacheImpl.getDistributedSystem().getDistributedMember(),
funid);
ObjectName changedFunctionMBeanName =
service.registerInternalMBean(functionBean, senderObjectName);
service.federate(changedFunctionMBeanName, FunctionStatsMXBean.class,
true);
}
}
But from where I need to call this method .
Currently I called above method from ManagementListener.java
case CACHE_SERVER_START:
CacheServer startedServer = (CacheServer) resource;
adapter.handleCacheServerStart(startedServer);
adapter.handleFunctionCreation();
break;
Please suggest.
Thanks,
Dinesh Akhand
-----Original Message-----
From: Dinesh Akhand
Sent: Friday, June 9, 2017 6:44 PM
To: [email protected]; [email protected]
Subject: RE: Need information about FunctionStatistics
Hi Team,
Problem Solved ,
Function Stats works fine if function is associated with JVM . else it will
display 0 .
Thanks,
Dinesh Akhand
From: Dinesh Akhand
Sent: Friday, June 9, 2017 4:34 PM
To: [email protected]<mailto:[email protected]>; '[email protected]'
<[email protected]<mailto:[email protected]>>
Subject: RE: Need information about FunctionStatistics
Hi Barry,
Yes , I can see the function statics in VSD but looks like
All the stats are 0 . not even for single function stats are correct .
FunctionExecution, 2265, FunctionServiceStatistics: "2017/06/07 12:11:09.201
IDT" samples=502
functionExecutionsCompleted operations/sec: samples=501 min=0 max=0.2
average=0 stddev=0.01 last=0
functionExecutionsCompletedProcessingTime nanoseconds/sec: samples=501 min=0
max=190219.8 average=379.68 stddev=8498.39 last=0
functionExecutionsRunning operations: samples=502 min=0 max=0 average=0
stddev=0 last=0
resultsSentToResultCollector operations/sec: samples=501 min=0 max=0.2
average=0 stddev=0.01 last=0
resultsReceived operations/sec: samples=501 min=0 max=0 average=0 stddev=0
last=0
functionExecutionCalls operations/sec: samples=501 min=0 max=0.2 average=0
stddev=0.01 last=0
functionExecutionsHasResultCompletedProcessingTime nanoseconds/sec:
samples=501 min=0 max=190219.8 average=379.68 stddev=8498.39 last=0
functionExecutionsHasResultRunning operations: samples=502 min=0 max=0
average=0 stddev=0 last=0
functionExecutionsExceptions operations/sec: samples=501 min=0 max=0
average=0 stddev=0 last=0
Can you please confirm function stats values are correct in your case.
Thanks,
Dinesh Akhand
-----Original Message-----
From: Barry Oglesby [mailto:[email protected]]
Sent: Thursday, June 8, 2017 10:38 PM
To:
[email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>
Subject: Re: Need information about FunctionStatistics
Dinesh,
The FunctionStatistics and FunctionServiceStatistics look to be displaying
properly in vsd. Are you not seeing them?
Thanks,
Barry Oglesby
On Thu, Jun 8, 2017 at 9:51 AM, Kirk Lund
<[email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>>
wrote:
> I think we would probably need to introduce a new
> FunctionServiceMXBean with these stats as attributes or add
> showFunctionMetrics() operation to MemberMXBean.
>
> On Wed, Jun 7, 2017 at 6:32 AM, Dinesh Akhand
> <[email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>>
> wrote:
>
> > Hi Team,
> >
> > Currently I can see Function stats are getting generated .
> > functionExecutionsCompleted operations/sec: samples=1955 min=0 max=0
> > average=0 stddev=0 last=0
> > functionExecutionsCompletedProcessingTime nanoseconds/sec:
> samples=1955
> > min=0 max=0 average=0 stddev=0 last=0
> > functionExecutionsRunning operations: samples=1956 min=0 max=0
> average=0
> > stddev=0 last=0
> > resultsSentToResultCollector operations/sec: samples=1955 min=0
> > max=2.6
> > average=0 stddev=0.1 last=0
> > resultsReceived operations/sec: samples=1955 min=0 max=2.6
> > average=0
> > stddev=0.1 last=0
> > functionExecutionCalls operations/sec: samples=1955 min=0 max=0
> > average=0 stddev=0 last=0
> >
> > but I am not able to see them on JMX .
> >
> > I found last end point in MemberMBeanBridge for JMX. Is there any
> > information and document can you provide.
> > I want to publish FunctionStatistics on JMX , any suggestion will be
> > welcome.
> >
> >
> > Thanks,
> > Dinesh Akhand
> > This message and the information contained herein is proprietary and
> > confidential and subject to the Amdocs policy statement,
> >
> > you may review at https://www.amdocs.com/about/email-disclaimer <
> > https://www.amdocs.com/about/email-disclaimer>
> >
>
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at https://www.amdocs.com/about/email-disclaimer
<https://www.amdocs.com/about/email-disclaimer>
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at https://www.amdocs.com/about/email-disclaimer
<https://www.amdocs.com/about/email-disclaimer>