OpenPegasus CIM Server (cimserver) memory leak troubleshooting tips

8:16 PM
OpenPegasus CIM Server (cimserver) memory leak troubleshooting tips -

There is no secret that there are memory leaks in our CIM Server and it seems that not only XenServer has such problems. Recetly I spent some time helping my colleague troubleshooting problem like this and decided to share following the procedures


Procedure 1 :. Using database files

  1. Set destination and the core file pattern:
     sysctl -w kernel.core_pattern = "... / var / tmp / core% e% h% p "-q kernel sysctl .core_pattern 

    above the set file core sales pitch commands is as follows:

     /var/tmp/core. [.  
  2. Change /etc/init.d/openpegasus file and add ulimit -c unlimited line before cimserver begins.
    Or apply patch below on /etc/init.d/openpegasus
     *** / etc /init.d/openpegasus .00 04/05/2013 14: 39: 48.000000000 0530 --- /etc/init.d/openpegasus 05/04/2013 14: 31: 42.000000000 0530 ******* **** **** start () {*** **** 11.16 --- 11.17 ---- stop () {echo -n "stop OpenPegasus ..." ulimit -c unlimited + / opt / OpenPegasus / bin / cimserver -s echo "done." } 

    To apply this patch:

    • save a text file in XenServer dom0, namely: /root/cim.patch
    • run Patch
  3. cimserver Restart
     Service OpenPegasus restart 
  4. When cimserver begins consume abnormal amount of memory kill cimserver with SIGABRT (6) signals.
     -SIGABRT kill $ (pgrep cimserver) 
  5. Check new file / var / tmp / core.


Procedure 2 :. Using part of valgrind

  1. Stop cimserver watchdog
     touch / opt / xs-cem-cmpi / watchdog-off 
  2. Set cimserver running in the foreground:
     / opt / OpenPegasus / bin / daemon cimconfig -s = false -p 
  3. Start cimserver using valgrind
     valgrind --leak-check = - -log complete file = / root / cimserver.valgrind% p.Log --trace-children = yes / opt / OpenPegasus / bin / cimserver 
  4. When problem occurs stop valgrind and collect log file / var / tmp
    Follow remaining steps back cimconfig original configuration.
  5. cimserver Set to run in the background:
     / opt / OpenPegasus / bin / cimconfig -s daemon = true -p 
  6. Enable monitoring:
     rm - vF / opt / xs-cem-IPMC / watchdog-off 
Previous
Next Post »
0 Komentar