Hi everybody,
I'm trying to run bbduk from bbmap package on our server, but I encounter with the following error, which probably related to memory. However, I already successfully run this program, without any problem. Could you please let me know where does the error come from and how to solve it?
Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space
at kmer.HashArray1D.resize(HashArray1D.java:145)
at kmer.HashArray.setIfNotPresent(HashArray.java:187)
at jgi.BBDukF$LoadThread.addToMap(BBDukF.java:1772)
at jgi.BBDukF$LoadThread.addToMap(BBDukF.java:1676)
at jgi.BBDukF$LoadThread.run(BBDukF.java:1605)
Exception in thread "Thread-7" java.lang.OutOfMemoryError: Java heap space
at kmer.HashArray1D.resize(HashArray1D.java:145)
at kmer.HashArray.setIfNotPresent(HashArray.java:187)
at jgi.BBDukF$LoadThread.addToMap(BBDukF.java:1772)
at jgi.BBDukF$LoadThread.addToMap(BBDukF.java:1676)
at jgi.BBDukF$LoadThread.run(BBDukF.java:1605)
Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
Thanks in advance
set the Xmx argument : http://opcodesolutions.com/tech/solve-java-lang-outofmemoryerror-java-heap-space/