New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtracklayer
possible memory leakage
#12
Comments
rtracklayer
possible memory leakagertracklayer
possible memory leakage
Maybe @hpages has some ideas? |
Are you sure this isn't just from loading the rtracklayer namespace? |
Yes, Checked on 2 different PCs. Got same output. |
But your example does not isolate calling Calling |
Here is what I get (in a fresh R session):
So yes, as Michael suggested, loading/attaching rtracklayer and all its 20 or so dependencies (direct and indirect) is what consumes about 400 MB of RAM, not calling H.
|
Hi, as @lawremi says, even without attaching/loading
I raised this issue because I am working with limited resources (shinyapp.io allows 1GB memory free of charge) and so 400 MB is quite expensive for that. I defined |
You seem to misunderstand what @lawremi said and what I also tried to show you above. When you call
Note that I didn't even try to execute any code from the rtracklayer package here. I just typed Unfortunately it is not realistic to use Bioconductor on a machine with only 1 GB of RAM. We don't have precise requirements, and it very much depends on what your use case is, but in my experience it's hard to run any typical Bioconductor workflow with less than 3 GB of RAM. Some workflows will require much more than that e.g. 8 GB or even more... |
OK. Thank you for detailed explanation. |
Hi, I have been stretching my head to understand possible memory usage in one of my complex R script. What I found is quite surprising. Using a function
rtracklayer::readGFF()
occupies quite a bit memory (about 400 MB) in the R even without loading the packagertracklayer
. See the step by step use case and output.Amount of memory used in fresh R session. (NOTE: No prior package or objects are loaded)
Amount of memory used once
rtracklayer::readGFF()
function executed.As we can see, there is 10X larger memory occupied though nothing has been returned from the
rtracklayer::readGFF()
execution. How to explain why this is ? and how to prevent R occupying additional~400 MB
of memory while usingrtracklayer::readGFF()
?The text was updated successfully, but these errors were encountered: