Java Heap Space Error in tomcat -
I am using tomk 7.0.28. I've deployed a war file. There is a structure in this file of war where we can upload files.
Now that I am working on that web page, but when I try to upload large files it shows the error of Java as heap space.
How can I solve it?
You are probably trying to put the whole file in the memory Your first shot in Tomcat JVM startup options - The Xmx parameter should be changed so that it can get more memory In addition, you will have to read one part of the file at a time, and write it on the hard drive so that the memory can be freed.
Comments
Post a Comment