This content has been marked as final. Show 5 replies
Slash Wang wrote:You misunderstand; EJP is not "on it" to help you, he was only doing his moderation tasks.
Hey EJP, could you pls help me?
. (some images are 1280*800 and size of 80k)Compressed. Uncompressed, which is what applications have to use to be able to display the images without bogging down rendering performance, you calculate with the raw pixel data which is 1280*800*4 = ~4mb, not counting memory sacrificed for memory alignment. That's only the raw pixel data too, JavaFX might add some overhead to it. Lets take it very pessimistic and your image uses 8mb of memory when loaded. That's still not a lot, but JavaFX (or the rendering API it is built on) might have some copies of the image floating around internally in its buffers - I don't know about that. That would still not be a lot, so I wonder how many images you are actually loading. I also wonder how much heap space your application actually has.
Does this jira problem solved already? Please look at this jira first.
Everytime we load the page with a big image background, it takes about 10M memory EVERYTIME.
The memory never go down then. So this is a bug of image in css file that leads memory leak.
So I want a way "Use ImageView as the control's(eg.VBox) background image(instead of css background)".
I think ImageView would be GCed if properly used.
But I don't know how. Would you pls show me some code? Thank you very much.