You are saying about increasing heap size, but if my file size'll increase to 600 MB, then the same problem'll occur.....
I want a solution which'll convert a perticular sheet to it's .xml file, modify it & again merge it to the workbook using POI.
Is it possible ???
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35220
7
posted
0
What is "the same problem"? Have you tried 2GB? Also increase PermGen.
Sidhartha Ray
Greenhorn
Joined: Jul 04, 2012
Posts: 22
posted
0
Hi Ulf Dittmer,
Is there any alternative for that, actually I can't change the environment configuration..........
My application is like this :
Some reports are coming to me by my mail everyday. I've to read them, parse them & put them in .xlsx file which lies somewhere in the server's file system.
The .xlsx file contains reporths of entire year, so the size becomes very large (say 3-5 MB).
When I'm trying to read it using POI jars :
XSSFWorkbook workbook = new XSSFWorkbook(new FileInputStream("D:\\reports.xlsx"));
I also have tried the SAX based event model provided by POI for reading the .xlsx file, it's woking fine, but I can't modify the file by using this........
Again SXSSFWorkbook another class provided for creating new large .xlsx file, but we can't modify an existing file by using this.....
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35220
7
posted
0
Is there any alternative for that, actually I can't change the environment configuration.
The first step should be for you to try whether it actually works. It it does, then getting a setting in the environment changed will be far quicker than looking for some other solution, which whoever is in charge of these decisions will appreciate. But yes, you would need to challenge whoever said so.
Sidhartha Ray
Greenhorn
Joined: Jul 04, 2012
Posts: 22
posted
0
Hi Ulf Dittmer,
It's working fine if I'm configuring the runtime as,