1 Reply Latest reply: Mar 1, 2009 2:07 PM by 807574 RSS

    Sun One Portal 6 - Memory leaks

    807574
      When user is not logging out (where the code to remove portlet session objects exists), and even after portlet session times out, lot of large objects are lingering in portlet session. I'm also using
      <context-param>
      <param-name>jato:enforceStrictSessionTimeout</param-name>
      <param-value>true</param-value>
      </context-param>
      but objects in portlet session are not GCed even after session time out.



      I have tried to register "PortletContainerContextListenerImpl" in web.xml of portlet war file, but below error is thrown:

      Exception sending context initialized event to listener instance of class com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl
      java.lang.NullPointerException
      at com.sun.portal.container.portlet.impl.PortletContainerContextListenerImpl.contextInitialized(PortletContainerContextListenerImpl.java:35)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3387)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3743)
      at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
      at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
      at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
      at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
      at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)


      Can any one post suggestions on how to clean up the objects in PortletSession when user exits the Portlet without actually invoking the code to remove attributes in PortletSession?