Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Log process list when Out of Memory

Discussion in 'General Discussion' started by rarod, Feb 28, 2018.

  1. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you know how can I log the process list in /var/log/messages when OOM-killer are invoked? like you can see in this post [1].

    In the last days I saw several "Out of memory" in some of our servers.

    [1] stackoverflow.com/questions/9199731/understanding-the-linux-oom-killers-logs
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    In journalctl I do not see the list of processes neither.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Were you able to review the information the third-party URL?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rarod

    rarod Active Member

    Joined:
    Apr 20, 2017
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Yes, but there is no info about the process list. I am looking to get the process list:

    Code:
    [11686.043253] [ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
    [11686.043266] [ 1084]     0  1084      662        1   0       0             0 upstart-udev-br
    [11686.043271] [ 1094]     0  1094      743       79   0     -17         -1000 udevd
    [11686.043276] [ 1104]   101  1104     7232       42   0       0             0 rsyslogd
    [11686.043281] [ 1149]   103  1149     1066      188   1       0             0 dbus-daemon
    [11686.043286] [ 1165]     0  1165     1716       66   0       0             0 modem-manager
    [11686.043291] [ 1220]   106  1220      861       42   0       0             0 avahi-daemon
    [11686.043296] [ 1221]   106  1221      829        0   1       0             0 avahi-daemon
    [11686.043301] [ 1255]     0  1255     6880      117   0       0             0 NetworkManager
    [11686.043306] [ 1308]     0  1308     5988      144   0       0             0 polkitd
    [11686.043311] [ 1334]     0  1334      723       85   0     -17         -1000 udevd
    [11686.043316] [ 1335]     0  1335      730      108   0     -17         -1000 udevd
    [11686.043320] [ 1375]     0  1375      663       37   0       0             0 upstart-socket-
    [11686.043325] [ 1464]     0  1464     1333      120   1       0             0 login
    [11686.043330] [ 1467]     0  1467     1333      135   1       0             0 login
    [11686.043335] [ 1486]     0  1486     1333      135   1       0             0 login
    [11686.043339] [ 1487]     0  1487     1333      136   1       0             0 login
    [11686.043344] [ 1493]     0  1493     1333      134   1       0             0 login
    [11686.043349] [ 1528]     0  1528      496       45   0       0             0 acpid
    [11686.043354] [ 1529]     0  1529      607       46   1       0             0 cron
    [11686.043359] [ 1549]     0  1549    10660      100   0       0             0 lightdm
    [11686.043363] [ 1550]     0  1550      570       28   0       0             0 atd
    [11686.043368] [ 1584]     0  1584      855       35   0       0             0 irqbalance
    [11686.043373] [ 1703]     0  1703    17939     9653   0       0             0 Xorg
    [11686.043378] [ 1874]     0  1874     7013      174   0       0             0 console-kit-dae
    [11686.043382] [ 1958]     0  1958     1124       52   1       0             0 bluetoothd
    [11686.043388] [ 2048]   999  2048     2435      641   1       0             0 bash
    [11686.043392] [ 2049]   999  2049     2435      595   0       0             0 bash
    [11686.043397] [ 2050]   999  2050     2435      587   1       0             0 bash
    [11686.043402] [ 2051]   999  2051     2435      634   1       0             0 bash
    [11686.043406] [ 2054]   999  2054     2435      569   0       0             0 bash
    [11686.043411] [ 2155]     0  2155     1333      128   0       0             0 login
    [11686.043416] [ 2222]     0  2222      684       67   1       0             0 dhclient
    [11686.043420] [ 2240]   999  2240     2435      415   0       0             0 bash
    [11686.043425] [ 2244]     0  2244     3631       58   0       0             0 accounts-daemon
    [11686.043430] [ 2258]   999  2258    11683      277   0       0             0 gnome-session
    [11686.043435] [ 2407]   999  2407      964       24   0       0             0 ssh-agent
    [11686.043440] [ 2410]   999  2410      937       53   0       0             0 dbus-launch
    [11686.043444] [ 2411]   999  2411     1319      300   1       0             0 dbus-daemon
    [11686.043449] [ 2413]   999  2413     2287       88   0       0             0 gvfsd
    [11686.043454] [ 2418]   999  2418     7867      123   1       0             0 gvfs-fuse-daemo
    [11686.043459] [ 2427]   999  2427    32720      804   0       0             0 gnome-settings-
    [11686.043463] [ 2437]   999  2437    10750      124   0       0             0 gnome-keyring-d
    [11686.043468] [ 2442]   999  2442     2321      244   1       0             0 gconfd-2
    [11686.043473] [ 2447]     0  2447     6490      156   0       0             0 upowerd
    [11686.043478] [ 2467]   999  2467     7590       87   0       0             0 dconf-service
    [11686.043482] [ 2529]   999  2529    11807      211   0       0             0 gsd-printer
    [11686.043487] [ 2531]   999  2531    12162      587   0       0             0 metacity
    [11686.043492] [ 2535]   999  2535    19175      960   0       0             0 unity-2d-panel
    [11686.043496] [ 2536]   999  2536    19408     1012   0       0             0 unity-2d-launch
    [11686.043502] [ 2539]   999  2539    16154     1120   1       0             0 nautilus
    [11686.043506] [ 2540]   999  2540    17888      534   0       0             0 nm-applet
    [11686.043511] [ 2541]   999  2541     7005      253   0       0             0 polkit-gnome-au
    [11686.043516] [ 2544]   999  2544     8930      430   0       0             0 bamfdaemon
    [11686.043521] [ 2545]   999  2545    11217      442   1       0             0 bluetooth-apple
    [11686.043525] [ 2547]   999  2547      510       16   0       0             0 sh
    [11686.043530] [ 2548]   999  2548    11205      301   1       0             0 gnome-fallback-
    [11686.043535] [ 2565]   999  2565     6614      179   1       0             0 gvfs-gdu-volume
    [11686.043539] [ 2567]     0  2567     5812      164   1       0             0 udisks-daemon
    [11686.043544] [ 2571]     0  2571     1580       69   0       0             0 udisks-daemon
    [11686.043549] [ 2579]   999  2579    16354     1035   0       0             0 unity-panel-ser
    [11686.043554] [ 2602]     0  2602     1188       47   0       0             0 sudo
    [11686.043559] [ 2603]     0  2603   374634   181503   0       0             0 flasherav
    [11686.043564] [ 2607]   999  2607    12673      189   0       0             0 indicator-appli
    [11686.043569] [ 2609]   999  2609    19313      311   1       0             0 indicator-datet
    [11686.043573] [ 2611]   999  2611    15738      225   0       0             0 indicator-messa
    [11686.043578] [ 2615]   999  2615    17433      237   1       0             0 indicator-sessi
    [11686.043583] [ 2627]   999  2627     2393      132   0       0             0 gvfsd-trash
    [11686.043588] [ 2640]   999  2640     1933       85   0       0             0 geoclue-master
    [11686.043592] [ 2650]     0  2650     2498     1136   1       0             0 mount.ntfs
    [11686.043598] [ 2657]   999  2657     6624      128   1       0             0 telepathy-indic
    [11686.043602] [ 2659]   999  2659     2246      112   0       0             0 mission-control
    [11686.043607] [ 2662]   999  2662     5431      346   1       0             0 gdu-notificatio
    [11686.043612] [ 2664]     0  2664     3716     2392   0       0             0 mount.ntfs
    [11686.043617] [ 2679]   999  2679    12453      197   1       0             0 zeitgeist-datah
    [11686.043621] [ 2685]   999  2685     5196     1581   1       0             0 zeitgeist-daemo
    [11686.043626] [ 2934]   999  2934    16305      710   0       0             0 gnome-terminal
    [11686.043631] [ 2938]   999  2938      553        0   0       0             0 gnome-pty-helpe
    [11686.043636] [ 2939]   999  2939     1814      406   0       0             0 bash
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Thank you for clarifying. Including a copy of the process list at the time OOM-killer is invoked would like require some custom bash scripting. I suggest posting on a website such as StackOverflow or the CentOS forums, as you are more likely to receive user-feedback on operating system related information on one of those websites. We provide a list of companies offering system admin services on the following URL as well:

    System Administration Services | cPanel Forums

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice