PDA

View Full Version : increase size through of heap by jsp program


santosh_tamse
02-26-2009, 03:52 PM
i m writing a program in jsp where i hav to read frm excel file.the excel file contains 20,000 records while reading through apache poi its gives out of memory error so i want it to solve this error through this program by increasing heap size of jvm
java -Xms64m -Xmx1592m

this is the code i hav written in program to increase heap size but it shows not a statement error

so please tell how can i write a code in my program to increase heap size
please giv me response as fast as possible
waiting for u r reply

shyam
02-26-2009, 06:50 PM
i m writing a program in jsp where i hav to read frm excel file.the excel file contains 20,000 records while reading through apache poi its gives out of memory error so i want it to solve this error through this program by increasing heap size of jvm
java -Xms64m -Xmx1592m

this is the code i hav written in program to increase heap size but it shows not a statement error
if you are asking for how to increase the jvm heap size from a jsp page...thats not possible. (unless you are spawning a different process)

that piece of code that u've written doesn't make any sense whatsoever coz that ain't code :O...its just the command line arguments for the jvm..how is that part of your code? anyway if you want to actually increase the jvm heap size for your jsp you should modify the heap size arguments for whatever application server you are using