LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2009, 10:47 AM   #1
alee
LQ Newbie
 
Registered: May 2008
Posts: 28

Rep: Reputation: 15
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).
 
Old 02-07-2009, 01:52 PM   #2
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
Sounds like you're out of either memory or hard disk space.
 
Old 02-09-2009, 01:29 AM   #3
alee
LQ Newbie
 
Registered: May 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by digerati1338 View Post
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A java application running at runlevel 3 MRMadhav Programming 5 04-20-2011 04:07 PM
Error running java gamor Linux - Newbie 4 06-01-2007 02:50 AM
Error: Another application is running which is accessing software information JasonP Fedora 3 04-16-2007 07:40 AM
java This.class error when running Fredstar Programming 2 02-13-2006 12:48 AM
application/x-java-vm error nevillemonteiro Linux - General 1 11-28-2005 01:57 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration