You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by hsinchen <hc...@gmail.com> on 2015/08/27 13:43:29 UTC

Karaf Decanter

Hi,

I have installed the Decanter related features in a clean Karaf 3.0.3 and
JDK 1.7.

feature:repo-add
mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features
feature:install decanter-collector-log
feature:install decanter-collector-jmx

feature:install decanter-appender-elasticsearch
feature:install elasticsearch
feature:install kibana

I don't modify any of cfg in etc folder and see an exception in karaf log.
--log--
2015-08-27 19:39:00,544 | ERROR | scheduler-simple | JmxCollector                    
| 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 | SecurityException: 
java.lang.SecurityException: Insufficient roles/credentials for operation
----

I unmark the username and password in
org.apache.karaf.decanter.collector.jmx-local.cfg to use karaf/karaf. The
exception is the same.

Anything I need to do.

By User Guide...
Karaf dashboard uses the data harvested by the default JMX collector, and
the log collector. Especially, it provides details about the threads,
memory, garbage collection, etc.
----

Does it means that Kibana would get the data from JMX collector and log
collector directly without appender. 


Thanks.



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf Decanter

Posted by hsinchen <hc...@gmail.com>.
Hi,

The Karaf console shows Out of Memory Error after one or two days lives.

root>Exception in thread "decanter-scheduler-simple" java.lang.OutOfMemoryE
rror: GC overhead limit exceeded
        at
sun.reflect.GeneratedSerializationConstructorAccessor10380.newInstanc
e(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:941)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
755)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
64)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)

        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
771)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at java.util.HashMap.readObject(HashMap.java:1043)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991
)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)

        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
771)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
64)
        at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:49
8)
        at
javax.management.openmbean.TabularDataSupport.readObject(TabularDataS
upport.java:912)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991
)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)

        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
771)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:324)

Exception in thread "decanter-scheduler-simple" java.lang.OutOfMemoryError:
GC o
verhead limit exceeded



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096p4042366.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf Decanter

Posted by hsinchen <hc...@gmail.com>.
Hi,

It works now. I don't change the system.properities. Just test it again this
moment after trying several url combination. It works like at Karaf 3.0.4
(without change url).

But, the warn is also shown like at Karaf 3.0.4. Testing in Windows 7 and
JDK 1.7. The system-collector is uninstalled because of running in Windows.
But, the warn still shows in the log file and Karaf Decanter dashboard - Log
Panel. Maybe, this information is shown by Kibana Dashboard or by
decanter-appender-elasticsearch

2015-09-01 08:53:21,192 | INFO  | a]-nio2-thread-3 | ServerSession                   
| 28 - org.apache.sshd.core - 0.12.0 | Server session created from
/127.0.0.1:62030
2015-09-01 08:53:21,194 | WARN  | a]-nio2-thread-3 | ServerSession                   
| 28 - org.apache.sshd.core - 0.12.0 | Exception caught
java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
	at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
Method)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:488)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:633)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:272)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:293)[:1.7.0]
	at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:173)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:129)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:108)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.12.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
	at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
2015-09-01 08:53:21,194 | WARN  | a]-nio2-thread-7 | ServerSession                   
| 28 - org.apache.sshd.core - 0.12.0 | Exception caught
java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
	at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.write0(Native
Method)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$900(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.run(WindowsAsynchronousSocketChannelImpl.java:754)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implWrite(WindowsAsynchronousSocketChannelImpl.java:891)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:378)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:395)[:1.7.0]
	at
java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:560)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.startWriting(Nio2Session.java:212)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.access$1200(Nio2Session.java:47)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session$2.finishWrite(Nio2Session.java:239)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:225)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:212)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.12.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
	at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
2015-09-01 08:53:26,855 | INFO  | a]-nio2-thread-8 | ServerSession                   
| 28 - org.apache.sshd.core - 0.12.0 | Server session created from
/127.0.0.1:62034
2015-09-01 08:53:26,856 | INFO  | a]-nio2-thread-8 | Nio2Session                     
| 28 - org.apache.sshd.core - 0.12.0 | Exception handler threw exception,
closing the session
java.lang.IllegalStateException: No session available
	at
