You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@marmotta.apache.org by Thang Chi Duong <sv...@gmail.com> on 2013/07/26 17:35:04 UTC

Marmotta starting problem

Hello,
I'm having a problem with marmotta. After installing the standalone version
of marmotta, I tried to run it but nothing happened. There was a splashing
screen of command prompt and that's it. I also tried to run it with
administrator but it didn't work.
I have encountered the same problem with linked media framework. After
installing LMF the 1st time, I was able to start it. However, after
restarting my computer, I could not run it again.
Thang

Re: Marmotta starting problem

Posted by Sergio Fernández <wi...@apache.org>.
Hi,

On 31/07/13 03:31, Thang Chi Duong wrote:
> My marmotta version is 3.0.0. OS: Windows 7 64-bit. Java: 1.7.0_17.
>
> I was able to reproduce the error after deleting the JAVA_OPTS variable.
> When I run this command *catalina.bat run, *I receive the following error
> message:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> At that moment, the task manager showed that I had 4GB RAM available.

Does not matter how much physical memory your machine has, by default 
the JVM will allocate only 4MB for heap, I think, which wouldn't be 
enough for running Marmotta. So it's important to properly configure 
those aspects, as it's described at:

http://marmotta.incubator.apache.org/installation.html#war

You can find some more information at:

http://docs.oracle.com/cd/E15523_01/web.1111/e13814/jvm_tuning.htm

Cheers,

-- 
Sergio Fernández

Re: Marmotta starting problem

Posted by Thang Chi Duong <sv...@gmail.com>.
Hi,

My marmotta version is 3.0.0. OS: Windows 7 64-bit. Java: 1.7.0_17.

I was able to reproduce the error after deleting the JAVA_OPTS variable.
When I run this command *catalina.bat run, *I receive the following error
message:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

At that moment, the task manager showed that I had 4GB RAM available.

Best,
Thang



On Sun, Jul 28, 2013 at 5:25 PM, Sergio Fernández <wi...@apache.org> wrote:

