달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

'Solaris'에 해당되는 글 2

  1. 2008.10.31 Performance Optimization on Solaris JVM
  2. 2007.04.16 SunOS 5.9에 64bit JDK 1.5.0.11 설치
2008. 10. 31. 10:24

Performance Optimization on Solaris JVM 그거/Java2008. 10. 31. 10:24

Introduction

This document will give you an overview between the relationship of the threading models used by the SolarisTM operating environment and the JavaTMthread model. Choices you make about Solaris threading models can have a large impact on the performance of your Java runtime enivonment on Solaris operating environment.

The Java programming language is naturally multi-threaded and because of this the underlying OS implementation can make a substantial difference in the performance of your application. Fortunately (or unfortunately), you can choose from multiple threading models and different methods of synchronization within the model, but this varies from VM to VM. Adding to the confusion, the threads library will be transitioning from Solaris 8 to 9, eliminating many of these choices.

Version 1.1 is based on green threads and won't be covered here. Green threads are simulated threads within the VM and were used prior to going to a native OS threading model in 1.2 and beyond. Green threads may have had an advantage on Linux at one point (since you don't have to spawn a process for each native thread), but VM technology has advanced significantly since version 1.1 and any benefit green threads had in the past is erased by the performance increases over the years.

>>보러가기<<

:
Posted by 뽀기
2007. 4. 16. 13:57

SunOS 5.9에 64bit JDK 1.5.0.11 설치 그거/Tech2007. 4. 16. 13:57

# 시스템 환경#
System Configuration:  Sun Microsystems  sun4u
SunOS 5.9
Generic_118558-38
sun4u sparc SUNW,
Ultra-Enterprise
E3500
2 CPU 64bit
Memory size: 4096 Megabytes

  1. http://java.sun.com/javase/downloads/index_jdk5.jsp 이 페이지에서
     JDK 5.0 Update 11 이 항목에 대해서 "Download" 페이지로 이동한다.
  (https://sdlc2b.sun.com/ECom/EComActionServlet;jsessionid=BFB2B91425F47264276E3456F4BB5B03 여기로 이동하면 된다.)

  2. 위에서 이동한 페이지에서 license 동의할 거냐고 물어보는 곳에서 "Accept"를 선택해준다.
     그러면 화면이 또 이동한다.
  (https://sdlc2b.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=BFB2B91425F47264276E3456F4BB5B03;jsessionid=BFB2B91425F47264276E3456F4BB5B03 여기로 이동)

  3. 위에서 이동한 페이지에서 세번째에 있는 "Solaris SPARC Platform - J2SE(TM) Development Kit 5.0 Update 11)" 에서
     "Solaris SPARC 32-bit self-extracting file" 이 파일과 " Solaris SPARC 64-bit self-extracting file (use 32-bit version for applet and Java Web Start support)" 이 파일을 다운로드 받는다.

  4. 위에서 다운 받은 "jdk-1_5_0_11-solaris-sparc.sh", "jdk-1_5_0_11-solaris-sparcv9.sh" 파일 중에서
     "jdk-1_5_0_11-solaris-sparc.sh" 파일을 먼저 설치하고, "jdk-1_5_0_11-solaris-sparcv9.sh" 파일을 나중에 설치해준다.
  (다운받는 페이지에서 나왔듯이 self-extracting 파일이므로 아래와 같이 실행하면 알아서 설치해준다.)
  $ sh jdk-1_5_0_11-solaris-sparc.sh
  $ sh jdk-1_5_0_11-solaris-sparcv9.sh

  5. 위 두 파일을 설치하고 나면 64bit 용 jdk 1.5가 설치완료된다.

  6. 설치가 끝났으면 PATH에 위에서 설치한 JDK 1.5의 실행파일이 있는 bin 디렉토리를 추가해준다.
     $ vi ~/.profile
      export JAVA_HOME=/usr/jdk1.5.0_11
      export PATH=$JAVA_HOME/bin:$PATH

  7. .profile 파일을 저장하고 환경을 reload 해준다.
     $ . .profile

  8. 위에서 $JAVA_HOME/bin 을 해준 후에 설치된 jdk 의 버전을 확인한다.
     $ java -version
     java version "1.5.0_11"
     Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
     Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)
     HIT-TEST@root[/usr/jdk1.5.0_11/bin]# echo $PATH

  9. 64bit용 JDK를 사용하고 싶다면 PATH에 아래와 같이 추가해주면 된다.
     $ vi ~/.profile
     export JAVA_HOME=/usr/jdk1.5.0_11
     export PATH=$JAVA_HOME/bin/sparcv9:$PATH

  10. 위와 같이 추가한 후에 JDK의 버전을 확인해본다.
     $ java -version
     java version "1.5.0_11"
     Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
     Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)

:
Posted by 뽀기