I have an application server server and 64 GB memory on it. And a java web application on it. What is a best practice to utilize all these 64 GB? I need store a large set of objects (HashSet) Is it a best solution to use -Xms -Xmx ? But will GC working well? Should I use 3rd party solutions like cache libraries (memcache and etc.) ?
A pretty generic question, so a broad answer.
In other words: sure, if you have one large monolithic application that can only be "scaled" by adding more RAM, well, then you have to live with that. But if you are wondering about smarter ways to spend your money, then look into micro services, and how you can use them in order to break up that monolith into many small parts ( and where scaling happens by instantiating more of these small parts ).