I've recently installed Alfresco 4.0d, with the 32 bit executable.

Whenever someone accesses the application, I get OutOfMemory error.

I've googled it and saw that more memory needs to be added.

So, I've tried editing the setenv.bat file in Alfresco's tomcat, like this:

```
set JAVA_HOME=D:\Alfresco\java
set JAVA_OPTS=-server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512m   

```

However, the error still occurs.

I notice in the task manager that tomcat6.exe doesn't use more than 960mb, so my options aren't applied to it?

Regards,
Nuno.