Increase heap size IGV 2.19.7 on MacOS

10 views
Skip to first unread message

Sheina Sim

unread,
Nov 25, 2025, 2:51:29 AMNov 25
to igv-help
Hello!

I am trying to load some large .bed files and I would like to increase the heap size.

I located the igv.jar file and ran:

java -jar -Xms2g -Xmx8g Contents/Java/lib/igv.jar


And I got this error:


Error: Unable to initialize main class org.broad.igv.ui.Main

Caused by: java.lang.NoClassDefFoundError: htsjdk/tribble/util/URLHelperFactory


I tried the browser, and ran into the same memory issue.


I also tried igv.js in a jypter instance but could not load a custom fasta. Is it possible to load a custom reference that is stored locally on igv.js?


Any advice on increasing heap size on my local machine?


Thanks!


igv-help

unread,
Nov 25, 2025, 11:11:19 AMNov 25
to igv-help
See https://github.com/igvteam/igv/blob/main/scripts/igv.sh,  or https://github.com/igvteam/igv/blob/main/scripts/igv.bat if on windows, and modify accordingly.   If you need more than 8 GB to load a file perhaps an indexed or bigbed format would work better.
Reply all
Reply to author
Forward
0 new messages