Learn about Centmin Mod LEMP Stack today
Register Now

Glances a top command alternative

Discussion in 'Centmin Mod Insights' started by eva2000, Jan 1, 2017.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes Elasticsearch can consume lots of memory if you configure it to do so or can tell it to use less memory.

    so set your ES_HEAP_SIZE value appropriately
     
  2. Sunka

    Sunka Well-Known Member

    975
    259
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +430
    Local Time:
    1:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I did, but it going above that???
    Code:
    [root@upcloud ~]# cat /etc/elasticsearch/jvm.options
    ## JVM configuration
    
    ################################################################
    ## IMPORTANT: JVM heap size
    ################################################################
    ##
    ## You should always set the min and max JVM heap
    ## size to the same value. For example, to set
    ## the heap to 4 GB, set:
    ##
    ## -Xms4g
    ## -Xmx4g
    ##
    ## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
    ## for more information
    ##
    ################################################################
    
    # Xms represents the initial size of total heap space
    # Xmx represents the maximum size of total heap space
    
    -Xms768m
    -Xmx768m
    
    ################################################################
    ## Expert settings
    ################################################################
    ##
    ## All settings below this section are considered
    ## expert settings. Don't tamper with them unless
    ## you understand what you are doing
     
  3. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Only use elasticsearch on CentOS 6 so might be different on CentOS 7, but that's not how i set it

    set it /etc/sysconfig/elasticsearch i.e. mines set for 257MB
    Code (Text):
    ES_HEAP_SIZE=257m
     
    • Like Like x 1
  4. Sunka

    Sunka Well-Known Member

    975
    259
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +430
    Local Time:
    1:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
  5. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    oh not using ES 5 here :)
     
  6. Sunka

    Sunka Well-Known Member

    975
    259
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +430
    Local Time:
    1:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    Regarding this what is quoted above, glances shows fine and all is OK, but what I noticed is that for unknown reason my number pad on keybord is not working (0 is insert, 2 is down...).
    Num lock is On, and everything is working as it should be in other programs, just in terminal numberpad is not working
     
    Last edited: Jan 22, 2017
  7. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    weird never noticed that as i use top row numeric keys not numpad :)
     
    • Creative Creative x 1
  8. Sunka

    Sunka Well-Known Member

    975
    259
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +430
    Local Time:
    1:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    There is a setting for that. I founded (probably some settings changed automatically after change of emulating).
    This post shows me where solution might be.
    So, if anybody in future need answer....

    Capture.PNG
     
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    oh those are my default settings, what did you have to change them to ?
     
  10. Sunka

    Sunka Well-Known Member

    975
    259
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +430
    Local Time:
    1:58 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I did not change them. Numberpad working fine until installed glances and because of weird output I changed terminal in settings to Xterm.

    Strange, but everything is working all right now :)
     
    • Like Like x 1
  11. bassie

    bassie Active Member

    804
    190
    43
    Apr 29, 2016
    Ratings:
    +569
    Local Time:
    1:58 AM
    GIT Project closed as there was no traffic c.q. no interest anymore.
     
  12. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    doesn't hurt to keep open ? or is it costing $$$ for each repo you list ?
     
  13. bassie

    bassie Active Member

    804
    190
    43
    Apr 29, 2016
    Ratings:
    +569
    Local Time:
    1:58 AM
    cleaning:)
     
    • Informative Informative x 1
  14. pamamolf

    pamamolf Well-Known Member

    3,073
    293
    83
    May 31, 2014
    Ratings:
    +524
    Local Time:
    2:58 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    top2 or glances command doesn't work anymore ..... :(

    Centos 7 with latest Centminmod existing installation....
     
    Last edited: Jan 22, 2018
  15. eva2000

    eva2000 Administrator Staff Member

    33,686
    7,459
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,470
    Local Time:
    9:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    what version do you have installed ?
    Code (Text):
    glances -V
    Glances v2.5.1 with psutil v5.4.3
    

    Code (Text):
    glances -V                  
    Glances v2.11.1 with psutil v5.4.3
    

    Both versions seem to work for me on CentOS 7.4

    to upgrade
    Code (Text):
    pip install --upgrade psutil
    pip install --upgrade glances
    


    if that doesn't help might want to check official glances bug tracker at Issues · nicolargo/glances · GitHub
     
  16. pamamolf

    pamamolf Well-Known Member

    3,073
    293
    83
    May 31, 2014
    Ratings:
    +524
    Local Time:
    2:58 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Glances v2.5.1 with psutil v2.2.1

    I will try:

     
    Last edited: Jan 22, 2018
  17. Andy

    Andy Premium Member Premium Member

    386
    56
    28
    Aug 6, 2014
    Ratings:
    +67
    Local Time:
    7:58 PM
    Code:
    #glances -V
    Glances v2.5.1 with psutil v2.2.1
    # pip install --upgrade psutil
    -bash: pip: command not found
     
  18. pamamolf

    pamamolf Well-Known Member

    3,073
    293
    83
    May 31, 2014
    Ratings:
    +524
    Local Time:
    2:58 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    It seems that it doesn't like the ccache ?

     
  19. pamamolf

    pamamolf Well-Known Member

    3,073
    293
    83
    May 31, 2014
    Ratings:
    +524
    Local Time:
    2:58 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    @Andy i think you can install pip using:

     
  20. Andy

    Andy Premium Member Premium Member

    386
    56
    28
    Aug 6, 2014
    Ratings:
    +67
    Local Time:
    7:58 PM
    Got similar errors for both upgrades
    Code:
     psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
         #include <Python.h>
                            ^
        compilation terminated.
        error: command 'ccache' failed with exit status 1
    
        ----------------------------------------
      Rolling back uninstall of psutil
    Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Uk8WQj/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-W7X72f-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Uk8WQj/psutil/
     
..