You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/05/23 09:25:47 UTC

DO NOT REPLY [Bug 35017] New: - [commons-daemon]: jsvc hangs on JRE error

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35017>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35017

           Summary: [commons-daemon]: jsvc hangs on JRE error
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Daemon
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: bht@actrix.gen.nz


Configuration:

Apache/2.0.40 (Red Hat Linux)
mod_jk 1.2.8
Tomcat 5.5.7
Red Hat Linux 9
j2sdk-1_4_2_07


Expected behavior:

jsvc should be able to exit on any JRE error and report that error.
jsvc should not make repeated attempts to start the JVM under such an error
condition
and similar error conditions.

Actual behavior:

jsvc goes into a tight loop, consuming 99% CPU most of the time and the log file
uses
up disk space quickly.


How to reproduce:

To easily simulate the error that causes this, apply the following procedure:

- In Linux, you are currently in a shell session we call "session 1" for this
purpose.
- Compile the Java file DaemonTest.java.
- Adapt the shell script to match your environment.
- Execute the shell script.
  This should run normally.
- Terminate the daemon.
- Repeat the test with the following differences:
- Make a subdirectory of your current directory.
- Change to that new subdirectory.
- Open an additional shell session (we call this "session 2".
- From "session 2", delete the current directory of "session 1".
- Now in "session 1", execute the jsvc script as before.

The error is:


23/05/2005 21:14:43 3205 jsvc.exec debug: user changed to 'root'
23/05/2005 21:14:43 3205 jsvc.exec debug: Using default JVM in
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
23/05/2005 21:14:43 3205 jsvc.exec debug: Attemtping to load library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
23/05/2005 21:14:43 3205 jsvc.exec debug: JVM library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so loaded
23/05/2005 21:14:43 3205 jsvc.exec debug: JVM library entry point found (0x40364788)
23/05/2005 21:14:43 3205 jsvc.exec debug: +-- DUMPING JAVA VM CREATION ARGUMENTS
-----------------
23/05/2005 21:14:43 3205 jsvc.exec debug: | Version:                       10004
23/05/2005 21:14:43 3205 jsvc.exec debug: | Ignore Unrecognized Arguments: False
23/05/2005 21:14:43 3205 jsvc.exec debug: | Extra options:                 2
23/05/2005 21:14:43 3205 jsvc.exec debug: |  
"-Djava.class.path=/home/globale/daemon/classes:/usr/java/j2re1.4.2/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar"
(0x00000000)
23/05/2005 21:14:43 3205 jsvc.exec debug:
+-------------------------------------------------------
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
23/05/2005 21:14:44 1442 jsvc.exec debug: Reloading service
23/05/2005 21:14:44 3211 jsvc.exec debug: user changed to 'root'
23/05/2005 21:14:44 3211 jsvc.exec debug: Using default JVM in
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
23/05/2005 21:14:44 3211 jsvc.exec debug: Attemtping to load library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
23/05/2005 21:14:44 3211 jsvc.exec debug: JVM library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so loaded
23/05/2005 21:14:44 3211 jsvc.exec debug: JVM library entry point found (0x40364788)
23/05/2005 21:14:44 3211 jsvc.exec debug: +-- DUMPING JAVA VM CREATION ARGUMENTS
-----------------
23/05/2005 21:14:44 3211 jsvc.exec debug: | Version:                       10004
23/05/2005 21:14:44 3211 jsvc.exec debug: | Ignore Unrecognized Arguments: False
23/05/2005 21:14:44 3211 jsvc.exec debug: | Extra options:                 2
23/05/2005 21:14:44 3211 jsvc.exec debug: |  
"-Djava.class.path=/home/globale/daemon/classes:/usr/java/j2re1.4.2/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar"
(0x00000000)
23/05/2005 21:14:44 3211 jsvc.exec debug:
+-------------------------------------------------------
Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
23/05/2005 21:14:45 1442 jsvc.exec debug: Reloading service

This runs indefinitely and the log file eventually runs out of space.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org