How LRT2 and Java deal with memory - Printable Version +- LRTimelapse Forum (https://forum.lrtimelapse.com) +-- Forum: LRTimelapse 6 (https://forum.lrtimelapse.com/forum-37.html) +--- Forum: Frequently Asked Questions (https://forum.lrtimelapse.com/forum-28.html) +--- Thread: How LRT2 and Java deal with memory (/thread-1268.html) |
How LRT2 and Java deal with memory - Gunther - 2012-08-10 Every Java Program relies on the "Java Virtual Machine". So it lives in a Sandbox created by java. Java reserves a certain amount of memory for this sandbox. There is an initial amount and a maximum amount. These settings are passed to the virtual machine when launching LRTimelapse. The problem is, that we have to deal with machines with huge amount of RAM and with ones with small available RAM. Another problem is that Mac and PC behave a little bit different when dealing with Java-Memory allocation.
The difference to LRT1 is now that the memory display in LRT is more accurate reflecting what java does. And Java only releases Memory if it requires it. So after loading one large sequence, free memory goes down but you can still load several other sequences after that with no problem because Java will free memory if necessary. I hope I could clarify the way Java and LRTimelapse deal with memory a bit. If you work with large sequences I still recommend decreasing the preview size in the Settings and Shift Reload the sequence to rebuild the previews. RE: How LRT2 and Java deal with memory - Ulli - 2012-08-10 The 2 to 4 GB reserved from the large memory launcher are only the initial reserved RAM and the amounbt will be increased if necessary? I'M a litte bit confused about that, because the maximum of 90% of the normal launcher would be much better in case of large memory?!? RE: How LRT2 and Java deal with memory - Gunther - 2012-08-10 Just use the launcher that suits your configuration best. You can see the Memory allocated in LRTimelapse. RE: How LRT2 and Java deal with memory - Phil Hart - 2012-08-25 I think Ulli's question is a good one as I am struggling with the same issue. I have a new Windows 7 PC with 32GB RAM, but can't get Java/LR Timelapse to use more than ~3.2GB, whether I use the 'Large Memory' version or the default. Even with Image Preview Size set to 150*100px, I am still getting out of memory warnings (and LR Timelapse shows 0 memory free) although it does keep working so far (on an all night sequence of ~5000 images). Windows Resource Monitor also shows Java not going above ~3.2GB (private memory use) but with ~20GB free memory available. I tried setting -Xmx8G in the Java control panel to increase max memory heap for Java but that has not made any difference. It appears that 3.2GB is a maximum setting determined by LR Timelapse, but for a machine with lots of memory there is plenty of scope to go higher. Phil RE: How LRT2 and Java deal with memory - Gunther - 2012-08-25 Phil, have you installed the 64 bit Java Runtime? You can get it here: http://www.java.com/en/download/manual.jsp Make sure to uninstall the other java environments before. RE: How LRT2 and Java deal with memory - Phil Hart - 2012-08-25 Yes.. I uninstalled Java and reinstalled today making sure to download the 64 bit version. (2012-08-25, 09:16)gwegner Wrote: Phil, have you installed the 64 bit Java Runtime? RE: How LRT2 and Java deal with memory - Gunther - 2012-08-25 And your memory-allcation still doesn't get higher? If so please try launching via the CMD file in the LRT2 program directory. Edit it before to set the memory demands there. Does that help? RE: How LRT2 and Java deal with memory - Phil Hart - 2012-09-04 (2012-08-25, 09:42)gwegner Wrote: And your memory-allcation still doesn't get higher? Well I've upgraded to LR2 beta 3 and now it's very hard to get LRT to need more than 2-3GB of memory so the problem has gone away. whatever you've changed on the previews/memory management side of things certainly seems to be working! Phil RE: How LRT2 and Java deal with memory - Gunther - 2012-09-04 Yes. The huge memory demand is fortunately history |