• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpSession question?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm running Tomcat 4.1.30. I'm using both a Servlet and a Struts Action to call a JSP. I've included the session="false" attribute in the page directive and I do not reference a session in the Servlet or Action. Regardless, Tomcat creates a session according to the Tomcat Manager application. How can I prevent the overhead of Tomcat creating an unneeded session. My hack workaround is to call session.invalidate() but this does not prevent the expense of session creation. Thanks in advance for your time.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm fairly certain someone asked this recently on Tomcat user. The answer was basically "Tomcat will always create a session, but whether it is used or not is another question." The people there went on to proclaim that the 'overhead' of session creation is breathtakingly minimal, and that an empty session is 'vanishingly small' in terms of memory.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic