# Memory Settings

**URL:** <https://forum.servoy.com/t/memory-settings/7876>\
**Category:** Classic Servoy\
**Created:** [July 25, 2007, 7:17am UTC](https://forum.servoy.com/t/memory-settings/7876 "2007-07-25T07:17:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 25, 2007, 7:17am UTC](https://forum.servoy.com/t/memory-settings/7876/1 "2007-07-25T07:17:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 25, 2007, 7:23am UTC](https://forum.servoy.com/t/memory-settings/7876/2 "2007-07-25T07:23:13Z")

</div>

> 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’.

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 25, 2007, 8:44am UTC](https://forum.servoy.com/t/memory-settings/7876/3 "2007-07-25T08:44:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 25, 2007, 8:46am UTC](https://forum.servoy.com/t/memory-settings/7876/4 "2007-07-25T08:46:23Z")

</div>

> servoy.maxClientHeap: 256

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

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 25, 2007, 8:49am UTC](https://forum.servoy.com/t/memory-settings/7876/5 "2007-07-25T08:49:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 25, 2007, 9:02am UTC](https://forum.servoy.com/t/memory-settings/7876/6 "2007-07-25T09:02:11Z")

</div>

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

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

A restart is always necessary!

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 25, 2007, 9:34am UTC](https://forum.servoy.com/t/memory-settings/7876/7 "2007-07-25T09:34:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 25, 2007, 9:38am UTC](https://forum.servoy.com/t/memory-settings/7876/8 "2007-07-25T09:38:51Z")

</div>

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](http://forum.servoy.com/viewtopic.php?t=8612)

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 25, 2007, 9:48am UTC](https://forum.servoy.com/t/memory-settings/7876/9 "2007-07-25T09:48:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 25, 2007, 9:54am UTC](https://forum.servoy.com/t/memory-settings/7876/10 "2007-07-25T09:54:04Z")

</div>

> 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).

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 26, 2007, 7:10am UTC](https://forum.servoy.com/t/memory-settings/7876/11 "2007-07-26T07:10:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 26, 2007, 7:16am UTC](https://forum.servoy.com/t/memory-settings/7876/12 "2007-07-26T07:16:23Z")

</div>

So, you add the memory params after 'java ’

---

<div class="post-metadata">

**Author:** ![rodneysieb](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rodneysieb](https://forum.servoy.com/u/rodneysieb)\
**Post date:** [July 26, 2007, 7:58am UTC](https://forum.servoy.com/t/memory-settings/7876/13 "2007-07-26T07:58:48Z")

</div>

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]( "Very Happy")

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [July 26, 2007, 8:04am UTC](https://forum.servoy.com/t/memory-settings/7876/14 "2007-07-26T08:04:11Z")

</div>

I am glad it works now ![:)]( "Smile")
