Remote jmx Raspbian

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Remote jmx Raspbian

cvdenzen
Karaf version 4.2.3

I am running Karaf on a Raspberry and am trying to monitor it with jvisualvm
from my (old) iMac.
The raspberry is reachable, telnet to ports 44444 and 1099 succeed.

My biggest problem is that I cannot find any logging of my jmx connection
requests.

The connection string I use in jvisualvm is:
service:jmx:rmi://192.168.2.9:44444/jndi/rmi://192.168.2.9:1099/karaf-root

Again: my biggest problem is that I cannot find any logging, nor from
jvisualvm nor from karaf.

The relevant lines in org.apache.karaf.management.cfg:
rmiRegistryPort = 1099
# rmiRegistryHost = 127.0.0.1
rmiRegistryHost = 192.168.2.9
rmiServerPort = 44444
# rmiServerHost = 127.0.0.1
rmiServerHost = 192.168.2.9
jmxRealm = karaf
serviceUrl =
service:jmx:rmi://${rmiServerHost}:${rmiServerPort}/jndi/rmi://${rmiRegistryHost}:${rmiRegistryPort}/karaf-${karaf.name}
daemon = true
threaded = true
objectName = connector:name=rmi
#keyStoreAvailabilityTimeout = 5000
# The type of authentication
# 20190811 uitgecommentarieerd
authenticatorType = password

#
# Enable or not SSL/TLS
#
# 20190811 uitgecommentarieerd
secured = false
#secureAlgorithm = default
#secureProtocol = TLS
#keyStore = karaf.ks
#keyAlias = karaf
#trustStore = karaf.ts
#createRmiRegistry = true
#locateRmiRegistry = true
#locateExistingMBeanServerIfPossible = true


In my karaf.log:

2019-08-14T22:33:42,328 | INFO  | FelixStartLevel  | BlueprintContainerImpl          
| 65 - org.apache.aries.blueprint.core - 1.10.1 | Blueprint bundle
org.apache.aries.blueprint.cm/1.3.1 has been started
2019-08-14T22:33:42,488 | INFO  | FelixStartLevel  | BlueprintContainerImpl          
| 65 - org.apache.aries.blueprint.core - 1.10.1 | Blueprint bundle
org.apache.aries.blueprint.core/1.10.1 has been started
2019-08-14T22:33:43,016 | INFO  | FelixStartLevel  | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Starting JMX OSGi agent
2019-08-14T22:33:43,144 | INFO  | FelixStartLevel  | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering MBean with ObjectName
[osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816]
for service with service.id [16]
2019-08-14T22:33:44,057 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,108 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.framework.FrameworkMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,115 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,142 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.framework.ServiceStateMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,178 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.framework.PackageStateMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,183 | INFO  | activator-1-thread-1 | core                            
| 15 - org.apache.aries.jmx.core - 1.1.8 | Registering
org.osgi.jmx.framework.BundleStateMBean to MBeanServer
org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@130938d
with name
osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=e0f8df69-2e0b-4958-ac98-fb1a1c391816
2019-08-14T22:33:44,477 | INFO  | FelixStartLevel  | CommandExtension                
| 36 - org.apache.karaf.shell.core - 4.2.3 | Registering commands for bundle
org.apache.karaf.bundle.core/4.2.3
2019-08-14T22:33:44,594 | INFO  | FelixStartLevel  | CommandExtension                
| 36 - org.apache.karaf.shell.core - 4.2.3 | Registering commands for bundle
org.apache.karaf.config.core/4.2.3
2019-08-14T22:33:44,998 | INFO  | FelixStartLevel  | CommandExtension                
| 36 - org.apache.karaf.shell.core - 4.2.3 | Registering commands for bundle
org.apache.karaf.deployer.kar/4.2.3





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html