We are facing a strange problem in uploading file of less than 1 Mega byte. The web service client we have created simply hangs with a message: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
We have read about some problems in uploading huge file (100Mb), but this error seems to be really a bug… Alfresco cleint web service works only (for us) with small files under 100 kb. Can someone of the alfresco team please tell us what's going wrong. We are using the 1.4 version (1.3 has the same problem), with jdk 1.5.
I am not part of the Alfresco team, but I can help… Perhaps the JVM lacks of memory : By default, the JVM has 64Mo of memory, you can improve that by setting the following arguments (for 512Mo max of memory) : -Xms128m -Xmx512m -Xss64k