Discussion:
[basex-talk] quick and dirty guide to increasing memory capacity?
C. M. Sperberg-McQueen
2017-07-12 04:14:46 UTC
Permalink
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
***@blackmesatech.com
http://www.blackmesatech.com
********************************************
Fabrice ETANCHAUD
2017-07-12 07:06:25 UTC
Permalink
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-***@mailman.uni-konstanz.de [mailto:basex-talk-***@mailman.uni-konstanz.de] De la part de C. M. Sperberg-McQueen
Envoyé : mercredi 12 juillet 2017 06:17
À : basex-***@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
***@blackmesatech.com
http://www.blackmesatech.com
****************************************
Xavierlaurent.salvador
2017-07-12 07:49:14 UTC
Permalink
Hi,

You Can change the line in every launch script :

set VM=-Xmx512m

More at: http://docs.basex.org/wiki/Start_Scripts

BR X
Post by Fabrice ETANCHAUD
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-----
Envoyé : mercredi 12 juillet 2017 06:17
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
http://www.blackmesatech.com
********************************************
Loading...