0 Replies Latest reply: Aug 14, 2009 10:20 AM by 843804 RSS

    Improving performance for java

    843804
      I'm new to this so please bare with me ... I have 2 basic questions

      I just upgraded my server to SunOS 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Fire-V440
      I also upgraded java to java version "1.6.0_14"

      This is a 4 processor box. Top gives me:
      last pid: 26233; load averages: 2.79, 2.99, 3.12 13:23:57
      174 processes: 172 sleeping, 2 on cpu
      CPU states: 40.2% idle, 54.2% user, 5.6% kernel, 0.0% iowait, 0.0% swap
      Memory: 8192M real, 3059M free, 6156M swap in use, 4105M swap free

      PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
      17294 prodslic 270 0 0 654M 641M cpu/1 527:36 50.02% java

      *!st Question:*
      *1. Why is java using so much cpu time?*

      When I run ps -ef | grep java:
      root 15666 1 0 Aug 10 ? 4:52 /usr/java/bin/java -server -Xmx128m -XX:+UseParallelGC -XX:ParallelGCThreads=4
      prodslic 17294 1 25 18:07:14 ? 530:07 /usr/jdk/instances/jdk1.6.0/bin/java -Xmx1024m -Djava.awt.headless=true -Djava.

      *2nd Question:*
      *2. Why are there 2 java version running?*
      /usr/java/bin/java -version
      java version "1.5.0_18"
      /usr/jdk/instances/jdk1.6.0/bin/java -version
      java version "1.6.0_14"

      This is confusiing to me. I'd also like to know what the different command line options mean

      Thanks

      Edited by: BH80477 on Aug 14, 2009 8:19 AM