Yes, that's what it should look like.

Starting with Java 5 (1.5), anything that has more than 2 physical processors or 2 GB of RAM is declared a server-class machine, and will use the -Server option for the JIT compiler. If this is detected it sets the min heap size to 1/64 available RAM up to 1GB and max of 1/4 available RAM up to 1GB.

Using the -client option uses a different JIT compiler resulting in a smaller memory footprint and quicker operation of some applications that don't need the advanced support of the server comiloer (i.e. at the end of the day it loads less code).





CJ Keist wrote:
Craig,
    thanks for your reply.  This is my current line:

/usr/java/bin/java -jar /root/bin/dst/kiosk.jar

So is this what it should look like?:

/usr/java/bin/java -client -Xms16m -Xmx32m -jar /root/bin/dst/kiosk.jar

I up'd the ram amount to be safe.




On 7/26/10 10:43 AM, Craig Bender wrote:
You can also control the initial heap and max heap size with the -Xms<size> and -Xmx<size> arguments

For example if you wanted to set an initial of 8MB and a Max of 16MB you'd do

java -Xms8m -Xmx16m YourJava.app










Craig Bender wrote:
Can you try adding -client argument to your java argument?



CJ Keist wrote:
Looking to see if anyone else has seen this. Running SRSS 4.2 latest patches installed on Solaris 10x86. I have a simple java gui for our kiosk sessions. See attached pic. It was developed using NetBeans 6.8. The entire Java jar file with libs is 156Kb in size. But when I looking at the kiosk sessions this little java app is chewing up 571MB of memory!

   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
  4266 engr352   571M   60M sleep   59    0   0:00:04 0.0% java/31
4264 engr352 1452K 1000K sleep 59 0 0:00:00 0.0% generic-session/1
  4232 engr352  4540K 2240K sleep   59    0   0:00:00 0.0% utaudio/5
  4260 engr352  1976K  968K sleep   59    0   0:00:00 0.0% kioskcrit/1
  4182 engr352  1664K 1168K sleep   59    0   0:00:00 0.0% Xsession/1
  3953 engr352    22M   14M sleep   59    0   0:00:00 0.0% Xnewt/1
  4237 engr352  3340K 1696K sleep   59    0   0:00:00 0.0% utslaunch/1

Is this typical of Java?


------------------------------------------------------------------------


------------------------------------------------------------------------

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to