I don't think that low ram on a specific workstation is an issue.
If not specified otherwise (with -Xmx
setting), Java applets get 64MB
of memory at the start. The JVM reserves this amount of RAM from the system at the very beginning, so if the system has less memory available the JVM (and thus, the Applet) will not even start.
But if it starts, it's guaranteed to have all the configured memory available.
So, if your Applet still lacks memory, there are two possibilities:
- The default setting (64MB) is to low - configure your applet to get more RAM.
- You are not releasing resources properly, and leaking memory. Take look at your applet's lifecycle methods, and check if you are releasing resources like you should.
Also, you say that in the end, your applet hangs. To see what is going on, add some loging to lifecycle methods, enable Java Console, and look for exceptions.