将nutch源码配置到MyEclipse中出现java.lang.OutOfMemoryError: Java heap space错误

想将nutch源码配置到MyEclipse中,但是发现运行时出现了下面的错误,通过网上找答案发现时给程序分配的内存栈太小:

java.lang.OutOfMemoryError: Java heap space
	at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.<init>(MapTask.java:781)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:350)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
	at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177)
13/05/01 10:26:02 INFO mapred.JobClient:  map 0% reduce 0%
13/05/01 10:26:02 INFO mapred.JobClient: Job complete: job_local_0001
13/05/01 10:26:02 INFO mapred.JobClient: Counters: 0
java.io.IOException: Job failed!
	at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1252)
	at org.apache.nutch.crawl.Injector.inject(Injector.java:245)
	at org.apache.nutch.sdu.Crawl.main(Crawl.java:129)

解决方案:

 在VM arguments 中加上 -Xms800m -Xmx800m


你可能感兴趣的:(将nutch源码配置到MyEclipse中出现java.lang.OutOfMemoryError: Java heap space错误)