You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Jinsong Hu <ji...@hotmail.com> on 2010/08/13 20:41:31 UTC
namenode crash in centos. can anybody recommend jdk ?
Hi, There:
does anybody know of a good combination of centos version and jdk version that works stably ? I am using centos version
Linux 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:45:38 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
jdk version
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
and run the namenode with the following jvm config
-Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
but it crashed silently after 16 hours.
I used jdk
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
with the same jvm config, and the namenode crashed in about 1 week. I searched internet and people say 1.6.0_18 is not good.
but does anybody can recommend a good combination of jdk and os version that can run stably ?
This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
Jimmy.
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Michael Thomas <th...@hep.caltech.edu>.
We use an earlier version of Sun's JDK, which has been very stable for us:
# java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
--Mike
On 08/13/2010 11:41 AM, Jinsong Hu wrote:
>
>
>
>
> Hi, There:
> does anybody know of a good combination of centos version and jdk version that works stably ? I am using centos version
>
> Linux 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:45:38 EDT 2010
> x86_64 x86_64 x86_64 GNU/Linux
>
> jdk version
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
>
> and run the namenode with the following jvm config
> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
>
> but it crashed silently after 16 hours.
>
> I used jdk
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
>
> with the same jvm config, and the namenode crashed in about 1 week. I searched internet and people say 1.6.0_18 is not good.
> but does anybody can recommend a good combination of jdk and os version that can run stably ?
>
>
> This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
>
> Jimmy.
>
>
>
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Edward Capriolo <ed...@gmail.com>.
On Mon, Aug 16, 2010 at 10:51 AM, Michael Thomas <th...@hep.caltech.edu> wrote:
> We recently discovered the same thing happen to our SNN as well. Heap too
> small == 100% cpu utilization and no checkpoints.
>
> --Mike
>
> On 08/16/2010 06:35 AM, Brian Bockelman wrote:
>>
>> By the way,
>>
>> Our experience is that if you allocate a too small heap space (we had a
>> cluster of about 600TB running with a 1GB heap), you do get some really
>> strange effects. I can't recall any random crashes, but I do recall
>> performing a "fsck" would effectivly lock up the namenode JVM for minutes
>> while it spent an increasing amount of time in GC routines.
>>
>> Brian
>>
>> On Aug 16, 2010, at 4:49 AM, Steve Loughran wrote:
>>
>>> On 13/08/10 22:24, Allen Wittenauer wrote:
>>>>
>>>> On Aug 13, 2010, at 11:41 AM, Jinsong Hu wrote:
>>>>
>>>>>
>>>>> and run the namenode with the following jvm config
>>>>> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
>>>>> -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError
>>>>> -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
>>>>
>>>> Only 2g heap for NN?
>>>>
>>>>> This crashing problem doesn't happen with a small cluster of 4
>>>>> datanodes. but it happens with a cluster of 17 datanodes.
>>>>
>>>> Bump your heap up and try again.
>>>>
>>>>
>>>
>>> 1. I'd worry about some of the XX options too, try turnining off the more
>>> bleeding edge features
>>> -XX:+DoEscapeAnalysis -XX:+AggressiveOpts
>>>
>>> 2. There's an -Xmx1000m and a -Xmx2G -you may only get a 1Gb heap which
>>> is less than I'd use for an IDE.
>>
>
>
>
NameNode needs more memory with more files. Even larger file names use
more memory. CompressedOops helps. The SNN needs more memory then the
NN. Remember since Java garbage collects with threads lazily, load on
the application usually drives up your memory usage significantly.
You can do a Hadoop Proof of Concept with 2GB, but in production 8GB
is the minimum.
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Michael Thomas <th...@hep.caltech.edu>.
We recently discovered the same thing happen to our SNN as well. Heap
too small == 100% cpu utilization and no checkpoints.
--Mike
On 08/16/2010 06:35 AM, Brian Bockelman wrote:
> By the way,
>
> Our experience is that if you allocate a too small heap space (we had a cluster of about 600TB running with a 1GB heap), you do get some really strange effects. I can't recall any random crashes, but I do recall performing a "fsck" would effectivly lock up the namenode JVM for minutes while it spent an increasing amount of time in GC routines.
>
> Brian
>
> On Aug 16, 2010, at 4:49 AM, Steve Loughran wrote:
>
>> On 13/08/10 22:24, Allen Wittenauer wrote:
>>>
>>> On Aug 13, 2010, at 11:41 AM, Jinsong Hu wrote:
>>>
>>>>
>>>> and run the namenode with the following jvm config
>>>> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
>>>
>>> Only 2g heap for NN?
>>>
>>>> This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
>>>
>>> Bump your heap up and try again.
>>>
>>>
>>
>> 1. I'd worry about some of the XX options too, try turnining off the more bleeding edge features
>> -XX:+DoEscapeAnalysis -XX:+AggressiveOpts
>>
>> 2. There's an -Xmx1000m and a -Xmx2G -you may only get a 1Gb heap which is less than I'd use for an IDE.
>
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Brian Bockelman <bb...@cse.unl.edu>.
By the way,
Our experience is that if you allocate a too small heap space (we had a cluster of about 600TB running with a 1GB heap), you do get some really strange effects. I can't recall any random crashes, but I do recall performing a "fsck" would effectivly lock up the namenode JVM for minutes while it spent an increasing amount of time in GC routines.
Brian
On Aug 16, 2010, at 4:49 AM, Steve Loughran wrote:
> On 13/08/10 22:24, Allen Wittenauer wrote:
>>
>> On Aug 13, 2010, at 11:41 AM, Jinsong Hu wrote:
>>
>>>
>>> and run the namenode with the following jvm config
>>> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
>>
>> Only 2g heap for NN?
>>
>>> This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
>>
>> Bump your heap up and try again.
>>
>>
>
> 1. I'd worry about some of the XX options too, try turnining off the more bleeding edge features
> -XX:+DoEscapeAnalysis -XX:+AggressiveOpts
>
> 2. There's an -Xmx1000m and a -Xmx2G -you may only get a 1Gb heap which is less than I'd use for an IDE.
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Steve Loughran <st...@apache.org>.
On 13/08/10 22:24, Allen Wittenauer wrote:
>
> On Aug 13, 2010, at 11:41 AM, Jinsong Hu wrote:
>
>>
>> and run the namenode with the following jvm config
>> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
>
> Only 2g heap for NN?
>
>> This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
>
> Bump your heap up and try again.
>
>
1. I'd worry about some of the XX options too, try turnining off the
more bleeding edge features
-XX:+DoEscapeAnalysis -XX:+AggressiveOpts
2. There's an -Xmx1000m and a -Xmx2G -you may only get a 1Gb heap
which is less than I'd use for an IDE.
Re: namenode crash in centos. can anybody recommend jdk ?
Posted by Allen Wittenauer <aw...@linkedin.com>.
On Aug 13, 2010, at 11:41 AM, Jinsong Hu wrote:
>
> and run the namenode with the following jvm config
> -Xmx1000m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -XX:+UseCompressedOops -XX:+DoEscapeAnalysis -XX:+AggressiveOpts -Xmx2G
Only 2g heap for NN?
> This crashing problem doesn't happen with a small cluster of 4 datanodes. but it happens with a cluster of 17 datanodes.
Bump your heap up and try again.