Engineer 1 training lab fails to allocate memory

Engineer 1 training fails to allocate memory after instructions request memory to be changed.



http://3.127.223.160/instructions/labs.html#_lab_1_1_elastic_stack_overview

 fails with a Run Time Expectation error  insufficient memory



 


top - 17:59:44 up 39 min,  3 users,  load average: 0.00, 0.00, 0.02
Tasks:  16 total,   1 running,  15 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  8173716 total,  5857124 free,   239964 used,  2076628 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  7603228 avail Mem 
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                              
    1 root      20   0   11688   2608   2412 S   0.0  0.0   0:00.02 /bin/bash /root/startup.sh                                           
   12 root      20   0  113668  11636   3100 S   0.0  0.1   0:00.32 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.+
   16 root      20   0   11688   2608   2428 S   0.0  0.0   0:00.00 /bin/bash /root/start-scripts/99-bash.sh                             
   17 root      20   0   11828   2904   2640 S   0.0  0.0   0:00.00 bash -l                                                              
   33 root      20   0  112872   2920   1884 S   0.0  0.0   0:00.00 /sbin/sshd                                                           
   40 root      20   0  117080   7976   6852 S   0.0  0.1   0:00.00 sshd: elastic [priv]                                                 
   42 elastic   20   0  117080   3764   2640 S   0.0  0.0   0:00.06 sshd: elastic@pts/1                                                  
   43 elastic   20   0   15260   3524   3128 S   0.0  0.0   0:00.01 -bash                                                                
   68 root      20   0  117080   7884   6776 S   0.0  0.1   0:00.00 sshd: elastic [priv]                                                 
   70 elastic   20   0  117080   3484   2376 S   0.0  0.0   0:00.02 sshd: elastic@pts/2                                                  
   71 elastic   20   0   15260   3376   3112 S   0.0  0.0   0:00.00 -bash                                                                
   90 elastic   20   0   78500   7916   6952 S   0.0  0.1   0:00.03 ssh server1                                                          
   91 root      20   0  112872   7884   6800 S   0.0  0.1   0:00.00 sshd: elastic [priv]                                                 
   93 elastic   20   0  112872   3828   2744 S   0.0  0.0   0:00.02 sshd: elastic@pts/3                                                  
   94 elastic   20   0   15260   3420   3028 S   0.0  0.0   0:00.01 -bash                                                                
  609 elastic   20   0   59632   4308   3752 R   0.0  0.1   0:00.03 top                                                                  

[elastic@server1 ~]$ uname -a
Linux server1 4.4.0-1111-aws #123-Ubuntu SMP Sat Jul 4 02:03:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[elastic@server1 ~]$ cat /proc/meminfo
MemTotal:        8173716 kB
MemFree:         5857860 kB
MemAvailable:    7603976 kB
Buffers:           94500 kB
Cached:          1838948 kB
SwapCached:            0 kB
Active:          1017892 kB
Inactive:        1089552 kB
Active(anon):     179896 kB
Inactive(anon):    17420 kB
Active(file):     837996 kB
Inactive(file):  1072132 kB
Unevictable:        3648 kB
Mlocked:            3652 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                32 kB
Writeback:             0 kB
AnonPages:        177648 kB
Mapped:           178104 kB
Shmem:             20892 kB
Slab:             143152 kB
SReclaimable:     108824 kB
SUnreclaim:        34328 kB
KernelStack:        4928 kB
PageTables:         8960 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     4086856 kB
Committed_AS:    1233964 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       86016 kB
DirectMap2M:     8302592 kB


[elastic@server1 ~]$ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
1  0      0 5857380  94500 1982136    0    0   195   244   97  124  3  1 96  0  0
[elastic@server1 ~]$ 
[elastic@server1 ~]$

[elastic@server1 logs]$ cat hs_err_pid600.log 
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 549581357056 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2766), pid=600, tid=0x00007f27cf733700
#
# JRE version:  (8.0_201-b09) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.201-b09 mixed mode linux-amd64 )
# Core dump written. Default location: /home/elastic/elasticsearch-7.3.1/core or core.600
#
time: Wed Oct  7 17:47:47 2020
timezone: UTC
elapsed time: 0 seconds (0d 0h 0m 0s)

You are using g instead of m. Therefore, you get an error that the machines does not have 512 gigabytes of memory :slight_smile:

That would do it ---

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.