I have an upload files scenario in my project. When I'm trying to upload the large files it's giving me an OutOfMemory error. That error is related to Java heap size. How can you increase the heap size in Java and which file do I need to alter for this? I'm using jboss 5.1 server for running my application. Continue reading...