The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Useful Java Application Components 1.0.0-rc1 (Default branch) iBot Software Releases - RSS News 0 04-22-2008 03:30 AM
Useful Java Application Components 1.0.0-b3 (Default branch) iBot Software Releases - RSS News 0 03-15-2008 07:30 PM
Database can't start automatically on solaris Sachin Vaidya SUN Solaris 2 02-27-2008 11:12 PM
java application holds lot of disk space balajilinks Filesystems, Disks and Memory 0 07-02-2007 12:30 PM
Application getting killed after one day ??? Help !!!! ajphaj UNIX for Dummies Questions & Answers 6 02-25-2005 12:16 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-29-2008
ashish.nijai ashish.nijai is offline
Registered User
  
 

Join Date: May 2008
Posts: 2
Java application getting killed automatically in Solaris

Hi to all,


I have developed a Java application for Solaris 10.

I am uing JDK 5.
But it is getting killed after some time.


And at the terminal, I got message as Killed.

I am new to Solaris.

Can anybody help me?
  #2 (permalink)  
Old 05-29-2008
mhm4 mhm4 is offline
Registered User
  
 

Join Date: Jul 2005
Location: Chicago, IL
Posts: 86
Quote:
Originally Posted by ashish.nijai View Post
Hi to all,


I have developed a Java application for Solaris 10.

I am uing JDK 5.
But it is getting killed after some time.


And at the terminal, I got message as Killed.

I am new to Solaris.

Can anybody help me?

Depending on how many objects you are allocating, you could be blowing your heap. Memory leaks are still possible in Java. Make sure you are dereferencing your objects (setting to null) so garbage collection can reclaim them. Also make sure socket and db connections are not remaining open. It is quite possible that your application needs to have larger memory bounds.

To set larger memory bounds from between 32MB to 128MB: java -Xms32m -Xmx128m MyClassName
  #3 (permalink)  
Old 05-31-2008
ashish.nijai ashish.nijai is offline
Registered User
  
 

Join Date: May 2008
Posts: 2
I am using non root account.
Is it cause of it.

Same application is running good in windows 2003 platform having less memory.
  #4 (permalink)  
Old 06-02-2008
synchro synchro is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 10
How are you firing up the process calling it? it could be something as simple as you need to nohup the process and stick it into the background. This would prevent the process from dying when you logged out.

and no, running as a non-privileged user is a good idea. only use the root user when you have to. Depending on what your app does, you should be able to run everything as a non-privileged user at all times.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0