Servoy server halting

Hi,

Yesterday suddenly all of our users could not work in Servoy anymore ( smart client).

We restarted and they could work again.
In the servoy log there where entries like :

2011-05-10 10:48:35,122 ERROR [TaskExecuter[12]] com.servoy.j2db.dataprocessing.Zb - Error flushing message buffer to client 51D9AFC8-A476-4376-A795-7B419900A669
java.lang.OutOfMemoryError: Java heap space

2011-05-10 13:33:11,642 ERROR [RMI TCP Connection(11307)-172.16.163.11] com.servoy.j2db.util.Debug - Could not verify login via authenticator svy_authenticator
java.lang.OutOfMemoryError: Java heap space

The settings on the server for servoy.maxClientHeap = 256

The settings in the Servoy_server.bat are : java -Djava.awt.headless=true -Xmx256m -Xms64m -XX:MaxPermSize=128m

Which setting should we adjust ??

Regards,

Why do you use the bat file? and not the windows service?

I believe in the batfile you have to adjust the -Xmx256m to -Xmx512m
If you use the windows service, you have to adjust in the wrapper.conf this line:

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512

Sorry, we do use the wrapper.conf

Thanks,

Indeed you’re just running out of memory the part of the memory you’re running out of is the so-called Heap space in Java, which is indeed controlled by the -Xmx setting (when starting commandline) (the -Xms setting determines the initial amount allocated when the server is launched) or the wrapper.java.maxmemory setting in wrapper.conf when running as a service.

If you have a machine that has a lot of memory, you could also give it more, like 1gb. Note that Java doesn’t take the maximum if it’s not needed.

Paul