Wednesday Apr 11, 2012

Allow JMX connection on JVM 1.6.x

While trying to monitor a JVM on a remote system using visualvm the activation of JMX gave me some challenges. Dr Google and my employers documentation quickly revealed some -D opts needed for JMX, but strangely it only worked for a Solaris 10 system (my setup: MacOS laptop monitoring SPARC Solaris based JVMs) On S11 with the same opts I saw that "my" JVM listening on port 3000 (which I chose for JMX), but visualvm was not able to get a connection. Finally I found out that at least my S11 installation needed an explicit setting of the RMI host name. This what finally worked:


        -Dcom.sun.management.jmxremote=true \
        -Dcom.sun.management.jmxremote.ssl=false \
        -Dcom.sun.management.jmxremote.authenticate=false \
        -Dcom.sun.management.jmxremote.port=3000 \
        -Djava.rmi.server.hostname=s11name.us.oracle.com \


Maybe this post saves someone else the time I spent on research 

Friday Oct 24, 2008

WWN of an installed HBA in SPARC server

You need the WWN of an HBA...
  1. from ok Prompt:
    cd to device and dump all properties:
    {0} ok cd /pci@0/pci@0/pci@9/SUNW,qlc@0,1
    {0} ok .properties
    ...
    port-wwn                 21 01 00 1b 32 25 8f 51
    node-wwn                 20 01 00 1b 32 25 8f 51
    ...
    
  2. from Solaris:
    root@huron:/ # luxadm display /dev/rdsk/c1t50020F2300006BF7d9s2
    DEVICE PROPERTIES for disk: /dev/rdsk/c1t50020F2300006BF7d9s2
      Vendor:               SUN
      Product ID:           T300
      Revision:             0302
      Serial Num:           Unsupported
      Unformatted capacity: 20483.750 MBytes
      Write Cache:          Enabled
      Read Cache:           Enabled
        Minimum prefetch:   0x0
        Maximum prefetch:   0x0
      Device Type:          Disk device
      Path(s):
    
      /dev/rdsk/c1t50020F2300006BF7d9s2
      /devices/pci@0/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0/ssd@w50020f2300006bf7,9:c,raw
        LUN path port WWN:          50020f2300006bf7
        Host controller port WWN:   2101001b32258f51
        Path status:                O.K.
    
    where c1t50020F2300006BF7d9 is a disk/volume connected to that HBA
The WWN to configure your SAN with is 2101001b32258f51.
About

Before Sun was acquired by Oracle I was about 12 yrs in pre-sales covering SPARC and Solaris. Today I work in a field role in Oracle Microelectronics and focus on SPARC performance, including working and presenting at customer sites all over EMEA

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today