I setup a JRun cluster with each instance running CFMX. For some reason I
can't get metrics logging to work now. I use the following, see way below,
in server-inf/jrun.xml, works wonderful for a single instance, but not for a
cluster of instances. I see this error in the logs when I start an instance
in the cluster. Can metrics loggin be used in a cluster?
04/04 10:11:43,error Deployer Service failed to deploy
file:/D:/JRun4/lib/jrun-comp.ear
* null
[1]java.lang.NullPointerException
at jrun.ejb.EJBContainer.init(EJBContainer.java:330)
at jrun.ejb.ClientInvokableContainer.init(ClientInvokableContainer.java:206)
at jrun.ejb.StatefulSessionContainer.init(StatefulSessionContainer.java:69)
at jrun.ea.EnterpriseApplication.init(EnterpriseApplication.java:180)
at jrun.deployment.DeployerService.initModules(DeployerService.java:709)
at jrun.deployment.DeployerService.createWatchedDeployment(
DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)
at jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java
:111)
at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at jrunx.kernel.JRun.startServer(JRun.java:575)
at jrunx.kernel.JRun.<init>(JRun.java:493)
at jrunx.kernel.JRun$1.run(JRun.java:346)
at java.security.AccessController.doPrivileged(Native Method)
at jrunx.kernel.JRun.start(JRun.java:343)
at jrunx.kernel.JRun.startByNTService(JRun.java:427)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrunx.kernel.JRun.invoke(JRun.java:180)
at jrunx.kernel.JRun.main(JRun.java:168)
[0]jrun.deployment.DeploymentException: Deployer Service failed to deploy
file:/D:/JRun4/lib/jrun-comp.ear
* null
at jrun.deployment.DeployerService.createWatchedDeployment(
DeployerService.java:315)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)
at jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:710)
at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java
:111)
at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at jrunx.kernel.JRun.startServer(JRun.java:575)
at jrunx.kernel.JRun.<init>(JRun.java:493)
at jrunx.kernel.JRun$1.run(JRun.java:346)
at java.security.AccessController.doPrivileged(Native Method)
at jrunx.kernel.JRun.start(JRun.java:343)
at jrunx.kernel.JRun.startByNTService(JRun.java:427)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrunx.kernel.JRun.invoke(JRun.java:180)
at jrunx.kernel.JRun.main(JRun.java:168)
entry in server-inf/jrun.xml
<service class="jrunx.logger.LoggerService" name="LoggerService">
<attribute name="format">{server.date},{log.level} {log.message}{
log.exception}</attribute>
<!-- You can modify format to suit your need. -->
<!-- EXAMPLE: <attribute name="format">{date MM/dd HH:mm:ss} {log.message}{
log.exception}</attribute> -->
<attribute name="errorEnabled">true</attribute>
<attribute name="warningEnabled">true</attribute>
<attribute name="infoEnabled">true</attribute>
<attribute name="debugEnabled">true</attribute>
<!-- You may also need to uncomment MetricsService if you want metrics
enabled -->
<attribute name="metricsEnabled">true</attribute>
<attribute name="metricsLogFrequency">60</attribute>
<attribute name="metricsFormat">,{jrpp.listenTh},{jrpp.delayTh},{jrpp.idleTh
},{jrpp.busyTh},{jrpp.totalTh},{jrpp.delayRq},{jrpp.droppedRq},{jrpp.delayMs
},{totalMemory},{freeMemory},{sessions}</attribute>
<service class="jrunx.logger.ThreadedLogEventHandler"
name="ThreadedLogEventHandler">
<service class="jrunx.logger.ConsoleLogEventHandler"
name=":service=ConsoleLogEventHandler" />
<service class="jrunx.logger.FileLogEventHandler"
name="FileLogEventHandler">
<attribute
name="filename">{jrun.rootdir}/logs/{jrun.server.name<http://jrun.server.name>
}-{log.level}.log</attribute>
<attribute name="rotationSize">200k</attribute>
<attribute name="rotationFiles">10</attribute>
<!-- Use heading to specify an alternate log heading for system event log.
-->
<!-- EXAMPLE: <attribute name="heading"># Created by JRun on {date MM/dd
HH:mm:ss}</attribute> -->
<attribute
name="heading">DateTime,,listenTh,delayTh,idleTh,busyTh,totalTh,delayRq,droppedRq,delayMs,TotalMem,FreeMem</attribute>
<attribute name="closeDelay">5000</attribute>
<attribute name="deleteOnExit">false</attribute>
</service>
</service>
</service>
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Dreamweaver with Homesite Plus from House of Fusion, a Macromedia
Authorized Affiliate and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=54
Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5334
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54