Join the community today
Register Now

Very Hight Virtual Memory Usage of the "Java"

Discussion in 'System Administration' started by negative, Jul 10, 2019.

  1. negative

    negative Active Member

    345
    39
    28
    Apr 11, 2015
    Ratings:
    +80
    Local Time:
    1:21 AM
    1.9.10
    10.1.11
    Hello everyone,

    When i run the cminfo top command, it says like that;

    Code (Text):
    top 10 processes' virtual memory size (VmSize/VSZ)
    RSS vs VSZ https://stackoverflow.com/a/21049737/272648
    RSS https://en.wikipedia.org/wiki/Resident_set_size
    
          6381 java                                    21260844 kB
          9210 mysqld                                  17189312 kB
         30651 redis-server                             5014880 kB
         28226 php-fpm                                  1494960 kB
         16321 php-fpm                                  1490740 kB
         31367 php-fpm                                  1461120 kB
         14280 php-fpm                                  1459772 kB
          7811 php-fpm                                  1459040 kB
         23194 php-fpm                                  1457488 kB
         18724 php-fpm                                  1319200 kB


    I'm using the xenforo with elasticsearch (so xenforo enhanced search product) also using the redis cache features. But i worry and interested that java memory usage looks like very high, am i wrong?

    P.S: My webserver has about 64GB Ram and TOTAL 32 Core Intel CPU. Forum Total threads about 700K, 7M Post and db size about 13 GB) If java hurts my RAM, so i can switch to standart search feature on forum. Because, our users don't use the search function often.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,646
    9,380
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,408
    Local Time:
    8:21 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Virtual Memory is different from used memory (RSS) see the explanation links linked to
    It's normal for Virtual memory to be high due to what it includes.
    FYI, only time you need to keep a closer eye on VSZ virtual memory is with OpenVZ VPS as it countds VSZ as used memory unlike non-OpenVZ VPS i.e. Xen, KVM and bare metal servers