3 Replies Latest reply on Dec 14, 2003 6:58 PM by craigday

    JBoss + JRockit + Win2000

    marvil

      Does anyone run JBoss with JRockit? We could need some help here... :-)

      We have a site which runs JBoss and had some performance problems. We tried using JRockit instead of Sun's VM, and it gave much better performance (20-30% CPU utilization with 150 users, compared to 60-80% using Sun).

      The problem is that we have not been able to successfully install JBoss as a Win2000 service.

      We used JavaService (http://www.alexandriasc.com/software/JavaService/) before, but it doesn't seem to be compatible with JRockit (the service crashes or just stops at once).

      We also tried the Java Service Wrapper (http://wrapper.sf.net), which is more attractive anyway, but it doesn't work either. It could be that the Wrapper thinks the application ends when the first thread ends.

      Here's the Wrapper log with debug enabled:

      wrapper | --> Wrapper Started as Console
      wrapperp | server listening on port 1777.
      wrapper | Launching a JVM...
      wrapper | command: "C:\JRockit\7.0\1.4.0\bin\java.exe" -Xms64m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;c:/jboss-3.0.1\bin\run.jar;c:/jboss-3.0.1\bin\shutdown.jar;c:\JRockit\7.0\1.4.0\lib\tools.jar" -Dwrapper.key="uat4qvLeecpM9I_z" -Dwrapper.port=1777 -Dwrapper.debug="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 com.silveregg.wrapper.WrapperStartStopApp org.jboss.Main 1 -ctm org.jboss.Shutdown true 0
      wrapper | Java Virtual Machine started (PID=272)
      jvm 1 | Wrapper Manager: JVM #1
      jvm 1 | Wrapper Manager: Registering shutdown hook
      jvm 1 | Wrapper Manager: Using wrapper
      jvm 1 | Calling native initialization method.
      jvm 1 | Initializing WrapperManager native library.
      jvm 1 | Java Executable: C:\JRockit\7.0\1.4.0\bin\java.exe
      jvm 1 | Java Version : 1.4.0 BEA Weblogic JRockit(R) Virtual Machine
      jvm 1 | Java VM Vendor : BEA Systems, Inc.
      jvm 1 |
      jvm 1 | Wrapper (Version 2.2.9)
      jvm 1 |
      jvm 1 | Open socket to wrapper...
      jvm 1 | Opened Socket
      jvm 1 | Send a packet 110 : uat4qvLeecpM9I_z
      wrapperp | accepted a socket from 127.0.0.1 on port 1634
      jvm 1 | handleSocket(Socket[addr=/127.0.0.1,port=1777,localport=1634])
      wrapperp | read a packet 110 : uat4qvLeecpM9I_z
      wrapper | Got key from JVM: uat4qvLeecpM9I_z
      wrapperp | sent 3 bytes
      wrapper | Start Application.
      wrapperp | sent 7 bytes
      jvm 1 | Received a packet 112 : 1
      jvm 1 | Wrapper Manager: LowLogLevel from Wrapper is 1
      jvm 1 | Received a packet 100 : start
      jvm 1 | calling listener.start()
      jvm 1 | WrapperStartStopApp: start(args)
      jvm 1 | WrapperStartStopApp: invoking start main method
      jvm 1 | WrapperStartStopApp: start main method completed
      jvm 1 | WrapperStartStopApp: start(args) end. Main Completed=true, exitCode=null
      jvm 1 | returned from listener.start()
      jvm 1 | Send a packet 106 :
      wrapperp | read a packet 106 :
      wrapper | JVM signalled that it was started.
      wrapperp | sent 6 bytes
      jvm 1 | Received a packet 103 : ping
      jvm 1 | Send a packet 103 : ok
      jvm 1 | All non-daemon threads have stopped. Exiting.
      jvm 1 | Send a packet 101 : 0
      wrapperp | read a packet 103 : ok
      wrapper | Got ping response from JVM
      wrapperp | read a packet 101 : 0
      wrapper | JVM requested a shutdown. (0)
      wrapper | wrapperStopProcess(0) called.
      wrapper | Sending stop signal to JVM
      wrapperp | sent 2 bytes
      jvm 1 | Thread, Wrapper-Connection, handling the shutdown process.
      jvm 1 | calling listener.stop()
      jvm 1 | WrapperStartStopApp: stop(0)
      jvm 1 | WrapperStartStopApp: invoking stop main method
      jvm 1 | Shutting down server localhost:8080
      jvm 1 | 15:03:53,328 INFO [Server] JBoss Release: JBoss-3.0.1 CVSTag=JBoss_3_0_1
      jvm 1 | 15:03:53,413 INFO [Server] Home Dir: C:\jboss-3.0.1
      jvm 1 | 15:03:53,413 INFO [Server] Home URL: file:/C:/jboss-3.0.1/
      jvm 1 | 15:03:53,457 INFO [Server] Library URL: file:/C:/jboss-3.0.1/lib/
      jvm 1 | 15:03:53,484 INFO [Server] Patch URL: null
      jvm 1 | 15:03:53,484 INFO [Server] Server Name: tm
      jvm 1 | 15:03:53,484 INFO [Server] Server Home Dir: C:\jboss-3.0.1\server\tm
      jvm 1 | 15:03:53,488 INFO [Server] Server Home URL: file:/C:/jboss-3.0.1/server/tm/
      jvm 1 | 15:03:53,489 INFO [Server] Server Data Dir: C:\jboss-3.0.1\server\tm\db
      jvm 1 | 15:03:53,490 INFO [Server] Server Temp Dir: C:\jboss-3.0.1\server\tm\tmp
      jvm 1 | 15:03:53,491 INFO [Server] Server Config URL: file:/C:/jboss-3.0.1/server/tm/conf/
      jvm 1 | 15:03:53,493 INFO [Server] Server Library URL: file:/C:/jboss-3.0.1/server/tm/lib/
      jvm 1 | 15:03:53,494 INFO [Server] Root Deployemnt Filename: jboss-service.xml
      jvm 1 | 15:03:53,812 INFO [Server] Starting General Purpose Architecture (GPA)...
      jvm 1 | 15:03:55,297 INFO [ServerInfo] Java version: 1.4.0,BEA Systems, Inc.
      jvm 1 | 15:03:55,297 INFO [ServerInfo] Java VM: BEA Weblogic JRockit(R) Virtual Machine 7.0-1.4.0-win32-GARAK-20020830-1714,BEA Systems, Inc.
      jvm 1 | 15:03:55,298 INFO [ServerInfo] OS-System: Windows NT 5.0,x86
      jvm 1 | 15:03:55,455 INFO [ServiceController] Controller MBean online
      jvm 1 | Shutdown complete
      jvm 1 | WrapperStartStopApp: stop main method completed
      jvm 1 | returned from listener.stop()
      jvm 1 | Send a packet 107 : 0
      jvm 1 | Closing socket.
      wrapperp | read a packet 107 : 0
      wrapper | JVM signalled that it was stopped.
      wrapperp | socket read no code (closed?).
      jvm 1 | calling System.exit(0)
      wrapper | JVM exited normally.
      wrapper | <-- Wrapper Stopped

      To install any program as a service there's FireDaemon (http://www.firedaemon.com/), but I haven't tried it and Wrapper is made for Java and free.

      Any ideas? Does anyone have clues to how to install JBoss as a service under Win2000 using JRockit?

      We're running JBoss 3.0.1.