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.
Use -Xms and -Xmx command line options when runing java:
-Xms set initial Java heap size -Xmx set maximum Java heap size
For more help type java -X in command line.
java -X