quick and dirty guide to increasing memory capacity?
Wednesday, 12 July 2017 · 3 messages
CS
C. M. Sperberg-McQueen12 Jul 2017 08:14 #
I’m working on some XQuery code for language corpora and testing a function that reads a corpus and gathers information about its contents. The function works fine on the one-million word Brown Corpus, but it’s failing with an out-of-memory error on the five-million-word Hamburg Dependency Treebank (the XML for which is somewhat
more verbose than Brown’s).
Before I spend a lot of time trying to rewrite the code to reduce memory usage: Is there a quick way to give the BaseX GUI
interface more memory?
Once the code is more complete, it will make sense to try to improve its speed and lower its resource consumption (and at that point I’ll surely have lots of questions for the list), but for the moment I would prefer to postpone such considerations, and focus on writing code I understand.
Thanks!
********************************************
C. M. Sperberg-McQueen
Black Mesa Technologies LLC
cmsmcq at blackmesatech.com
http://www.blackmesatech.com
********************************************
FE
Fabrice ETANCHAUD12 Jul 2017 09:06 #
Hello,
In the BaseXGUI.(sh|bat),
You shall change the java -Xmx parameter value
https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html
Best regards,
Fabrice Etanchaud
-----Message d'origine-----
Quoted text · C. M. Sperberg-McQueen · 15 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de C. M. Sperberg-McQueen Envoyé : mercredi 12 juillet 2017 06:17 À : basex-talk at mailman.uni-konstanz.de Cc : C. M. Sperberg-McQueen Objet : [basex-talk] quick and dirty guide to increasing memory capacity? I’m working on some XQuery code for language corpora and testing a function that reads a corpus and gathers information about its contents. The function works fine on the one-million word Brown Corpus, but it’s failing with an out-of-memory error on the five-million-word Hamburg Dependency Treebank (the XML for which is somewhat more verbose than Brown’s). Before I spend a lot of time trying to rewrite the code to reduce memory usage: Is there a quick way to give the BaseX GUI interface more memory? Once the code is more complete, it will make sense to try to improve its speed and lower its resource consumption (and at that point I’ll surely have lots of questions for the list), but for the moment I would prefer to postpone such considerations, and focus on writing code I understand. Thanks! ******************************************** C. M. Sperberg-McQueen Black Mesa Technologies LLC cmsmcq at blackmesatech.com http://www.blackmesatech.com ********************************************
X
Xavierlaurent.salvador12 Jul 2017 09:49 #
Hi,
You Can change the line in every launch script :
set VM=-Xmx512m
More at: http://docs.basex.org/wiki/Start_Scripts
BR X
Quoted text · Fabrice ETANCHAUD · 36 lines
> Le 12 juil. 2017 à 09:06, Fabrice ETANCHAUD <fetanchaud at pch.cerfrance.fr> a écrit : > > Hello, > > In the BaseXGUI.(sh|bat), > > You shall change the java -Xmx parameter value > > https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionX.html > > Best regards, > Fabrice Etanchaud > > > -----Message d'origine----- > De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de C. M. Sperberg-McQueen > Envoyé : mercredi 12 juillet 2017 06:17 > À : basex-talk at mailman.uni-konstanz.de > Cc : C. M. Sperberg-McQueen > Objet : [basex-talk] quick and dirty guide to increasing memory capacity? > > I’m working on some XQuery code for language corpora and testing a function that reads a corpus and gathers information about its contents. The function works fine on the one-million word Brown Corpus, but it’s failing with an out-of-memory error on the five-million-word Hamburg Dependency Treebank (the XML for which is somewhat more verbose than Brown’s). > > Before I spend a lot of time trying to rewrite the code to reduce memory usage: Is there a quick way to give the BaseX GUI interface more memory? > > Once the code is more complete, it will make sense to try to improve its speed and lower its resource consumption (and at that point I’ll surely have lots of questions for the list), but for the moment I would prefer to postpone such considerations, and focus on writing code I understand. > > Thanks! > > ******************************************** > C. M. Sperberg-McQueen > Black Mesa Technologies LLC > cmsmcq at blackmesatech.com > http://www.blackmesatech.com > ******************************************** >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery