gbcbr
asked on
Java VM parameters on Solaris
I would like to set permanent parameters for Java VM on Solaris, so I will don't need to set them for each NetBeans project. I have also Oracle 11g installed on this server and total RAM 24GB.
Please advice:
how to distribute RAM between Java and Oracle for the best productivity and
how to set these -Xms and -Xmx parameters for Java.
Thank you
Please advice:
how to distribute RAM between Java and Oracle for the best productivity and
how to set these -Xms and -Xmx parameters for Java.
Thank you
ASKER
you copy answer from @arnold@ to my previous question by mistake?
That was my answer even though I did not ge any pionts.
ASKER
I'm very sorry, I'll give you points on this question.
But please answer on this question, not for previous.
Sorry again.
But please answer on this question, not for previous.
Sorry again.
Don't know can set RAM to Java. One way can allocate RAM to Oracle is to set them in/etc/system file as recommemded by Oracle doc.
eg.
set shmsys:shminfo_shmmax=#### ###
eg.
set shmsys:shminfo_shmmax=####
ASKER
Maybe experts for Solaris can help?
Oracle and java handle the memory on their own.
Oracle 11 just requires an amount of memory and it will manage all the others settings.
A dev database with less than 100'000 rows per table can be handled in a 2-4 GB ram
Java requires a little more tuning, depending on the application it need to manage and the version. Generally starting setting -Xmx will be enough
If you start the java app from command line just add -Xmx1g
Es. java -Xmx1g main
For application servers and other complex java app there should be a file to set the java executable parameters
To have more info answer the following questions:
Oracle 11 just requires an amount of memory and it will manage all the others settings.
A dev database with less than 100'000 rows per table can be handled in a 2-4 GB ram
Java requires a little more tuning, depending on the application it need to manage and the version. Generally starting setting -Xmx will be enough
If you start the java app from command line just add -Xmx1g
Es. java -Xmx1g main
For application servers and other complex java app there should be a file to set the java executable parameters
To have more info answer the following questions:
do you have a single oracle instance or multiple ?
what are you trying to run on java?
ASKER
I have single instance, but the question is that when I try to set -Xmx and -Xms on Solaris version of Netbeans it doesn't accept any arrangements, and I have to leave it empty.
I want to set for Java 30% - 8g, but I can't, something block this arrangement.
I want to set for Java 30% - 8g, but I can't, something block this arrangement.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you for the good link
# which java
this will show the path for current java, eg. /usr/bin/java, normally this is a symbolic link.
To cleanup old java, just remove this link.
Then, create a symbolic link to your new java command where ever is:
# ln -s {new java path} /usr/bin/java (example only, depend on "which java" command output).