JavaWeb-session passivation and activation

A passivation and activation .session

  1.session passivation: When the user's session within a period of no operation, the server may place the session from the memory to the hard disk (a session of a document), to reduce the pressure on the server

  2. session activation: When you start the first operation after the user session passivation, the server reads the user session to a file on your hard disk, with de-serialization difference is not disappear after the file is read, stored in hard disk

  3. passivation and activation with serialization and deserialization difference is that the server has not restarted , the data stored in the hard disk has no permanent storage

How .tomcat two open session passivation and activation

  1 can go to conf / context.xml, label configuration is as follows:

 

Guess you like

Origin www.cnblogs.com/ibcdwx/p/12503829.html