2012-06-22 17 views
12

Cosa succede alle richieste HTTP che vengono elaborate quando si arresta o si riavvia Tomcat nel modo "normale"? Saranno elaborati fino al completamento della risposta o se i thread http sono stati interrotti? C'è un modo per configurare l'arresto graduale?Cosa succede alle richieste quando tomcat si interrompe

risposta

12

Tomcat supporta unloadDelay che attende il tempo configurato per lo scaricamento dei servlet.

Questo dovrebbe configurato in context.xml come segue:

<context unloadDelay="10000"> 

Riferimenti:

+1

Nizza, così per curiosità, fa questa causa Tomcat per poi respingere nuove richieste pur consentendo il servlet per completare l'elaborazione delle richieste esistenti? – ametren

+0

Sì, corretto !! –

1

E 'sufficiente interrompere la richiesta e interrompere il collegamento richiesta-risposta. E si ottiene ..

in grado di connettersi

Browser can't establish a connection to the server at Host:port. 

    The site could be temporarily unavailable or too busy. Try again in a few moments. 
    If you are unable to load any pages, check your computer's network connection. 
    If your computer or network is protected by a firewall or proxy, make sure that Browser is permitted to access the Web. 

che non può essere gestita.

Problemi correlati