Servoy 6. Java heap memory

Hi,
we started out today with Servoy 6.0.6. We are having trouble with Java memory and I wonder if there is a way to manage it in a better way.

This is our server configuration:
Servoy version 6.0.6 -build 1232
java.version=1.6.0_17
servoy.initialClientHeap = 256
servoy.maxClientHeap = 512

Our Java clients (java.version=1.6.0_26) use the maxClientHeap, instead of just what they need.
Monitorizing with VisualVM we have checked that the used memory stays around 300 while the reserved memory is equal to the maxClientHeap.

Is there a way to tell Java to use just the required memory instead of the available memory?
We didn’t have this trouble under Servoy 5.2 and it is important because we use Servoy with Citrix and we need to balance servers.

Thanks,
Miguel.-

This is the server configuration which I believe can make the difference:
servoy.vmClientArgs = -XX:+DisableExplicitGC

When should we use
XX:SoftRefLRUPolicyMSPerMB=3600000 (recommended by Servoy)
and/or
-XX:+DisableExplicitGC?

java always just takes what it needs, it doesnt take just the max…

But i guess in your startup or one other hit of your app server it did need something between 300-500 MB
and by default java doesn’t give it back to the os

those vm options you describe don’t have anything to do with taking or releasing memory
you can look at these options:

viewtopic.php?f=5&t=17025&p=92509#p92509