Join the community today
Become a Member

Glances a top command alternative

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

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:48 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    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

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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
     
  4. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:48 PM
    Nginx 1.17.9
    MariaDB 10.3.22
  5. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh not using ES 5 here :)
     
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:48 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    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

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    weird never noticed that as i use top row numeric keys not numpad :)
     
  8. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:48 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    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
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh those are my default settings, what did you have to change them to ?
     
  10. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:48 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    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 :)
     
  11. buik

    buik “The best traveler is one without a camera.”

    2,031
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,676
    Local Time:
    4:48 PM
    GIT Project closed as there was no traffic c.q. no interest anymore.
     
  12. eva2000

    eva2000 Administrator Staff Member

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    doesn't hurt to keep open ? or is it costing $$$ for each repo you list ?
     
  13. buik

    buik “The best traveler is one without a camera.”

    2,031
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,676
    Local Time:
    4:48 PM
    cleaning:)
     
  14. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    5:48 PM
    Nginx-1.26.x
    MariaDB 10.6.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

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    12:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    5:48 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Glances v2.5.1 with psutil v2.2.1

    I will try:

     
    Last edited: Jan 22, 2018
  17. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    9:48 AM
    Code:
    #glances -V
    Glances v2.5.1 with psutil v2.2.1
    # pip install --upgrade psutil
    -bash: pip: command not found
     
  18. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    5:48 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    It seems that it doesn't like the ccache ?

     
  19. pamamolf

    pamamolf Premium Member Premium Member

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    5:48 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    @Andy i think you can install pip using:

     
  20. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    9:48 AM
    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/