Struts 2
  1. Struts 2
  2. WW-3751

Memory leak using jsp tags on an app deployed on glassfish

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.1, 2.2.1.1, 2.2.3, 2.3.1, 2.3.1.1
    • Fix Version/s: 2.3.12
    • Component/s: Other
    • Labels:
      None
    • Environment:

      Description

      I have some webapps based on Struts 2 framework.

      I use JSP tags, even sometimes with nested Struts 2 tag (FreeMarker).

      Every time you call with a single jsp jsp tags JspWriterImp a new instance is created with more or less the contents of the tag (instead of reusing the same object stored in memory.

      This causes a loss of memory, because these objects are located in the old generation heap 'til the web application is restarted

      After a few days / weeks depending on the traffic that you need to restart because of irresponsiveness.

      I also created a Jira issue on GlassFish (http://java.net/jira/browse/GLASSFISH-18316), where I posted a screenshot and a sample application to reproduce the problem.

      Basically I'm not sure if it's a struts problem or a problem of glass fish.
      Perhaps the second hypothesis is more likely

      Feel free to close it if you feel that the problem is solely related to Glassfish

      1. screenshot-1 - VisualVM.jpg
        328 kB
        Marco Malavolta
      2. testproject.zip
        11 kB
        Marco Malavolta

        Activity

        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.12 [ 12324067 ]
        Fix Version/s 2.3.11 [ 12323903 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.11 [ 12323903 ]
        Fix Version/s 2.3.10 [ 12323841 ]
        Lukasz Lenart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lukasz Lenart [ lukaszlenart ]
        Resolution Not A Problem [ 8 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.9 [ 12323841 ]
        Fix Version/s 2.3.8 [ 12323480 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.8 [ 12323480 ]
        Fix Version/s 2.3.7 [ 12323448 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.7 [ 12323448 ]
        Marco Malavolta made changes -
        Attachment testproject.zip [ 12513250 ]
        Marco Malavolta made changes -
        Field Original Value New Value
        Attachment screenshot-1 - VisualVM.jpg [ 12513249 ]
        Marco Malavolta created issue -

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Marco Malavolta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development