Hello All,
I am running Trinity using the following command:
nohup ./Trinity --seqType fq --left KGD_T_R1_filtered.fq --right KGD_T_R2_filtered.fq --CPU 150 --max_memory 450G
The Phase 1 runs fine but the Phase 2 displays follwing errors:
Thursday, June 15, 2017: 06:50:58 CMD: /media/Disk1/PC_Genome/tools/trinityrnaseq-Trinity-v2.4.0/trinity-plugins/parafly/bin/ParaFly -c recursive_trinity.cmds -CPU 150 -v
Number of Commands: 434391
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
We are sorry, commands in file: [failed_butterfly_commands.130130.txt] failed. :-(
sh: fork: retry: Resource temporarily unavailable
Trinity run failed. Must investigate error above.
succeeded(0), failed(1) 0.000230207% completed. Trinity run failed. Must investigate error above.
.
.
Trinity run failed. Must investigate error above.
succeeded(32), failed(24) 0.0128916% completed. #
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# An error report file with more information is saved as:
# /media/Disk1/PC_Genome/Transcriptome_Assembly/trinity_out_dir/read_partitions/Fb_0/CBin_0/c84.trinity.reads.fa.out/hs_err_pid143843.log
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
succeeded(33), failed(24) 0.0131218% completed.
These error in the log file is the follwoing:
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# This output file may be truncated or incomplete.
#
# Out of Memory Error (gcTaskThread.cpp:48), pid=143843, tid=0x00007f2fc7433700
#
# JRE version: (8.0_131-b11) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
I have 160 CPU and 502 GB of RAM and java 1.8.0_131 installed in my system.
The fastq file size are of 105GB each (100bp paired end reads)
The trinity_out_folder generated around 126 Gb of data before I killed it.
I found multiple solutions in google groups. however, I couldn't figure out the exact problem in my case.
Thanks in advance for the help.
Best