Your VM runns out of memory, so a solution would be to increase the max
heap mem. This has nothing to do with h2 in special and nothing with how
long you use the lib.
Am 18.05.2014 06:41, schrieb Franco Gastón Pellegrini:
Hi,
I use memory databases.
If I use the command:
* runscript from
'C:\Users\Franco\Programas\DM4Mini\BaseDeDatos\BaseDeDatos.bd'
COMPRESSION zip
in the h2 program using web browser, the script load fine.
But if I use h2 as a lib in my program (with exactly the same line),
today (I'm using the lib for 2 years) I start to get this error when I
try to run execute() to that statement:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:
Java heap space
at sun.font.StandardTextSource.getChars(StandardTextSource.java:151)
at
sun.font.ExtendedTextSourceLabel.createGV(ExtendedTextSourceLabel.java:324)
at
sun.font.ExtendedTextSourceLabel.getGV(ExtendedTextSourceLabel.java:315)
at
sun.font.ExtendedTextSourceLabel.createLogicalBounds(ExtendedTextSourceLabel.java:225)
at
sun.font.ExtendedTextSourceLabel.getAdvance(ExtendedTextSourceLabel.java:134)
at java.awt.font.TextLine.init(TextLine.java:281)
at java.awt.font.TextLine.<init>(TextLine.java:129)
at java.awt.font.TextMeasurer.makeTextLineOnRange(TextMeasurer.java:484)
at java.awt.font.TextMeasurer.getLayout(TextMeasurer.java:616)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:445)
at javax.swing.text.TextLayoutStrategy.sync(TextLayoutStrategy.java:324)
at
javax.swing.text.TextLayoutStrategy.insertUpdate(TextLayoutStrategy.java:70)
at javax.swing.text.FlowView.loadChildren(FlowView.java:143)
at javax.swing.text.CompositeView.setParent(CompositeView.java:139)
at javax.swing.text.FlowView.setParent(FlowView.java:289)
at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:75)
at javax.swing.text.CompositeView.replace(CompositeView.java:217)
at javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
at javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:701)
at javax.swing.text.CompositeView.setParent(CompositeView.java:139)
at javax.swing.text.FlowView.loadChildren(FlowView.java:139)
at javax.swing.text.CompositeView.setParent(CompositeView.java:139)
at javax.swing.text.FlowView.setParent(FlowView.java:289)
at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:75)
at javax.swing.text.CompositeView.replace(CompositeView.java:217)
at javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
at javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:701)
at javax.swing.text.CompositeView.setParent(CompositeView.java:139)
at javax.swing.text.FlowView.loadChildren(FlowView.java:139)
at javax.swing.text.CompositeView.setParent(CompositeView.java:139)
at javax.swing.text.FlowView.setParent(FlowView.java:289)
at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:75)
Why?
--
You received this message because you are subscribed to the Google
Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.