giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Puneet Agarwal <>
Subject Re: java.lang.OutOfMemoryError: Java heap space
Date Fri, 19 Sep 2014 17:30:51 GMT
It got solved.

I was using the following api 

arrayListVar.add(i, new Float(newVal)) 

while there existed another value at i position in the ArrayList.
I then changed the logic to add the value after ith position, it stopped giving the out of
memory error.

There seems to be some error message issue here, the error said out of memory error, but the
error is not of memory but something else.

Few, I came out of this error for now.

Thanks anyway.

Puneet Agarwal
IIT Delhi

On Friday, September 19, 2014 10:17 PM, Puneet Agarwal <> wrote:

I wrote a code on Giraph 1.0.0 and using it with Hadoop 1.0.0

My program, uses an Aggregator to find the top-K vertices in some manner.
I am running this program only on 11 vertices.

I have written my own Aggregator class, which extends BasicAggregator<Text> 
I have declared two instance variables in this class, i.e., there are two ArrayLists inside
the class and outside method bodies.

The logic is to keep adding the values received in these ArrayLists, until top-K values are
when I add second value in these ArrayLists, I get the error java.lang.OutOfMemoryError: Java
heap space

I have tried to increase heap-size, to 4gb by modifying the mapred-site.xml, but no respite.

Please help.

Puneet Agarwal
IIT Delhi
View raw message