Lab environment memory low - unusable

Hi Durga Sir,

my userid: altafraghu
There is very little memory and the lab environment is not usable. Please find below errors i am facing

[altafraghu@gw01 ~]$ spark-shell
Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00006f91d5000000, 716177408, 0) failed; error=‘Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 716177408 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/altafraghu/hs_err_pid24984.log

[altafraghu@gw01 ~]$ free -m
total used free shared buff/cache available
Mem: 32123 29732 187 1488 2204 716
Swap: 1021 1021 0

[altafraghu@gw01 ~]$ hive
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x0000713499000000, 486014976, 0) failed; error=‘Cannot allocate memory’ (errno=12)
Unable to determine Hadoop version information.
‘hadoop version’ returned:
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x000075246d000000, 486014976, 0) failed; error=‘Cannot allocate memory’ (errno=12)

# There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 486014976 bytes for committing reserved memory. # An error report fi

le with more information is saved as: # /home/altafraghu/hs_err_pid5796.log

I am also facing the same issue in itversity lab.

@BaLu_SaI @itversity memory is really low during day time in US.

$ date
Wed Jul 5 14:02:16 EDT 2017

free -m
total used free shared buff/cache available
Mem: 32123 29509 382 1701 2231 724
Swap: 1021 1021 0

@altafraghu Try now to launch spark-shell.
To launch spark-shell use command

spark-shell --conf spark.ui.port=22344 spark.port.maxRetries=100 --master yarn-client

Thanks… will use these parameters and try…

@BaLu_SaI

[altafraghu@gw01 ~]$ spark-shell --conf spark.ui.port=22344 spark.port.maxRetries=100 --master yarn-client
Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00006e88f1000000, 716177408, 0) failed; error=‘Cannot allocate memory’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 716177408 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/altafraghu/hs_err_pid3928.log