使用者工具

網站工具


tech:glassfish

Glassfish AP Server 整理

- CentOS 5 安裝 GlassFish v3

- Glassfish 時區

  • 發現程式寫入產生的時間有時差, 可以透過以下方式確認 Glassfish 的時間設定
    [email protected]:/opt/glassfishv3/glassfish/bin$ ./asadmin generate-jvm-report | grep time
    General Java Runtime Environment Information for the VM: [email protected]
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.7.0_01-b08
    org.glassfish.additionalOSGiBundlesToStart = org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall
    user.timezone = US/Central
  • 正常的狀況只要 OS 的時區設定正確 Glassfish 啟動就會正確<codeh sh>

[email protected]:/opt/glassfishv3/glassfish/bin$ cat /etc/timezone Asia/Taipei [email protected]:/opt/glassfishv3/glassfish/bin$ sudo service glassfish restart [email protected]:/opt/glassfishv3/glassfish/bin$ ./asadmin generate-jvm-report | grep time General Java Runtime Environment Information for the VM: [email protected] java.runtime.name = Java(TM) SE Runtime Environment java.runtime.version = 1.7.0_01-b08 org.glassfish.additionalOSGiBundlesToStart = org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall user.timezone = Asia/Taipei </code>

tech/glassfish.txt · 上一次變更: 2012/08/23 18:12 由 jonathan