I would like to ask if anyone here knows a way how to optimize the memory usage of the JVM? We are using a java service wrapper (YAJSW) that invokes the JVM and the physical memory usage is around 40MB. I want to lessen this to let's say 5-10MB. How do I achieve this?
So far, I only have the following configuration:
java =-Xmx1024m
I have also tried this:
java =-Xms1024m -Xmx1024m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:SurvivorRatio=2 -XX:PermSize=256m -XX:MaxPermSize=256m
But these configuration settings made no difference at all. What would be the correct configuration settings for this? or, what else do i have to do to optimize this?
Thank in advance for your answers.