Memory Settings

Hi

I would like to clarify how to adjust the memory settings for:

Servoy client
Servoy developer
Servoy Server

i am running server as a windows service.

My servoy.maxClientHeap: 256 in the server admin pages. Is this for the server or each client? Do the clients need to unistalled/reinstalled for these settings to take affect?

I have read also in the forum there is a developer Xmx memory setting, but i cannot see this anywhere in the developer batch file.

servoy.maxClientHeap: 256

This is for your server or developer, whichever file you have the settings in.
Your client memory can be set through the admin pages.
Depending on the version of servoy you use the settings are applied in the .bat file.

The default heap size for the server/developer should be enough without any additional plug-ins and beans.
The more of these components you add the more likely it is that you need to start playing with the settings (our installer suggests new settings after installing new plug-ins).

The memory settings for your client depend on the # of forms you have or want to have ‘at hand’.

Hi Marcel

Thanks for your reply.

The setting servoy.maxClientHeap: 256 is in the Servoy administration server, fine so i am assuming as per your reply this is for the server.

Where in the admin pages do you set the client memory? i can’t see any other setting in the administration server.

using 2.27

servoy.maxClientHeap: 256

hmm, I missed that you took it from the admin pages. So, this IS for the client!

Hi Marcel

Thanks, so where do i make the settings for the server and the developer?

in a .bat file? And do the clients need to be reinstalled for the settings to be changed?

Yep, settings need to be applied in the .bat.

You can find instructions at http://www.it2be.com/download.php (I could not copy paste it due to a php error :( ).

A restart is always necessary!

Hi Marcel

Windows batch file(s):
XX:PermSize=128m XX:MaxPermSize=256m XmX512m Xms256m

This line in both the server and developer .bat file?

This currently does not exist anywhere in either of the .bat files. Where is it supposed to be inserted?

Rodney, we are repeating a discussion already done when we proceed this way.
Have a look here http://forum.servoy.com/viewtopic.php?t=8612

Hi Marcel

Yes i have already seen that post.

It mentions an existing command in the bat file to edit, but this command does not exist anywhere in either of my .bat files. Where do i insert it?

but this command does not exist anywhere in either of my .bat files

I don’t understand, you don’t have a line that starts like the sample and ends like the sample (never mind what you see in the middle).
If so it would be nice that you copy/paste what you have in your batch file because that means that you can not start developer from the batch file (imho).

Hi Marcel

Developer .bat file:

@echo off
java -classpath servoy_developer.jar Servoy
rem c:\jdk1.3.1\bin\java -classpath .;lib\activation.jar;lib\antlr.jar;lib\bootstrap.jar;lib\j2db.jar;lib\j2dbdev.jar;lib\compat141.jar;lib\jh.jar;lib\jndi.jar;lib\js.jar;lib\jta.jar;lib\kunststoff.jar;lib\mail.jar;lib\jug.jar;lib\jdbc2_0-stdext.jar;lib\naming-common.jar;lib\naming-resources.jar;lib\servlet.jar;lib\xerces.jar;server\lib\bootstrap.jar com.servoy.j2db.startup.Bootstrap
rem
rem loaded by tomcat it self: server\lib\catalina.jar;server\lib\jakarta-regexp-1.2.jar;server\lib\jasper-compiler.jar;server\lib\jasper-runtime.jar;server\lib\naming-factory.jar;server\lib\servlets-common.jar;server\lib\servlets-default.jar;server\lib\servlets-invoker.jar;server\lib\servlets-manager.jar;server\lib\servlets-snoop.jar;server\lib\servlets-webdav.jar;server\lib\tomcat-ajp.jar;server\lib\tomcat-util.jar;server\lib\warp.jar
rem
rem For enable logging change ‘javaw’ into ‘java -DSTACKTRACE=true’

Server .bat file:

@echo off

:restart
rem To enable logging change ‘java’ into ‘java -DSTACKTRACE=true’
java -Djava.awt.headless=true -classpath .;lib\commons-collections.jar;lib\commons-dbcp.jar;lib\commons-pool.jar;lib\activation.jar;lib\antlr.jar;lib\j2db.jar;lib\j2dbdev.jar;lib\compat141.jar;lib\jndi.jar;lib\js.jar;lib\jta.jar;lib\mail.jar;lib\jug.jar;lib\jdbc2_0-stdext.jar;lib\naming-common.jar;lib\naming-resources.jar;lib\servlet.jar;lib\xerces.jar;lib\server-bootstrap.jar;lib\commons-fileupload-1.0.jar;lib\commons-logging.jar;lib\hibernate2.jar com.servoy.j2db.server.ApplicationServer %1 %2 %3 %4 %5 %6 %7 %8 %9

rem loaded by tomcat it self: server\lib\catalina.jar;server\lib\jakarta-regexp-1.2.jar;server\lib\jasper-compiler.jar;server\lib\jasper-runtime.jar;server\lib\naming-factory.jar;server\lib\servlets-common.jar;server\lib\servlets-default.jar;server\lib\servlets-invoker.jar;server\lib\servlets-manager.jar;server\lib\servlets-snoop.jar;server\lib\servlets-webdav.jar;server\lib\tomcat-ajp.jar;server\lib\tomcat-util.jar;server\lib\warp.jar

rem restart if the server exited with the restart exit code 99
if errorlevel 99 goto restart

So, you add the memory params after 'java ’

Hi Marcel

Not sure how these lines were missing but checked my notebook directory of servoy and found the lines in the batch file as they should be. Copied these into my workstation servoy directory, all running fine.

and faster :D

Thanks for your help.

I am glad it works now :)