[CWB] [CQPWeb] problem of memory

Hardie, Andrew a.hardie at lancaster.ac.uk
Wed Feb 8 09:52:26 CET 2012


Hi Sylvain,

This is actually a problem bubbling up from the CWB core, in fact from the low-level CL library, so not specific to CQPweb.

There are two possible causes of this error message. One is that, as it says, you have run out of memory. This is unlikely to be the case, but maybe (I'm speculating here) if your webserver runs under a username with restrictions on how much RAM to can use at once, you might get this - I assume a file called le_monde/word.corpus.rev is going to be rather big!

One way to see if this is the issue would be to see if you get the same error if you try searching this corpus in command-line CQP.

The other possible cause is that the file exists, but is empty (or, perhaps, is not readable by the webserver's username??). So you should check that out as well.

Let me know if any of that clarifies the problem!

best

Andrew.

(NB to self (and Stefan), this is in cl/storage.c, see line 316 & 350 to 354 - and I am not sure why the __svr4__ macro is used at the latter point, posix-compliant systems should have MAP_FAILED defined and therefore the presence of the #ifdef seems pointless.)

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Sylvain Loiseau
Sent: 06 February 2012 09:20
To: Open source development of the Corpus WorkBench
Subject: [CWB] [CQPWeb] problem of memory

Dear all,

I have the following error message after installing CQPWeb on a new server:

----------------------------------------
Error message

**** CQP ERROR ****
mmapfile(): Can't mmap() file /home/sloiseau/corpus/CWB/data/le_monde/word.corpus.rev ...
You have probably run out of memory / address space!
Error Message: Cannot allocate memory
attributes:load_component(): Warning:
Data of REVCORP component of attribute word can't be loaded
----------------------------------------

Any ideas what it could be?
Best,
Sylvain

-----
Sylvain Loiseau
sylvain.loiseau at univ-paris13.fr

Université Paris 13-Nord
Laboratoire Lexiques, Dictionnaires, Informatique (UMR 7187 CNRS/Université Paris 13-Nord)
99 avenue Jean-Baptiste Clément
F-93410 Villetaneuse

_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list