Hi JB,
By "jam" you mean JAVA_MODE or ...?
Kind regards,Milan
 

     On Thursday, December 4, 2014 7:12 PM, Jean-Baptiste Onofré 
<[email protected]> wrote:
   

 Hi
You have to use remote connection even for local process.Else you have to 
disable the Karaf secure MBean server builder (remove the jam argument in the 
bin/karaf script).
RegardsJB

Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Milan Tomic <[email protected]> 
Date:04/12/2014 14:37 (GMT+01:00) 
To: [email protected] 
Cc: 
Subject: Karaf 3.0.2 and jvisualvm 

Hello,
I have problems profiling Karaf 3.0.2 locally using jvisualvm. I can connect, 
but CPU/Heap/Threads graphs are empty. And I can not sample CPU (button 
disabled) and when I try to profile Karaf it crashes.
I have added:

org.osgi.framework.bootdelegation=...,org.netbeans.lib.profiler.server

as adviced here:
http://karaf.apache.org/manual/latest/developers-guide/debugging.html

but it still doesn't work.
All I do is start Karaf, start jvisualvm and double click on Karaf process in 
jivsualvm. Sometimes I see this error:
java.lang.SecurityException: Insufficient roles/credentials for operation
    at 
org.apache.karaf.management.KarafMBeanServerGuard.handleInvoke(KarafMBeanServerGuard.java:274)
    at 
org.apache.karaf.management.KarafMBeanServerGuard.handleGetAttribute(KarafMBeanServerGuard.java:207)
    at 
org.apache.karaf.management.KarafMBeanServerGuard.invoke(KarafMBeanServerGuard.java:74)
    at 
org.apache.karaf.management.boot.KarafMBeanServerBuilder$MBeanInvocationHandler.invoke(KarafMBeanServerBuilder.java:63)

I've tried supplying Karaf user/pass with (all rights in Karaf) but it doesn't 
help.
Thank you in advance,Milan


   

Reply via email to