Tag Archives: GC overhead limit exceeded

[Solved] hive service hiveserver2 Error: GC overhead limit exceeded

1. Causes

Hive — service hiverver2 reports an error, which makes the hiverver2 service unusable

 

2. Error information

Exception in thread “HiveServer2-Handler-Pool: Thread-556” java.lang.OutOfMemoryError: GC overhead limit exceeded

 

3. Reasons for error reporting

JVM started by hive shell script is out of memory

 

4. Solution

cp hive-env.sh.template hive-env.sh
vi hive-env.sh
Release export HADOOP_HEAPSIZE=1024 (if you still get an error, make the memory bigger)

Eclipse Error: GC overhead limit exceeded [How to Solve]

Eclipse error GC overhead limit exceeded

Specific details:


An internal error occurred during: “Building workspace”.

GC overhead limit exceeded

Analysis:

results

Solution:

The reason is that the default configuration memory of eclipse is too small. You need to change the eclipse.ini file in the eclipse installation folder

In other words, the default memory size of eclipse is not enough and needs to be modified

Open the directory where eclipse is located and find the eclipse.ini file. As shown in the figure below:

A289885427
open it with a text editor:

Change the values of the last two lines a little larger and add a line at the same time. The details are as follows:

-Xms1024m

-Xmx1536m

-XX:MaxPermSize=1024m

Restart eclipse after the modification. It’s normal

Parameter Description:

-What do the three parameters XMS/Xmx/- XX: maxpermsize mean

The figure is as follows: