Heapspace for NG-Client

Forum to discuss the new web client version of Servoy.

Heapspace for NG-Client

Postby swingman » Thu Oct 18, 2018 1:45 pm

Hi, we are running a large Servoy 8.2.3 solution on Tomcat 9.0.12 on Java 8_181 and we are running out of heap space, it is only 228MB...
Where and how do I increase it? On the Server? in the WAR export?
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Heapspace for NG-Client

Postby omar » Mon Oct 22, 2018 10:48 am

Hi Christian,

On the server you can set the allocated memory space at the bottom of the Java tab in the Apache Tomcat properties dialog.
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands

Re: Heapspace for NG-Client

Postby swingman » Mon Oct 22, 2018 11:01 am

Hi Omar,

Thank you for your reply.

I had just worked out it was a Tomcat setting rather than a Servoy setting when I spotted your reply. I found this on stack overflow:

https://stackoverflow.com/questions/271 ... tomcat-app

This particular server is a Windows server, so:
Code: Select all
if you are using Windows, it's very simple. Just go to System Environment variables (right-clic Computer > Properties > Advanced System Parameters > Environment Variables); create a new system variable with name = CATALINA_OPTS and value = -Xms512m -Xmx1024m. restart Tomcat and enjoy!
from


Correction: The above did not work In our case. We are on Windows Server 2016, running Tomcat 9. Inside the bin directory of the Tomcat installation in Program Files there is a GUI application called Tomcat9w. It make it really easy to change the memory settings. They are on the JAVA tab. Restart the Tomcat Service afterwards.

Looks like in my case I need 20-30Mb per NG-client...
Does that seem reasonable?
Last edited by swingman on Mon Oct 22, 2018 6:00 pm, edited 1 time in total.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Heapspace for NG-Client

Postby omar » Mon Oct 22, 2018 11:23 am

The maximum memory on the Tomcat server is for all web applications that are running on it. In my case I have set it to 4Gb. Client memory considerations depend on the type of client. See https://wiki.servoy.com/display/DOCS/Memory+Management. There is also a section there with regard to configuring big servers with many clients.
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 9 guests