Am 01.09.13 10:53, schrieb Giovanni:
Martin Grigorov-4 wrote
Hi,
Read about Java memory settings (-Xms, -Xmx)
Yes, I can increase heap space by settings, but is this a good approach? If
displaying one 10Mb pic consumes 1.5Gb heap space - is this normal? Maybe
there are other ways to solve this problem without increasing heap space by
settings?
I think there is a better solution if you do not have unlimited memory :). See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ . You generate every image in your page render loop. This way the image data is stored in your page (which is bad). If you use a DynamichImageResource the image is created when the image request comes in. But you have to store your images somewhere else (remove this static list of buffered images) and refer to them with an ID.

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to