Want more timely Centmin Mod News Updates?
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

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    11:16 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

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    11:16 PM
    Nginx 1.17.9
    MariaDB 10.3.22
  5. eva2000

    eva2000 Administrator Staff Member

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    oh not using ES 5 here :)
     
  6. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    11:16 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

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    weird never noticed that as i use top row numeric keys not numpad :)
     
  8. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    11:16 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

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    oh those are my default settings, what did you have to change them to ?
     
  10. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    11:16 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 “A winner never stops trying.” Premium Member

    1,316
    361
    83
    Apr 29, 2016
    Ratings:
    +1,080
    Local Time:
    11:16 PM
    GIT Project closed as there was no traffic c.q. no interest anymore.
     
  12. eva2000

    eva2000 Administrator Staff Member

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    doesn't hurt to keep open ? or is it costing $$$ for each repo you list ?
     
  13. buik

    buik “A winner never stops trying.” Premium Member

    1,316
    361
    83
    Apr 29, 2016
    Ratings:
    +1,080
    Local Time:
    11:16 PM
    cleaning:)
     
  14. pamamolf

    pamamolf Premium Member Premium Member

    3,883
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    12:16 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    45,631
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    8:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

    3,883
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    12:16 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    477
    77
    28
    Aug 6, 2014
    Ratings:
    +109
    Local Time:
    5:16 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 Premium Member Premium Member

    3,883
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    12:16 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    It seems that it doesn't like the ccache ?

     
  19. pamamolf

    pamamolf Premium Member Premium Member

    3,883
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    12:16 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    @Andy i think you can install pip using:

     
  20. Andy

    Andy Premium Member Premium Member

    477
    77
    28
    Aug 6, 2014
    Ratings:
    +109
    Local Time:
    5:16 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/