OutOfMemoryError: Java heap space under Win10 [duplicate]
This question already has an answer here:
How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
18 answers
java.lang.OutOfMemoryError: Java heap space while reading excel with Apache POI
6 answers
There is a desktop application that uses apache.poi to interate a 50,000 line XLSX file and following validation write it to a database for reporting purposes.
The application is finalized as all required functionality works. Developed on a box under OpenSuse 43.3, KDE, 4 x i5-2500CPUs, 16gig RAM. Packaging it out to a jar file sees it run without issue on laptop under same linux and Win 10. However, running it on the development box under Win 10 causes the following error when running the validation method on the file.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3044)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1440)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1385)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1370)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:370)
at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:164)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:226)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:218)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:443)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:408)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:300)
at com.zimpics.eds.app_wa01a.VDate.readFile(VDate.java:97)
at com.zimpics.eds.app_wa01a.VDate.validate(VDate.java:122)
at com.zimpics.eds.app_wa01a.GUI.Application.validateFile(Application.java:507)
at com.zimpics.eds.app_wa01a.GUI.Application.access$600(Application.java:43)
at com.zimpics.eds.app_wa01a.GUI.Application$5.actionPerformed(Application.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I have no idea how to address this issue. Can somebody point me in the right direction please?
java apache-poi heap
marked as duplicate by Mark Rotteveel
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 25 '18 at 9:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
show 1 more comment
This question already has an answer here:
How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
18 answers
java.lang.OutOfMemoryError: Java heap space while reading excel with Apache POI
6 answers
There is a desktop application that uses apache.poi to interate a 50,000 line XLSX file and following validation write it to a database for reporting purposes.
The application is finalized as all required functionality works. Developed on a box under OpenSuse 43.3, KDE, 4 x i5-2500CPUs, 16gig RAM. Packaging it out to a jar file sees it run without issue on laptop under same linux and Win 10. However, running it on the development box under Win 10 causes the following error when running the validation method on the file.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3044)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1440)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1385)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1370)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:370)
at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:164)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:226)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:218)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:443)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:408)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:300)
at com.zimpics.eds.app_wa01a.VDate.readFile(VDate.java:97)
at com.zimpics.eds.app_wa01a.VDate.validate(VDate.java:122)
at com.zimpics.eds.app_wa01a.GUI.Application.validateFile(Application.java:507)
at com.zimpics.eds.app_wa01a.GUI.Application.access$600(Application.java:43)
at com.zimpics.eds.app_wa01a.GUI.Application$5.actionPerformed(Application.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I have no idea how to address this issue. Can somebody point me in the right direction please?
java apache-poi heap
marked as duplicate by Mark Rotteveel
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 25 '18 at 9:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
3
Have you tried increasing the heap size with the-Xmx<size>
option?
– Henry
Nov 23 '18 at 5:40
If you have an active application you can runWMIC path win32_process get Caption,Processid,Commandline
incmd
to dump out all active processes and their program arguments. Should be able to see what theXmx
memory size is then
– flakes
Nov 23 '18 at 5:50
Are you running it with 64 bit version of Java? What isjava -version
output?
– talex
Nov 23 '18 at 5:51
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15
|
show 1 more comment
This question already has an answer here:
How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
18 answers
java.lang.OutOfMemoryError: Java heap space while reading excel with Apache POI
6 answers
There is a desktop application that uses apache.poi to interate a 50,000 line XLSX file and following validation write it to a database for reporting purposes.
The application is finalized as all required functionality works. Developed on a box under OpenSuse 43.3, KDE, 4 x i5-2500CPUs, 16gig RAM. Packaging it out to a jar file sees it run without issue on laptop under same linux and Win 10. However, running it on the development box under Win 10 causes the following error when running the validation method on the file.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3044)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1440)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1385)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1370)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:370)
at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:164)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:226)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:218)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:443)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:408)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:300)
at com.zimpics.eds.app_wa01a.VDate.readFile(VDate.java:97)
at com.zimpics.eds.app_wa01a.VDate.validate(VDate.java:122)
at com.zimpics.eds.app_wa01a.GUI.Application.validateFile(Application.java:507)
at com.zimpics.eds.app_wa01a.GUI.Application.access$600(Application.java:43)
at com.zimpics.eds.app_wa01a.GUI.Application$5.actionPerformed(Application.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I have no idea how to address this issue. Can somebody point me in the right direction please?
java apache-poi heap
This question already has an answer here:
How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
18 answers
java.lang.OutOfMemoryError: Java heap space while reading excel with Apache POI
6 answers
There is a desktop application that uses apache.poi to interate a 50,000 line XLSX file and following validation write it to a database for reporting purposes.
The application is finalized as all required functionality works. Developed on a box under OpenSuse 43.3, KDE, 4 x i5-2500CPUs, 16gig RAM. Packaging it out to a jar file sees it run without issue on laptop under same linux and Win 10. However, running it on the development box under Win 10 causes the following error when running the validation method on the file.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.attr(Cur.java:3044)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1440)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.loadNodeChildren(Locale.java:1403)
at org.apache.xmlbeans.impl.store.Locale.loadNode(Locale.java:1445)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1385)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1370)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:370)
at org.apache.poi.POIXMLTypeLoader.parse(POIXMLTypeLoader.java:164)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.WorksheetDocument$Factory.parse(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:226)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:218)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.parseSheet(XSSFWorkbook.java:443)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:408)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:169)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:300)
at com.zimpics.eds.app_wa01a.VDate.readFile(VDate.java:97)
at com.zimpics.eds.app_wa01a.VDate.validate(VDate.java:122)
at com.zimpics.eds.app_wa01a.GUI.Application.validateFile(Application.java:507)
at com.zimpics.eds.app_wa01a.GUI.Application.access$600(Application.java:43)
at com.zimpics.eds.app_wa01a.GUI.Application$5.actionPerformed(Application.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
I have no idea how to address this issue. Can somebody point me in the right direction please?
This question already has an answer here:
How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
18 answers
java.lang.OutOfMemoryError: Java heap space while reading excel with Apache POI
6 answers
java apache-poi heap
java apache-poi heap
edited Nov 25 '18 at 9:08
Mark Rotteveel
61.4k1478121
61.4k1478121
asked Nov 23 '18 at 5:27
Geoff Geoff
376
376
marked as duplicate by Mark Rotteveel
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 25 '18 at 9:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Mark Rotteveel
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 25 '18 at 9:09
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
3
Have you tried increasing the heap size with the-Xmx<size>
option?
– Henry
Nov 23 '18 at 5:40
If you have an active application you can runWMIC path win32_process get Caption,Processid,Commandline
incmd
to dump out all active processes and their program arguments. Should be able to see what theXmx
memory size is then
– flakes
Nov 23 '18 at 5:50
Are you running it with 64 bit version of Java? What isjava -version
output?
– talex
Nov 23 '18 at 5:51
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15
|
show 1 more comment
3
Have you tried increasing the heap size with the-Xmx<size>
option?
– Henry
Nov 23 '18 at 5:40
If you have an active application you can runWMIC path win32_process get Caption,Processid,Commandline
incmd
to dump out all active processes and their program arguments. Should be able to see what theXmx
memory size is then
– flakes
Nov 23 '18 at 5:50
Are you running it with 64 bit version of Java? What isjava -version
output?
– talex
Nov 23 '18 at 5:51
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15
3
3
Have you tried increasing the heap size with the
-Xmx<size>
option?– Henry
Nov 23 '18 at 5:40
Have you tried increasing the heap size with the
-Xmx<size>
option?– Henry
Nov 23 '18 at 5:40
If you have an active application you can run
WMIC path win32_process get Caption,Processid,Commandline
in cmd
to dump out all active processes and their program arguments. Should be able to see what the Xmx
memory size is then– flakes
Nov 23 '18 at 5:50
If you have an active application you can run
WMIC path win32_process get Caption,Processid,Commandline
in cmd
to dump out all active processes and their program arguments. Should be able to see what the Xmx
memory size is then– flakes
Nov 23 '18 at 5:50
Are you running it with 64 bit version of Java? What is
java -version
output?– talex
Nov 23 '18 at 5:51
Are you running it with 64 bit version of Java? What is
java -version
output?– talex
Nov 23 '18 at 5:51
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15
|
show 1 more comment
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
3
Have you tried increasing the heap size with the
-Xmx<size>
option?– Henry
Nov 23 '18 at 5:40
If you have an active application you can run
WMIC path win32_process get Caption,Processid,Commandline
incmd
to dump out all active processes and their program arguments. Should be able to see what theXmx
memory size is then– flakes
Nov 23 '18 at 5:50
Are you running it with 64 bit version of Java? What is
java -version
output?– talex
Nov 23 '18 at 5:51
@talex .. indeed! The Win10 box in question has 32bit Java installed.
– Geoff
Nov 24 '18 at 22:15
and @Henry, increasing the size of the heap does not solve the issue .. had to install 64bit Java. ...
– Geoff
Nov 24 '18 at 22:15