LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error running java application (https://www.linuxquestions.org/questions/linux-newbie-8/error-running-java-application-702946/)

alee 02-07-2009 09:47 AM

error running java application
 
I am trying to run a java application with the following script but i am having error.

script
Code:

#!/bin/sh
nohup java -jar "node-alerter.jar" & > node-log.log
pid=$!
echo ${pid} > mydaemon.pid

and the error i am getting is
Code:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

This error raises even if i run any java application directly. What to do?

The server is already installed with java the command

Code:

which java
returns the follwing result

Code:

/usr/java/jdk1.5.0_12/bin/java
and there is already tomcat server running there (which is acting as primary server for this machine).

digerati1338 02-07-2009 12:52 PM

Sounds like you're out of either memory or hard disk space.

alee 02-09-2009 12:29 AM

Quote:

Originally Posted by digerati1338 (Post 3435393)
Sounds like you're out of either memory or hard disk space.

there is 7 GB of disk space available - i am not able to run java there :(.


All times are GMT -5. The time now is 12:09 AM.