Java VM因堆大小增加而失败

时间:2015-10-27 10:18:47

标签: java jvm

S0我试图运行的命令是;

java -jar -Xmx290G  /ibers/ernie/home/thh32/rumenISPG/GenomeAnalysisTK.jar  -T VariantFiltration -R Contigs_1.fa  -V Rank10_clean.fasta.gz.Contig_1-sort.bam.vcf1.vcf  --filterExpression "QD < 2.0 || FS > 60.0 || MQ < 40.0 || HaplotypeScore > 13.0 || MappingQuality RankSum < -12.5 "  --filterName "testing_filter"  -o filtered_snps.vcf

我运行它的机器可以访问500G RAM所以不应该是一个问题,但是我不断收到此错误信息;

Error occurred during initialization of VM
Unable to allocate 9502720KB bitmaps for parallel garbage collection for the requested 304087040KB heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

是否有其他人遇到过这个问题,如果有,你是否解决了这个问题?

哦,也只是让人们想知道为什么我给这个程序这么大的内存,当我没有得到这个消息,表明它需要更多的RAM。这是100G堆大小。

INFO  09:55:57,953 HelpFormatter - --------------------------------------------------------------------------------- 
INFO  09:55:57,955 HelpFormatter - The Genome Analysis Toolkit (GATK) v3.4-46-gbc02625, Compiled 2015/07/09 17:38:12 
INFO  09:55:57,956 HelpFormatter - Copyright (c) 2010 The Broad Institute 
INFO  09:55:57,956 HelpFormatter - For support and documentation go to http://www.broadinstitute.org/gatk 
INFO  09:55:57,961 HelpFormatter - Program Args: -T VariantFiltration -R Contigs_1.fa -V Rank10_clean.fasta.gz.Contig_1-sort.bam.vcf1.vcf --filterExpression QD < 2.0 || FS > 60.0 ||
 MQ < 40.0 || HaplotypeScore > 13.0 || MappingQuality RankSum < -12.5  --filterName testing_filter -o filtered_snps.vcf 
INFO  09:55:57,967 HelpFormatter - Executing as thh32@node011 on Linux 2.6.32-504.30.3.el6.x86_64 amd64; Java HotSpot(TM) 64-Bit Server VM 1.8.0_40-b26. 
INFO  09:55:57,968 HelpFormatter - Date/Time: 2015/10/27 09:55:57 
INFO  09:55:57,968 HelpFormatter - --------------------------------------------------------------------------------- 
INFO  09:55:57,969 HelpFormatter - --------------------------------------------------------------------------------- 
INFO  09:55:58,474 GenomeAnalysisEngine - Strictness is SILENT 
##### ERROR ------------------------------------------------------------------------------------------
##### ERROR A USER ERROR has occurred (version 3.4-46-gbc02625): 
##### ERROR
##### ERROR This means that one or more arguments or inputs in your command are incorrect.
##### ERROR The error message below tells you what is the problem.
##### ERROR
##### ERROR If the problem is an invalid argument, please check the online documentation guide
##### ERROR (or rerun your command with --help) to view allowable command-line arguments for this tool.
##### ERROR
##### ERROR Visit our website and forum for extensive documentation and answers to 
##### ERROR commonly asked questions http://www.broadinstitute.org/gatk
##### ERROR
##### ERROR Please do NOT post this error to the GATK forum unless you have really tried to fix it yourself.
##### ERROR
##### ERROR MESSAGE: There was a failure because you did not provide enough memory to run this program.  See the -Xmx JVM argument to adjust the maximum heap size provided to Java
##### ERROR ------------------------------------------------------------------------------------------

谢谢, 汤姆

1 个答案:

答案 0 :(得分:0)

减少JAVA_OPTS中Xms和Xmx参数中的值。 根据您的应用程序需要多少并考虑可用的RAM空间来设置值。