Adapt the memory allocation parameters in the Karaf start script at the following location:
In configuring the script variable
you can set different values depending whether your JVM is 64-bit. 64-bit-JVMs need significantly more memory.
There is known issue related 32-bit JVM on 64-bit Windows.
If you set JAVA_OPTS yourself you might get errors during initialization of VM. Because of this problem you would not be able to run tesb container or build examples. In this case, we recommend to set following values for memory parameters: JAVA_OPTS=-Xmx512m -XX:MaxPermSize=256m