Heapspace for NG-Client

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?

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.

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:

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?

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 Docs. There is also a section there with regard to configuring big servers with many clients.