brmson / yodaqa

A Question Answering system built on top of the Apache UIMA framework.
http://ailao.eu/yodaqa
Other
619 stars 205 forks source link

./gradlew web -q Failed #66

Closed MRUBS closed 7 years ago

MRUBS commented 7 years ago

./gradlew check BUILD SUCCESSFUL but FAILED in ./gradlew web -q in my dedicated server (Ubuntu 14.04 LTS), here is the error,

root@s96461:/opt/yodaqa# ./gradlew web -q Error occurred during initialization of VM Could not reserve enough space for 3174400KB object heap FAILURE: Build failed with an exception.

pasky commented 7 years ago

Well, the error message is telling you that you don't have enough memory. Do you have enough memory?

MRUBS commented 7 years ago

yep, the the server has 16GB memory :(

pasky commented 7 years ago

Please double-check it's free. Are you using 64bit java?

MRUBS commented 7 years ago

yes, here is a memory screenshot https://drive.google.com/file/d/0B6i3iQaxn7ZbV09SM1hOVXA3MXM/view?usp=drivesdk

and java is not 64 bit, i'm installing 64bit and will try right now.

pasky commented 7 years ago

I see, then 64bit java should fix your problem since 32bit java does not have enough address space for a 4GB heap.

MRUBS commented 7 years ago

yes, it runs fine, but only for some time if i run this command, ./gradlew web -q and it appereas in the web too, but if i close cli (i'm using cygwin), the web interface is gone too. how i can make it like your's http://live.ailao.eu/ , can you explain me please.

pasky commented 7 years ago

Well, the terminal of the cli is open forever in that case...

(In fact, we use docker, with all the dockerfiles in the public github repo, right now.)

k0105 commented 7 years ago

OK, I'll be proactive and close this. It seems like Petr has comprehensively answered all questions and there were no posts for over half a year.