Java Error unable to create virtual machine

169 views
Skip to first unread message

abe2016

unread,
Aug 18, 2016, 11:08:23 AM8/18/16
to 3D Genomics
Hi, 
I keep getting the following error when I get to the hic block within the juicer.sh script: 

Unrecognized option: -Xgcthreads1
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

This is the version of java I am running: 
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


I think this might be the incorrect version of java? Could you advice? 

Thank you! 

Neva Durand

unread,
Aug 18, 2016, 11:15:37 AM8/18/16
to abe2016, 3D Genomics
Hello,

The short answer is, look at the script "juicebox" and get rid of that option.

The longer answer is, I'm not sure why you're getting "Unrecognized option" because it's not obvious (from a quick web search) that this is deprecated.  You can look at this site for an explanation of the -Xgcthreads option:

In any case, we needed this for our SLURM cluster system, but if you don't need it, just remove it.

Best
Neva

--
You received this message because you are subscribed to the Google Groups "3D Genomics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 3d-genomics+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/3d-genomics/630aa4a7-79dd-4ca2-ae7a-d3fe97921ad6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Neva Cherniavsky Durand, Ph.D.
Staff Scientist, Aiden Lab

Kyle Patrick Eagen

unread,
Aug 18, 2016, 1:39:37 PM8/18/16
to Neva Durand, abe2016, 3D Genomics
Hi,

I had this problem as well on our SLURM cluster which seemed to be dependent on whether Juicer is using IBM or Oracle Java.  IBM Java uses option -Xgcthreads1 whereas Oracle uses -XX:ParallelGCThreads=1 so try changing the line within the "juicebox" script to this.

Best,
Kyle


To unsubscribe from this group and stop receiving emails from it, send an email to 3d-genomics...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/3d-genomics/CAF1CciVZ7dV2yenZ4nZHeoQmSJNvYDyGSv7k3Xz%2Bs_wV3Rb_nA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


-- 
Kyle P. Eagen
M.D./Ph.D. Doctoral Student
Medical Scientist Training Program
Program in Biophysics
Roger Kornberg Laboratory
Department of Structural Biology
Stanford University School of Medicine
299 Campus Drive West
Fairchild Building Room D109
Stanford, CA 94305-5126
USA
Lab Phone:  (650) 724-9944
kea...@stanford.edu

abe2016

unread,
Aug 18, 2016, 5:02:59 PM8/18/16
to 3D Genomics, ne...@broadinstitute.org, abraham...@gmail.com
Thank you Kyle! 

I ended up removing -Xgcthreads1 and everything seems to be working. I will try your suggestion as well. 


Reply all
Reply to author
Forward
0 new messages