org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:49)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.exceptionCaught(Nio2Session.java:126)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.access$500(Nio2Session.java:47)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session$2.onFailed(Nio2Session.java:230)
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$2.run(Nio2CompletionHandler.java:41)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.failed(Nio2CompletionHandler.java:39)[28:org.apache.sshd.core:0.12.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:128)[:1.7.0]
	at sun.nio.ch.Invoker.invokeDirect(Invoker.java:145)[:1.7.0]
	at sun.nio.ch.Invoker.invoke(Invoker.java:173)[:1.7.0]
	at sun.nio.ch.Invoker.invoke(Invoker.java:285)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.run(WindowsAsynchronousSocketChannelImpl.java:787)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implWrite(WindowsAsynchronousSocketChannelImpl.java:891)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:378)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:395)[:1.7.0]
	at
java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:560)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.startWriting(Nio2Session.java:212)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.write(Nio2Session.java:115)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.session.AbstractSession.doWritePacket(AbstractSession.java:508)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.session.AbstractSession.writePacket(AbstractSession.java:495)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.session.AbstractSession.sendKexInit(AbstractSession.java:856)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.server.session.ServerSession.sendKexInit(ServerSession.java:128)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.server.session.ServerSession.<init>(ServerSession.java:60)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.server.session.SessionFactory.doCreateSession(SessionFactory.java:43)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.session.AbstractSessionFactory.createSession(AbstractSessionFactory.java:38)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.AbstractSessionIoHandler.sessionCreated(AbstractSessionIoHandler.java:36)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:127)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:108)[28:org.apache.sshd.core:0.12.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.12.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
	at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
Caused by: java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
	at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.write0(Native
Method)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$900(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.run(WindowsAsynchronousSocketChannelImpl.java:754)[:1.7.0]
	... 25 more
2015-09-01 08:53:32,341 | INFO  | ]-timer-thread-1 | ServerSession                   
| 28 - org.apache.sshd.core - 0.12.0 | Disconnecting: Session has timed out
waiting for authentication after 120000 ms.





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096p4042209.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf Decanter

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Did you change the instance name in etc/system.properties:

karaf.name=root

The JMX URL is based on the karaf.name, so, if you changed it, you have 
to use:

service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root

FYI, I tested Decanter with Karaf 3.0.3 without problem.

For the Operating System panel, you have to collect the system data 
using the system-collector that you customize:

http://karaf.apache.org/manual/decanter/latest-1/index.html#_system

You have to provide bat scripts depending what you want to retrieve.

Regards
JB


On 08/31/2015 12:55 PM, hsinchen wrote:
> Hi,
>
> I use the url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root. It
> shows ERROR below at Karaf 3.0.3.
>
> 2015-08-31 14:50:28,449 | ERROR | scheduler-simple | JmxCollector
> | 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 | Can't connect to
> MBeanServer service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> (jmx-local)
> java.io.IOException: Failed to retrieve RMIServer stub:
> javax.naming.NameNotFoundException: karaf-root
> 	at
> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:357)[:1.7.0]
> 	at
> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)[:1.7.0]
> 	at
> org.apache.karaf.decanter.collector.jmx.JmxCollector.run(JmxCollector.java:85)[95:org.apache.karaf.decanter.collector.jmx:1.0.0]
> 	at
> org.apache.karaf.decanter.scheduler.simple.SimpleScheduler.run(SimpleScheduler.java:64)[94:org.apache.karaf.decanter.scheduler.simple:1.0.0]
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
> Caused by: javax.naming.NameNotFoundException: karaf-root
> 	at
> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)[:1.7.0]
> 	at
> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)[:1.7.0]
> 	at javax.naming.InitialContext.lookup(InitialContext.java:411)[:1.7.0]
> 	at
> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1924)[:1.7.0]
> 	at
> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1891)[:1.7.0]
> 	at
> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:274)[:1.7.0]
> 	... 4 more
>
> Then, I use Karaf 3.0.4. But, need to still check if any setting problem at
> url.
> karaf@root()> feature:install elasticsearch
> karaf@root()> feature:install kibana
> Refreshing bundles org.apache.servicemix.bundles.elasticsearch
> karaf@root()>  feature:install decanter-appender-elasticsearch
> karaf@root()> feature:install decanter-collector-jmx
> karaf@root()>  feature:install decanter-collector-log
>
> The Karaf Dashboard in Kibana works except the "OPERATING SYSTEM" panel.
> There is a warn in log about the connection was terminated..."connection was
> stopped by a software in your computer"
>
> 2015-08-31 18:43:06,780 | INFO  | 6]-nio2-thread-1 | ServerSession
> | 28 - org.apache.sshd.core - 0.14.0 | Server session created from
> /127.0.0.1:54898
> 2015-08-31 18:43:06,782 | WARN  | 6]-nio2-thread-1 | ServerSession
> | 28 - org.apache.sshd.core - 0.14.0 | Exception caught
> java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
> 	at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
> Method)[:1.7.0]
> 	at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
> 	at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:488)[:1.7.0]
> 	at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:633)[:1.7.0]
> 	at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:272)[:1.7.0]
> 	at
> sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:293)[:1.7.0]
> 	at
> java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)[:1.7.0]
> 	at
> org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:170)[28:org.apache.sshd.core:0.14.0]
> 	at
> org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:135)[28:org.apache.sshd.core:0.14.0]
> 	at
> org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:120)[28:org.apache.sshd.core:0.14.0]
> 	at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
> 	at
> org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.14.0]
> 	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
> 	at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
> 	at
> sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
> 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096p4042167.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf Decanter

