Hi,

On Resin 4 (not 3.1), in the case of a web-app-deploy with nested
web-app configuration, hitting the default idle-time (2 hrs) apparently
results in a webapp restart on the next request. Configuring a negative
idle-time on web-app-default seems to work around the issue.

Configuration example:

<web-app-deploy path="applications"
expand-directory="applications/.expand"> <web-app
context-path="/xxxxxx/${system['xxxxxx.context.path.current']}"
root-directory="xxxxxx"/> </web-app-deploy>

Stack trace (for Resin 4.0.41) to DeployController.restartImpl() in
attachment.

Best regards, Tom


On Tue, Mar 17, 2015, at 02:45 PM, Tom Turelinckx wrote:
> Hi,
>
> On Resin 4, our web app is sometimes spontaneously being reloaded
> during request handling. What could be the cause of that?
>
> This happens once or twice a day, at irregular times and intervals,
> with Resin 4.0.41 on OpenJDK 6 on Linux, but doesn't happen in the
> same application with Resin 3.1.10 on Sun JDK 1.5 on Solaris.
> Application is deployed as a .war using web-app-deploy with
> redeploy-mode and redeploy-check-interval at their defaults, but the
> .war is never touched. Moreover, we've been logging at level finest
> for com.caucho, but there's no indication in the log file as to why
> the web app is reloading, nor is there any entry in the watchdog log
> file. This also happens for requests resulting in a redirect at resin
> config level, hence not even hitting our application code.
> Trimmed-down example log file in attachment.
>
> Could this reloading be a feature of the health system in Resin 4?
> What can we do to figure out what's triggering the reload, e.g. which
> metric is being hit? Tnx!
>
> Best regards, Tom
>
> _________________________________________________
> resin-interest mailing list resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest Email had 1
> attachment:


>  * log.txt 12k (text/plain)

For Resin 4.0.41:
        at 
com.caucho.env.deploy.DeployController.restartImpl(DeployController.java:635)
        at 
com.caucho.env.deploy.StartAutoRedeployAutoStrategy.update(StartAutoRedeployAutoStrategy.java:113)
        at 
com.caucho.env.deploy.DeployController.update(DeployController.java:587)
        at 
com.caucho.env.deploy.DeployContainer.addController(DeployContainer.java:365)
        at 
com.caucho.env.deploy.DeployContainer.generateController(DeployContainer.java:339)
        at 
com.caucho.env.deploy.DeployContainer.findController(DeployContainer.java:190)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1158)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1170)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1170)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1170)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1170)
        at 
com.caucho.server.webapp.WebAppContainer.findByURIImpl(WebAppContainer.java:1170)
        at 
com.caucho.server.webapp.WebAppContainer.findEntryByURI(WebAppContainer.java:1136)
        at 
com.caucho.server.webapp.WebAppContainer.getWebAppController(WebAppContainer.java:1050)
        at 
com.caucho.server.webapp.WebAppContainer.buildInvocation(WebAppContainer.java:782)
        at com.caucho.server.host.Host.buildInvocation(Host.java:753)
        at 
com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:319)
        at 
com.caucho.server.cluster.ServletService.buildInvocation(ServletService.java:1047)
        at 
com.caucho.server.dispatch.InvocationServer.buildInvocation(InvocationServer.java:250)
        at 
com.caucho.server.dispatch.InvocationServer.buildInvocation(InvocationServer.java:223)
        at 
com.caucho.server.http.AbstractHttpRequest.buildInvocation(AbstractHttpRequest.java:1603)
        at 
com.caucho.server.http.AbstractHttpRequest.getInvocation(AbstractHttpRequest.java:1576)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:820)
        at 
com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1348)
        at 
com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1304)
        at 
com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1288)
        at 
com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1196)
        at 
com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:993)
        at 
com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
        at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
        at 
com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
        at 
com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
        at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
        at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to