Servoy 6. Java heap memory

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Servoy 6. Java heap memory

Postby maservoy » Tue Mar 27, 2012 4:02 pm

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.-
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Servoy 6. Java heap memory

Postby maservoy » Wed Mar 28, 2012 11:12 am

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?
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Servoy 6. Java heap memory

Postby jcompagner » Tue May 01, 2012 8:42 am

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
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8846
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 9 guests

cron