RE: NT Service terminates
Thanks for that advice - I'll try the upgrade soon as I get a moment Cheers Tariq Cox, Charlie [EMAIL PROTECTED] wrote: I had found the JVM version 1.4.0_02 (as a service) to provide random crashes, not particularly caused by load, that went away when changing to 1.4.0_04. This was with tomcat 4.1.24. I am now using 4.1.29/JDK 1.4.2_02 without a problem. Do you have any native libraries(db?) that may be the cause of the crash? Look for an hs_err*.log file. This file should be in \%SYSTEMROOT%\system32. If the user does not have write permission to there, then it will go to the user's TEMP directory. I'm not sure about win2k, but when using Win2003 explorer's 'search' feature will not search the 'Documents and Settings' folder. This is where the user's TEMP folder is by default. I wasted waaay too much time learning this the hard way. You can use a command prompt to search the drive. Charlie -Original Message- From: Adrian Kristiawan [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 7:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: NT Service terminates Importance: High I have a similiar problem with you, I am using Tomcat 4.1.18, but currently I'm not running it as a Windows Service on Windows 2000 Server, instead I start the Tomcat service by clicking the Start Tomcat shortcut in the windows desktop. Whenever there is a communication link error or the communication is down between the client and the server where Tomcat resides, the Tomcat service just stops by itself. I thought the solution to my problem was to start the Tomcat as a windows service,but you stated otherwise, now I'm confused on how to fix my problem. Is it also true that if the load is too big, the Tomcat service will automatically stop by itself? Can anyone help us on this matter? Thanks. ---Original Message--- From: Tomcat Users List Date: 03/08/04 17:31:40 To: Tomcat Subject: NT Service terminates I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server - hosting a number of applications. I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate. I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine. No problems. So what is it about running Tomcat as a service that makes it so easy to bring down? I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application. Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now IncrediMail - Email has finally evolved - Click Here - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
NT Service terminates
I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server - hosting a number of applications. I currently have it running When I run a simple load test using Microsoft Stress Tester - as I increase the load I can repeatedly force the Window Service to terminate. I'm only running with a load of 100 users. When I run Tomcat from the command-line as an application and I repeat the test - Tomcat runs fine - performance is fine. No problems. So what is it about running Tomcat as a service that makes it so easy to bring down? I'm tempted to blame the OS - but that doesn't really solve the problem - or explain what the difference is. Has anyone else observed this? Is it possible to get Tomcat to start as an application - on start-up i.e. as if it were a service - but running as an application. Sorry if that's a meaningless question. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: jk2 jni connector with iis - has anyone got this working?
Thanks for the advice. I've tried the installer and it works fine for jk and the standard ajp13 connector. I've got both jk and jk2 working with this already But what I'm really after is getting tomcat to run in-process with IIS. George Hester [EMAIL PROTECTED] wrote: http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm Use his iis_redirector.dll -- George Hester __ Tariq Chalabi wrote in message news:[EMAIL PROTECTED] Hi, I've been banging my head against a wall trying to get tomcat to run in process in IIS 5 on w2k I'm on the point of giving up on it - but if anyone out there has got it working I'd love to see your config files. My workers2.properties is as follows... serverRoot=C:\java\Apache Group\Tomcat 4.1 TOMCAT_HOME=C:\java\Apache Group\Tomcat 4.1 [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start # For Tomcat 5 use the 'stard' for startup argument # ARG=stard disabled=0 stdout=${serverRoot}/logs/stdout.log stderr=${serverRoot}/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/examples] info=Example webapp in the default context. context=/examples debug=10 [uri:/examples/servlet/*] info=Prefix mapping [uri:/examples/*.jsp] info=Extension mapping [uri:/examples/*] info=Map the whole webapp [uri:/examples/servlet/HelloW] info=Example with debug enabled. debug=10 My jk2.properties looks like.. ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess Basically these files are those in the conf directory of the source download for jk2 connector Anyhow - it doesn't work - and there isn't any useful logging to show why it doesn't work. All help very much appreciated ;-) - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - How much mail storage do you get for free? Yahoo! Mail gives you 6MB! Get Yahoo! Mail
jk2 jni connector with iis - has anyone got this working?
Hi, I've been banging my head against a wall trying to get tomcat to run in process in IIS 5 on w2k I'm on the point of giving up on it - but if anyone out there has got it working I'd love to see your config files. My workers2.properties is as follows... serverRoot=C:\java\Apache Group\Tomcat 4.1 TOMCAT_HOME=C:\java\Apache Group\Tomcat 4.1 [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger [logger.file:0] level=DEBUG file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start # For Tomcat 5 use the 'stard' for startup argument # ARG=stard disabled=0 stdout=${serverRoot}/logs/stdout.log stderr=${serverRoot}/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/examples] info=Example webapp in the default context. context=/examples debug=10 [uri:/examples/servlet/*] info=Prefix mapping [uri:/examples/*.jsp] info=Extension mapping [uri:/examples/*] info=Map the whole webapp [uri:/examples/servlet/HelloW] info=Example with debug enabled. debug=10 My jk2.properties looks like.. ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list handler.list=apr,request,channelJni # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess Basically these files are those in the conf directory of the source download for jk2 connector Anyhow - it doesn't work - and there isn't any useful logging to show why it doesn't work. All help very much appreciated ;-) - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
jk jni isapi connector problems
Hi all, I had a problem with iis shutting down tomcat nt service whenever there was a high load. As a cure for this - and maybe also to improve performance - I'm trying to get the in-process isapi filter working. I'm using jk connector with tomcat 4.1 on iis 5. ( The jk connector seems better documented than the jk2). My workers.properties looks like: workers.apache_log=D:\Program Files\Apache Group\Tomcat 4.1\logs\isapi.log workers.tomcat_home=D:\Program Files\Apache Group\Tomcat 4.1 workers.java_home=C:\j2sdk1.4.1_02 worker.list=defWorker worker.defWorker.type=jni # Set defWorker bridge type, here Tomcat 3.3 worker.defWorker.bridge=tomcat41 # Set defWorker classpath worker.defWorker.class_path=$(workers.tomcat_home)\server\lib\catalina.jar worker.defWorker.class_path=$(workers.java_home)\lib\tools.jar # Set defWorker tomcat command line worker.defWorker.cmd_line=-home worker.defWorker.cmd_line=$(workers.tomcat_home) # Set defWorker Tomcat/JVM settings worker.defWorker.jvm_lib=$(workers.java_home)\jre\bin\client worker.defWorker.stdout=$(workers.apache_log)\jk_stdout.log worker.defWorker.stderr=$(workers.apache_log)\jk_stderr.log worker.defWorker.sysprops=tomcat.home=$(workers.tomcat_home) The error message I'm getting in the isapi log file is : [Fri Feb 20 14:22:31 2004] [jk_jni_worker.c (401)]: Into validate [Fri Feb 20 14:22:31 2004] [jk_jni_worker.c (441)]: Fail- no jvm_dll_path [Fri Feb 20 14:22:31 2004] [jk_jni_worker.c (628)]: Into destroy [Fri Feb 20 14:22:31 2004] [jk_jni_worker.c (639)]: In destroy, JVM not intantiated [ What have I missed? Thanks very much Tariq - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
NT Service shutsdown unexpectedly
My setup is Win2k server, Tomcat 4.1.24 installed as a Windows Service, IIS 5, JSDK 1.4.1_02. I'm using the JK2 connector and here's the copy of my workers2.properties. # change this to your own location [shm] file=D:/Program Files/Apache Group/Tomcat 4.1/temp/shm.txt size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 [logger.file:0] level=INFO file=D:/Program Files/Apache Group/Tomcat 4.1/logs/iis_jk2.log # uses the newly created File logger as the default one.. [workerEnv:] logger=logger.file:0 # Map the Tomcat examples webapp to the Web server uri space [uri:/axis/services/AuthService*] [uri:/policeAdmin/*] [uri:/ccWeb/*] [uri:/manager/*] I've developed a Struts based app that uses the Commons Connection Pool to read/ write data from an Oracle database. Everything works fine when I'm testing the app by myself. The only slightly puzzling thing is that I get a stream of errors logged from the ISAPI filter - typical messages are: Thu Feb 12 09:51:24 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 12 [Thu Feb 12 09:51:24 2004] (error ) [jk_channel_socket.c (557)] channelSocket.receive(): Error receiving message body -1 0 [Thu Feb 12 09:51:24 2004] (error ) [jk_workerEnv.c (482)] workerEnv.processCallbacks() Error reading reply So far I've ignored these - because everything seems to work. Can anyone tell me how to stop these messages? However - when I increase the load on the site in stress testing - the Tomcat service unexpectedly shutsdown. This is repeatable. I get a Dr Watson in the event viewer log - but no indications of any other error in the Tomcat logs But if I run Tomcat from the command line there is no problem - the site copes well with the extra load. I've noticed that have been other posts describing similar behaviour. Is this a reported bug? Is there a cure? Thanks in advance Tariq - BT Yahoo! Broadband - Free modem offer, sign up online today and save £80
Switching off logging
I'm using log4j in my web app - and that's all working fine - but strangely I'm also getting some log messages in stdout. Do I need to set the level for the root logger? If so - could someone show me how. On a related issue - if I'm running Tomcat (on Windows) from the command line - is there a way to specify where I want stdout and stderr to go? Thanks - BT Yahoo! Broadband - Free modem offer, sign up online today and save £80