Posted by hsinchen <hc...@gmail.com>.
Hi,

I use the url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root. It
shows ERROR below at Karaf 3.0.3. 

2015-08-31 14:50:28,449 | ERROR | scheduler-simple | JmxCollector                    
| 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 | Can't connect to
MBeanServer service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root 
(jmx-local)
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundException: karaf-root 
	at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:357)[:1.7.0]
	at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)[:1.7.0]
	at
org.apache.karaf.decanter.collector.jmx.JmxCollector.run(JmxCollector.java:85)[95:org.apache.karaf.decanter.collector.jmx:1.0.0]
	at
org.apache.karaf.decanter.scheduler.simple.SimpleScheduler.run(SimpleScheduler.java:64)[94:org.apache.karaf.decanter.scheduler.simple:1.0.0]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0]
Caused by: javax.naming.NameNotFoundException: karaf-root 
	at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)[:1.7.0]
	at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)[:1.7.0]
	at javax.naming.InitialContext.lookup(InitialContext.java:411)[:1.7.0]
	at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1924)[:1.7.0]
	at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1891)[:1.7.0]
	at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:274)[:1.7.0]
	... 4 more

Then, I use Karaf 3.0.4. But, need to still check if any setting problem at
url.
karaf@root()> feature:install elasticsearch
karaf@root()> feature:install kibana
Refreshing bundles org.apache.servicemix.bundles.elasticsearch
karaf@root()>  feature:install decanter-appender-elasticsearch
karaf@root()> feature:install decanter-collector-jmx
karaf@root()>  feature:install decanter-collector-log

The Karaf Dashboard in Kibana works except the "OPERATING SYSTEM" panel.
There is a warn in log about the connection was terminated..."connection was
stopped by a software in your computer"

2015-08-31 18:43:06,780 | INFO  | 6]-nio2-thread-1 | ServerSession                   
| 28 - org.apache.sshd.core - 0.14.0 | Server session created from
/127.0.0.1:54898
2015-08-31 18:43:06,782 | WARN  | 6]-nio2-thread-1 | ServerSession                   
| 28 - org.apache.sshd.core - 0.14.0 | Exception caught
java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
	at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
