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

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    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 Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:27 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

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    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 Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:27 AM
    Nginx 1.13.3
    MariaDB 10.1.24
  5. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh not using ES 5 here :)
     
  6. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:27 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

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    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 Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:27 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

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    Nginx 1.13.x
    MariaDB 5.5
    oh those are my default settings, what did you have to change them to ?
     
  10. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    9:27 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

    525
    109
    43
    Apr 29, 2016
    Ratings:
    +334
    Local Time:
    9:27 AM
    GIT Project closed as there was no traffic c.q. no interest anymore.
     
  12. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:27 PM
    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

    525
    109
    43
    Apr 29, 2016
    Ratings:
    +334
    Local Time:
    9:27 AM
    cleaning:)
     
    • Informative Informative x 1