> Hi,
>
>
> On 28/07/13 12:02, Thang Chi Duong wrote:
>
>> I was able to start marmotta after setting the JAVA_OPTS environment
>> variable. SInce I installed Marmotta using the standalone installer, I
>> thought that I didn't need to set the variable.
>>
>
> That's try: the installer should care about those details. So we might
> have an issue on setting such variables from the installer. Can you please
> provide us more details about the environment? Marmotta version, Java
> version, operative system and so on.
>
>
>  After I set the variable, I cannot reproduce the error again. Therefore, I
>> can not provide you more information. Sorry about that.
>>
>
> Well, depending how you set it, there is a way to revert it. That would
> help to know the memory setting Tomcat is getting by default from the
> installer.
>
>
>  Moreover, I found a minor bug: the context/graph can not be deleted. Is it
>> intentional ?
>>
>
> You should be able, yes. Although that could be related with MARMOTTA-253?
>
> http://issues.apache.org/jira/**browse/MARMOTTA-253<http://issues.apache.org/jira/browse/MARMOTTA-253>
>
> If not, please report the details to the issue tracker.
>
> Cheers,
>
>  On Sun, Jul 28, 2013 at 1:16 AM, Sergio Fernández <wi...@apache.org>
>> wrote:
>>
>>  Thang Chi Duong,
>>>
>>>
>>> On 27/07/13 15:04, Thang Chi Duong wrote:
>>>
>>>  I have found the cause of the problem. It seems that the catalina server
>>>> (?) does not have enough memory to run the java VM. I don't know why
>>>> this
>>>> happened since my computer has 8GB RAM and at the time I start marmotta,
>>>> my
>>>> computer still have 4GB RAM available. Maybe my OS is 64-bit while the
>>>> Tomcat server is 32-bit ?
>>>> However, if I closed all the applications that I was running, I could
>>>> start
>>>> marmotta.
>>>>
>>>>
>>> How have you installed Marmotta? From the installer or have you deployed
>>> in your current installation of Tomcat? The issue to give you a proper
>>> solution is you still did not provide more details about the problem
>>> (java.lang.OutOfMemoryError exceptions or whatever).
>>>
>>> Anyway, first you would have to check your JVM is 64bits, and then your
>>> memory settings used by Tomcat. If you followed the documentation:
>>>
>>> http://marmotta.incubator.**ap**ache.org/installation.html#****war<http://apache.org/installation.html#**war>
>>> <http://marmotta.incubator.**apache.org/installation.html#**war<http://marmotta.incubator.apache.org/installation.html#war>
>>> >
>>>
>>>
>>> You would have something like:
>>>
>>> export JAVA_OPTS="-Djava.net.****preferIPv4Stack=true -Xmx1024m
>>>
>>> -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC
>>> -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+**
>>>
>>> HeapDumpOnOutOfMemoryError"
>>>
>>> Notice 1GB is the recommend memory, although with less should run fine
>>> too.
>>>
>>> Further details at:
>>>
>>> http://wiki.apache.org/tomcat/****FAQ/Memory<http://wiki.apache.org/tomcat/**FAQ/Memory>
>>> <http://wiki.**apache.org/tomcat/FAQ/Memory<http://wiki.apache.org/tomcat/FAQ/Memory>
>>> >
>>>
>>>
>>>
>>>   I don't know if you still in charge of Linked Media Framework or not
>>> but I
>>>
>>>> also have some problem with the book demo in LMF. I have posted the
>>>> question here https://groups.google.com/****
>>>> forum/#!topic/lmf-users/--**<https://groups.google.com/**forum/#!topic/lmf-users/--**>
>>>> oV7Ta4r-o <https://groups.google.com/**forum/#!topic/lmf-users/--**
>>>> oV7Ta4r-o<https://groups.google.com/forum/#!topic/lmf-users/--oV7Ta4r-o>
>>>> >
>>>>
>>>> .
>>>> Can you help me with it ? I really want to build a semantic search using
>>>> LMF.
>>>>
>>>>
>>> I'll reply you there.
>>>
>>> Please, keep the mailing list in the replies, since these kind of
>>> questions are always good documentation for other users.
>>>
>>> Kind regards,
>>> Sergio
>>>
>>>
>>>
>>>
>>>   On Sat, Jul 27, 2013 at 4:21 PM, Sergio Fernández <
>>>
>>>> sergio.fernandez@**salzburgres**earch.at <http://salzburgresearch.at><
>>>> sergio.fernandez@**salzburgresearch.at<se...@salzburgresearch.at>
>>>> >>
>>>>
>>>> wrote:
>>>>
>>>>   Dear Thang Chi Duong,
>>>>
>>>>>
>>>>> sorry to hear that :(
>>>>>
>>>>> If you could provide us more details about the environment where you
>>>>> are
>>>>> trying to run Marmotta (java version, javaee container, etc), plus some
>>>>> information from the logs (both marmotta-main.log and catalina.out in
>>>>> case
>>>>> you are using Tomcat), we could try to find the source of the issue.
>>>>>
>>>>> Best,
>>>>> Sergio
>>>>>
>>>>>
>>>>> On 26/07/13 17:35, Thang Chi Duong wrote:
>>>>>
>>>>>   Hello,
>>>>>
>>>>>> I'm having a problem with marmotta. After installing the standalone
>>>>>> version
>>>>>> of marmotta, I tried to run it but nothing happened. There was a
>>>>>> splashing
>>>>>> screen of command prompt and that's it. I also tried to run it with
>>>>>> administrator but it didn't work.
>>>>>> I have encountered the same problem with linked media framework. After
>>>>>> installing LMF the 1st time, I was able to start it. However, after
>>>>>> restarting my computer, I could not run it again.
>>>>>> Thang
>>>>>>
>>>>>>
>>>>>>   --
>>>>>>
>>>>> Sergio Fernández
>>>>> Salzburg Research
>>>>> +43 662 2288 318
>>>>> Jakob-Haringer Strasse 5/II
>>>>> A-5020 Salzburg (Austria)
>>>>> http://www.salzburgresearch.at
>>>>>
>>>>>
>>>>>
>>>>  --
>>> Sergio Fernández
>>>
>>>
>>
> --
> Sergio Fernández
>

Re: Marmotta starting problem

Posted by Sergio Fernández <wi...@apache.org>.
Hi,

On 28/07/13 12:02, Thang Chi Duong wrote:
> I was able to start marmotta after setting the JAVA_OPTS environment
> variable. SInce I installed Marmotta using the standalone installer, I
> thought that I didn't need to set the variable.

That's try: the installer should care about those details. So we might 
have an issue on setting such variables from the installer. Can you 
please provide us more details about the environment? Marmotta version, 
Java version, operative system and so on.

> After I set the variable, I cannot reproduce the error again. Therefore, I
> can not provide you more information. Sorry about that.

Well, depending how you set it, there is a way to revert it. That would 
help to know the memory setting Tomcat is getting by default from the 
installer.

> Moreover, I found a minor bug: the context/graph can not be deleted. Is it
> intentional ?

You should be able, yes. Although that could be related with MARMOTTA-253?

http://issues.apache.org/jira/browse/MARMOTTA-253

If not, please report the details to the issue tracker.

Cheers,

> On Sun, Jul 28, 2013 at 1:16 AM, Sergio Fernández <wi...@apache.org> wrote:
>
>> Thang Chi Duong,
>>
>>
>> On 27/07/13 15:04, Thang Chi Duong wrote:
>>
>>> I have found the cause of the problem. It seems that the catalina server
>>> (?) does not have enough memory to run the java VM. I don't know why this
>>> happened since my computer has 8GB RAM and at the time I start marmotta,
>>> my
>>> computer still have 4GB RAM available. Maybe my OS is 64-bit while the
>>> Tomcat server is 32-bit ?
>>> However, if I closed all the applications that I was running, I could
>>> start
>>> marmotta.
>>>
>>
>> How have you installed Marmotta? From the installer or have you deployed
>> in your current installation of Tomcat? The issue to give you a proper
>> solution is you still did not provide more details about the problem
>> (java.lang.OutOfMemoryError exceptions or whatever).
>>
>> Anyway, first you would have to check your JVM is 64bits, and then your
>> memory settings used by Tomcat. If you followed the documentation:
>>
>> http://marmotta.incubator.**apache.org/installation.html#**war<http://marmotta.incubator.apache.org/installation.html#war>
>>
>> You would have something like:
>>
>> export JAVA_OPTS="-Djava.net.**preferIPv4Stack=true -Xmx1024m
>> -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC
>> -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+**
>> HeapDumpOnOutOfMemoryError"
>>
>> Notice 1GB is the recommend memory, although with less should run fine too.
>>
>> Further details at:
>>
>> http://wiki.apache.org/tomcat/**FAQ/Memory<http://wiki.apache.org/tomcat/FAQ/Memory>
>>
>>
>>   I don't know if you still in charge of Linked Media Framework or not but I
>>> also have some problem with the book demo in LMF. I have posted the
>>> question here https://groups.google.com/**forum/#!topic/lmf-users/--**
>>> oV7Ta4r-o <https://groups.google.com/forum/#!topic/lmf-users/--oV7Ta4r-o>
>>> .
>>> Can you help me with it ? I really want to build a semantic search using
>>> LMF.
>>>
>>
>> I'll reply you there.
>>
>> Please, keep the mailing list in the replies, since these kind of
>> questions are always good documentation for other users.
>>
>> Kind regards,
>> Sergio
>>
>>
>>
>>
>>   On Sat, Jul 27, 2013 at 4:21 PM, Sergio Fernández <
>>> sergio.fernandez@**salzburgresearch.at<se...@salzburgresearch.at>>
>>> wrote:
>>>
>>>   Dear Thang Chi Duong,
>>>>
>>>> sorry to hear that :(
>>>>
>>>> If you could provide us more details about the environment where you are
>>>> trying to run Marmotta (java version, javaee container, etc), plus some
>>>> information from the logs (both marmotta-main.log and catalina.out in
>>>> case
>>>> you are using Tomcat), we could try to find the source of the issue.
>>>>
>>>> Best,
>>>> Sergio
>>>>
>>>>
>>>> On 26/07/13 17:35, Thang Chi Duong wrote:
>>>>
>>>>   Hello,
>>>>> I'm having a problem with marmotta. After installing the standalone
>>>>> version
>>>>> of marmotta, I tried to run it but nothing happened. There was a
>>>>> splashing
>>>>> screen of command prompt and that's it. I also tried to run it with
>>>>> administrator but it didn't work.
>>>>> I have encountered the same problem with linked media framework. After
>>>>> installing LMF the 1st time, I was able to start it. However, after
>>>>> restarting my computer, I could not run it again.
>>>>> Thang
>>>>>
>>>>>
>>>>>   --
>>>> Sergio Fernández
>>>> Salzburg Research
>>>> +43 662 2288 318
>>>> Jakob-Haringer Strasse 5/II
>>>> A-5020 Salzburg (Austria)
>>>> http://www.salzburgresearch.at
>>>>
>>>>
>>>
>> --
>> Sergio Fernández
>>
>

-- 
Sergio Fernández

Re: Marmotta starting problem

Posted by Thang Chi Duong <sv...@gmail.com>.
Hi,

I was able to start marmotta after setting the JAVA_OPTS environment
variable. SInce I installed Marmotta using the standalone installer, I
thought that I didn't need to set the variable.
After I set the variable, I cannot reproduce the error again. Therefore, I
can not provide you more information. Sorry about that.

Moreover, I found a minor bug: the context/graph can not be deleted. Is it
intentional ?

Best regards,
Thang


On Sun, Jul 28, 2013 at 1:16 AM, Sergio Fernández <wi...@apache.org> wrote:

> Thang Chi Duong,
>
>
> On 27/07/13 15:04, Thang Chi Duong wrote:
>
>> I have found the cause of the problem. It seems that the catalina server
>> (?) does not have enough memory to run the java VM. I don't know why this
>> happened since my computer has 8GB RAM and at the time I start marmotta,
>> my
>> computer still have 4GB RAM available. Maybe my OS is 64-bit while the
>> Tomcat server is 32-bit ?
>> However, if I closed all the applications that I was running, I could
>> start
>> marmotta.
>>
>
> How have you installed Marmotta? From the installer or have you deployed
> in your current installation of Tomcat? The issue to give you a proper
> solution is you still did not provide more details about the problem
> (java.lang.OutOfMemoryError exceptions or whatever).
>
> Anyway, first you would have to check your JVM is 64bits, and then your
> memory settings used by Tomcat. If you followed the documentation:
>
> http://marmotta.incubator.**apache.org/installation.html#**war<http://marmotta.incubator.apache.org/installation.html#war>
>
> You would have something like:
>
> export JAVA_OPTS="-Djava.net.**preferIPv4Stack=true -Xmx1024m
> -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC
> -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+**
> HeapDumpOnOutOfMemoryError"
>
> Notice 1GB is the recommend memory, although with less should run fine too.
>
> Further details at:
>
> http://wiki.apache.org/tomcat/**FAQ/Memory<http://wiki.apache.org/tomcat/FAQ/Memory>
>
>
>  I don't know if you still in charge of Linked Media Framework or not but I
>> also have some problem with the book demo in LMF. I have posted the
>> question here https://groups.google.com/**forum/#!topic/lmf-users/--**
>> oV7Ta4r-o <https://groups.google.com/forum/#!topic/lmf-users/--oV7Ta4r-o>
>> .
>> Can you help me with it ? I really want to build a semantic search using
>> LMF.
>>
>
> I'll reply you there.
>
> Please, keep the mailing list in the replies, since these kind of
> questions are always good documentation for other users.
>
> Kind regards,
> Sergio
>
>
>
>
>  On Sat, Jul 27, 2013 at 4:21 PM, Sergio Fernández <
>> sergio.fernandez@**salzburgresearch.at<se...@salzburgresearch.at>>
>> wrote:
>>
>>  Dear Thang Chi Duong,
>>>
>>> sorry to hear that :(
>>>
>>> If you could provide us more details about the environment where you are
>>> trying to run Marmotta (java version, javaee container, etc), plus some
>>> information from the logs (both marmotta-main.log and catalina.out in
>>> case
>>> you are using Tomcat), we could try to find the source of the issue.
>>>
>>> Best,
>>> Sergio
>>>
>>>
>>> On 26/07/13 17:35, Thang Chi Duong wrote:
>>>
>>>  Hello,
>>>> I'm having a problem with marmotta. After installing the standalone
>>>> version
>>>> of marmotta, I tried to run it but nothing happened. There was a
>>>> splashing
>>>> screen of command prompt and that's it. I also tried to run it with
>>>> administrator but it didn't work.
>>>> I have encountered the same problem with linked media framework. After
>>>> installing LMF the 1st time, I was able to start it. However, after
>>>> restarting my computer, I could not run it again.
>>>> Thang
>>>>
>>>>
>>>>  --
>>> Sergio Fernández
>>> Salzburg Research
>>> +43 662 2288 318
>>> Jakob-Haringer Strasse 5/II
>>> A-5020 Salzburg (Austria)
>>> http://www.salzburgresearch.at
>>>
>>>
>>
> --
> Sergio Fernández
>

Re: Marmotta starting problem

Posted by Sergio Fernández <wi...@apache.org>.
Thang Chi Duong,

On 27/07/13 15:04, Thang Chi Duong wrote:
> I have found the cause of the problem. It seems that the catalina server
> (?) does not have enough memory to run the java VM. I don't know why this
> happened since my computer has 8GB RAM and at the time I start marmotta, my
> computer still have 4GB RAM available. Maybe my OS is 64-bit while the
> Tomcat server is 32-bit ?
> However, if I closed all the applications that I was running, I could start
> marmotta.

How have you installed Marmotta? From the installer or have you deployed 
in your current installation of Tomcat? The issue to give you a proper 
solution is you still did not provide more details about the problem 
(java.lang.OutOfMemoryError exceptions or whatever).

Anyway, first you would have to check your JVM is 64bits, and then your 
memory settings used by Tomcat. If you followed the documentation:

http://marmotta.incubator.apache.org/installation.html#war

You would have something like:

export JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Xmx1024m 
-XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC 
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC 
-XX:+HeapDumpOnOutOfMemoryError"

Notice 1GB is the recommend memory, although with less should run fine too.

Further details at:

http://wiki.apache.org/tomcat/FAQ/Memory

> I don't know if you still in charge of Linked Media Framework or not but I
> also have some problem with the book demo in LMF. I have posted the
> question here https://groups.google.com/forum/#!topic/lmf-users/--oV7Ta4r-o.
> Can you help me with it ? I really want to build a semantic search using
> LMF.

I'll reply you there.

Please, keep the mailing list in the replies, since these kind of 
questions are always good documentation for other users.

Kind regards,
Sergio



> On Sat, Jul 27, 2013 at 4:21 PM, Sergio Fernández <
> sergio.fernandez@salzburgresearch.at> wrote:
>
>> Dear Thang Chi Duong,
>>
>> sorry to hear that :(
>>
>> If you could provide us more details about the environment where you are
>> trying to run Marmotta (java version, javaee container, etc), plus some
>> information from the logs (both marmotta-main.log and catalina.out in case
>> you are using Tomcat), we could try to find the source of the issue.
>>
>> Best,
>> Sergio
>>
>>
>> On 26/07/13 17:35, Thang Chi Duong wrote:
>>
>>> Hello,
>>> I'm having a problem with marmotta. After installing the standalone
>>> version
>>> of marmotta, I tried to run it but nothing happened. There was a splashing
>>> screen of command prompt and that's it. I also tried to run it with
>>> administrator but it didn't work.
>>> I have encountered the same problem with linked media framework. After
>>> installing LMF the 1st time, I was able to start it. However, after
>>> restarting my computer, I could not run it again.
>>> Thang
>>>
>>>
>> --
>> Sergio Fernández
>> Salzburg Research
>> +43 662 2288 318
>> Jakob-Haringer Strasse 5/II
>> A-5020 Salzburg (Austria)
>> http://www.salzburgresearch.at
>>
>

-- 
Sergio Fernández

Re: Marmotta starting problem

Posted by Sergio Fernández <se...@salzburgresearch.at>.
Dear Thang Chi Duong,

sorry to hear that :(

If you could provide us more details about the environment where you are 
trying to run Marmotta (java version, javaee container, etc), plus some 
information from the logs (both marmotta-main.log and catalina.out in 
case you are using Tomcat), we could try to find the source of the issue.

Best,
Sergio

On 26/07/13 17:35, Thang Chi Duong wrote:
> Hello,
> I'm having a problem with marmotta. After installing the standalone version
> of marmotta, I tried to run it but nothing happened. There was a splashing
> screen of command prompt and that's it. I also tried to run it with
> administrator but it didn't work.
> I have encountered the same problem with linked media framework. After
> installing LMF the 1st time, I was able to start it. However, after
> restarting my computer, I could not run it again.
> Thang
>

-- 
Sergio Fernández
Salzburg Research
+43 662 2288 318
Jakob-Haringer Strasse 5/II
A-5020 Salzburg (Austria)
http://www.salzburgresearch.at