Hello PID, On Ven, 27 Novembre 2009 16:50, Pid wrote: > On 27/11/2009 15:41, Rocco Scappatura wrote: >> Peter, >> >>> -----Original Message----- >>> From: Pid [mailto:p...@pidster.com] >>> Sent: Friday, November 27, 2009 4:17 PM >>> To: Rocco Scappatura >>> Subject: Re: Tomcat 5.17 crashes too often >>> >>> On 27/11/2009 15:00, Rocco Scappatura wrote: >>>> >>>>> On 27/11/2009 14:00, Rocco Scappatura wrote: >>>>>> Thanks Peter, >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: peter.crowth...@googlemail.com >>>>>>> [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter >>> Crowther >>>>>>> Sent: Friday, November 27, 2009 2:29 PM >>>>>>> To: Tomcat Users List >>>>>>> Subject: Re: Tomcat 5.17 crashes too often >>>>>>> >>>>>>> 2009/11/27 Rocco Scappatura<rocco.scappat...@infracom.it>: >>>>>>>> I think that I have forgotten to attach the core file above >>>>>>> mentioned.. >>>>>>>> :-( >>>>>>> >>>>>>> This mailing list removes attachments. Core files are often very >>>>>>> large, and they also don't provide very much information to >> anyone >>>>> on >>>>>>> the list as we'd have to be able to reproduce your exact >> computer, >>>>>>> kernel, Java virtual machine and Tomcat environment - helpfully, >>>> you >>>>>>> haven't told us any of these, but even if you did probably nobody >>>>>>> would have an environment that matched yours. >>>>>>> >>>>>>> So, given that we can't use the core file, what *can* we use? >>>> Error >>>>>>> messages! Look in Tomcat's log files for error messages that may >>>> be >>>>>>> related to the crash. And... please tell us your operating >>> system, >>>>>>> Tomcat version, Java version, and whether your Tomcat is running >>>>> pure >>>>>>> Java connectors and applications, or whether you have any JNI >> code >>>>> in >>>>>>> your applications or are running APR connectors. >>>>> >>>>> >>>>> I can see that you are running PHP, please provide specific >>>> information >>>>> about how you are doing that& what library you are using. >>>> >>>> >>>> http://www.rocsca.it/info.php >>>> >>>>> It would also be helpful to know if the server is processing the >>> same >>>>> request each time when it crashes. >>>> >>>> I can't figure out.. I have no evidence of the crash of the server.. >>> >>> Well if the server crashed, it'll be one of, or the very last line in >>> the access log. Have you configured an access log in server.xml? >> >> I can't see access log configured in server.xml, but I get them in logs >> directory.. > > So, when it crashes: > > 1. Don't restart Tomcat, leave it off. > > 2. Find the current access log file. > > 3. Look at the last few requests - if Tomcat has crashed, then there > will be no new log entries after the crash. So the last one will > probably be the one that caused the crash. > > Hopefully the request that caused the crash will be logged and you'll > see which one it is.
127.0.0.1 - - [29/Nov/2009:07:52:40 +0100] "GET /rocsca/index.php HTTP/1.1" 500 - "http://www.rocsca.it/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 4.0) Opera 7.0 [en]" The original request is "http://www.rocsca.it/index.php" which is reverse proxied into "http://localhost:8081/rocsca/index.php". After this request, there are no other an Tomcat is hanged. >>> How have you configured PHP - which PHP library have you installed in >>> Tomcat to make Tomcat serve PHP pages. It won't do so without >>> additional manual configuration by you. >> >> <servlet> >> <servlet-name>php</servlet-name> >> <servlet-class>net.php.servlet</servlet-class> >> </servlet> >> <servlet> >> <servlet-name>php-formatter</servlet-name> >> <servlet-class>net.php.formatter</servlet-class> >> </servlet> >> <servlet-mapping> >> <servlet-name>php</servlet-name> >> <url-pattern>*.php</url-pattern> >> </servlet-mapping> >> >> <servlet-mapping> >> <servlet-name>php-formatter</servlet-name> >> <url-pattern>*.phps</url-pattern> >> </servlet-mapping> >> >> This entry are set in the web.xml of my application. >> >> I have followed the instruction on this page: >> >> http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi >> ng-tomcat-4x-or-5x/ rocsca --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org