Quote:
Originally Posted by
ashish.nijai
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