java.lang.OutOfMemoryError: Java heap space

Hi all,

We are running out of heap space. The server is grinding to a halt. Users compaining.
What do I do? Increase heap space or is there something else going on?

C

Server Information
Servoy version 5.2.8 -build 1016
Port used by RMI Registry: 1099
Repository version 38 (B7D004BD-1867-4F81-BE78-6F412AC55069)
Current time: Thu Jun 30 11:45:42 BST 2011
Uptime: 21 hours 18 minutes 58 seconds
Server ID: 31FEA7CA-047D-4F92-8422-D2805469F3CF

User Information
Logged in as: chrisb

JVM Information
java.vm.name=Java HotSpot™ 64-Bit Server VM
java.version=1.6.0_24
java.vm.info=mixed mode
java.vm.vendor=Apple Inc.

Operating System Information
os.name=Mac OS X
os.version=10.6.7
os.arch=x86_64

System Information
Heap memory: allocated=258880K, used=251077K, max=258880K
None Heap memory: allocated=120412K, used=74933K, max=180224K

How do I increase the heap space on Mac OS X?

Hi Christian,

In servoy_server.sh you can change the -Xmx setting to lets say 512m.

Have done now. Thanks.

The documentation is useless:

http://wiki.servoy.com/display/public/D … e+Settings

does not tell you that it is the -Xmx setting and where you have to change it.
You have to know…

More elaborate docs on this are found here: http://wiki.servoy.com/display/public/D … the+server

Will make sure there’s a better link between the two entries for the 6.0 docs.

Paul

Hi Paul,

I looked at that page too but it doesn’t cover Mac/Linux setups at all. Only windows.
I know Servoy 6 comes with a wrapper on Mac but I don’t believe this is the case with 5.x.
Perhaps you can add that too.

I don’t see anything in this thread that refers to running it as a service and the docs I point to discuss the memory settings both for running the server through the servoy_server.bat/.sh and through the service wrapper.

Paul

pbakker:
I don’t see anything in this thread that refers to running it as a service …

Other that it all about server and users are on it ? That usually means (or should mean) it’s not launched manually.

pbakker:
and the docs I point to discuss the memory settings both for running the server through the servoy_server.bat/.sh and through the service wrapper.

True, you do touch on it in one line. I guess I was expecting more of an example like you do with the wrappers. But that is me.

Hi Robert

What do you mean exactly by saying …Servoy 6 comes with a wrapper on Mac… What is this wrapper and what does it do?

ROCLASI:
I know Servoy 6 comes with a wrapper on Mac but I don’t believe this is the case with 5.x.

Regards, Robert

Hi Robert,

When you install Servoy 6 Server it installs a ‘service’ directory in the application_server directory, just like it always would on Windows.
In here you find the wrapper.conf and a shell script ‘ServoyServer’ (and a few other files).
The wrapper.conf will be used by Server and holds a bunch of parameters like the memory parameters.

The ServoyServer script is a nice utility to install/remove the service into Launchd and to start/stop/restart it when it’s installed as a service.
So no more tinkering with plists :)

Hi Robert

That sounds really good, nearly to good to be true ;-)

Watch out for the release notes of the next 6.0 RC, as that will contain the relevant info on this feature (up till now the feature was sort of in the installer already, but not yet finalized, hence no mentions yet in the Release Notes).

Paul