Open GoogleCodeExporter opened 8 years ago
Sorry I figure out how to do it:
def regions = new File("TruSeq_10k.intervals").text.split("\n")
hello = {
exec """
echo "execute_hello with $region";cp $input $output
"""
}
run {
chr(regions) * [hello]
}
Regards
Original comment by davide.r...@gmail.com
on 22 Oct 2013 at 2:18
Further exploring I enter in this problem:
My input file have 4544 intervals ...
If I run the previous pipeline I get:
java.lang.OutOfMemoryError: unable to create new native thread
Original comment by davide.r...@gmail.com
on 22 Oct 2013 at 2:36
Still struggling with this resource problem:
even setting
export MAX_JAVA_MEM=4096M; bpipe run -v -n 10 -m 4096 region_first.groovy
input.bam
I still getting:
java.lang.OutOfMemoryError: unable to create new native thread
In log I notice that
log.info("Waiting for " + runningCount.get() + " parallel stages to complete (pool.active=${pool.activeCount} pool.tasks=${pool.taskCount})" )
(Concurreny class, line 179) is never called
Original comment by davide.r...@gmail.com
on 23 Oct 2013 at 9:56
This seems related to
new SynchronousQueue<Runnable>()
In Concurrency.groovy constructor
If I switch to:
new LinkedBlockingQueue<Runnable>()
in Concurreny constructor all seems working.
Hope it helps
Original comment by davide.r...@gmail.com
on 23 Oct 2013 at 10:58
With the change: new LinkedBlockingQueue<Runnable>() the java process is
stable and generate around 50 threads on a MAC OSX 2.9 Ghz Core i7
Original comment by davide.r...@gmail.com
on 23 Oct 2013 at 1:38
Original issue reported on code.google.com by
davide.r...@gmail.com
on 22 Oct 2013 at 2:15