Method)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:488)[:1.7.0]
	at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:633)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:272)[:1.7.0]
	at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:293)[:1.7.0]
	at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:170)[28:org.apache.sshd.core:0.14.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:135)[28:org.apache.sshd.core:0.14.0]
	at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:120)[28:org.apache.sshd.core:0.14.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
	at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.14.0]
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
	at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
	at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0]





--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096p4042167.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf Decanter

Posted by Achim Nierbeck <bc...@googlemail.com>.
Or use karaf 3.0.4 where this is already fixed per default :-)

regards, Achim


2015-08-27 13:48 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Hi,
>
> With Karaf 3.0.3, you have to update
> etc/org.apache.karaf.decanter.collector.jmx-local.cfg like this:
>
> url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
> username=karaf
> password=karaf
>
> The url has to be absolute instead of "local" keyword as Karaf 3.0.3
> secure any connection to the MBean server (even local).
>
> Regards
> JB
>
>
> On 08/27/2015 01:43 PM, hsinchen wrote:
>
>> Hi,
>>
>> I have installed the Decanter related features in a clean Karaf 3.0.3 and
>> JDK 1.7.
>>
>> feature:repo-add
>> mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features
>> feature:install decanter-collector-log
>> feature:install decanter-collector-jmx
>>
>> feature:install decanter-appender-elasticsearch
>> feature:install elasticsearch
>> feature:install kibana
>>
>> I don't modify any of cfg in etc folder and see an exception in karaf log.
>> --log--
>> 2015-08-27 19:39:00,544 | ERROR | scheduler-simple | JmxCollector
>> | 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 |
>> SecurityException:
>> java.lang.SecurityException: Insufficient roles/credentials for operation
>> ----
>>
>> I unmark the username and password in
>> org.apache.karaf.decanter.collector.jmx-local.cfg to use karaf/karaf. The
>> exception is the same.
>>
>> Anything I need to do.
>>
>> By User Guide...
>> Karaf dashboard uses the data harvested by the default JMX collector, and
>> the log collector. Especially, it provides details about the threads,
>> memory, garbage collection, etc.
>> ----
>>
>> Does it means that Kibana would get the data from JMX collector and log
>> collector directly without appender.
>>
>>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Karaf Decanter

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

With Karaf 3.0.3, you have to update 
etc/org.apache.karaf.decanter.collector.jmx-local.cfg like this:

url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
username=karaf
password=karaf

The url has to be absolute instead of "local" keyword as Karaf 3.0.3 
secure any connection to the MBean server (even local).

Regards
JB

On 08/27/2015 01:43 PM, hsinchen wrote:
> Hi,
>
> I have installed the Decanter related features in a clean Karaf 3.0.3 and
> JDK 1.7.
>
> feature:repo-add
> mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features
> feature:install decanter-collector-log
> feature:install decanter-collector-jmx
>
> feature:install decanter-appender-elasticsearch
> feature:install elasticsearch
> feature:install kibana
>
> I don't modify any of cfg in etc folder and see an exception in karaf log.
> --log--
> 2015-08-27 19:39:00,544 | ERROR | scheduler-simple | JmxCollector
> | 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 | SecurityException:
> java.lang.SecurityException: Insufficient roles/credentials for operation
> ----
>
> I unmark the username and password in
> org.apache.karaf.decanter.collector.jmx-local.cfg to use karaf/karaf. The
> exception is the same.
>
> Anything I need to do.
>
> By User Guide...
> Karaf dashboard uses the data harvested by the default JMX collector, and
> the log collector. Especially, it provides details about the threads,
> memory, garbage collection, etc.
> ----
>
> Does it means that Kibana would get the data from JMX collector and log
> collector directly without appender.
>
>
> Thanks.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com