performance - Java to introduced the temporary objects -


i not able see major gc getting triggered in application server. because, have assigned more memory 4gb. , maximum going upto 1gb. want see full gc happened.

to triggered full gc , need full heap memory not possible while application running. so, planning put temporary object while starting server , fill heap @ lease 3.5gb.

can me out give me approach?

thanks in advance

here simple code temporary object creatation . hope , may you.

for(int i=0;i<100000;++i){ map.put(uuid.randomuuid(),uuid.randomuuid()); } 

declare map global variable , on each request execute loop.


Comments