The application that we are working on requires very fast response times and we are thinking of implementing some caching mechanisms using singleton.
The scary thing is that cache size may be quite large -- approximately 500MB - 1GB.
Question that I have consists of two issues:
1) How JVM would handle such large amount of memory dedicated to it ? Is there any limitations on memory size ?
2) In terms of the speed, shall we expect any performance degradation when JVM deals with such large objects ?
Thank you for your help.