JAMWiki
  1. JAMWiki
  2. JAMWIKI-79

OutOfMemory during out-of-box installation

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Environment:

      Linux, Tomcat 6 with 24MB heap, Servlet 2.5, JSP 2.1

      Description

      I try to install out-of-the-box beta2 and after saving configuration I get OutOfMemory error message (see screenshot)

        Activity

        Hide
        Constantine
        added a comment -

        After I killed the beta1 and resturted the Tomcat everything works fine.

        May be this should be mentioned somewhere that leftovers from beta1 may cause Out)fMemory error.

        Show
        Constantine
        added a comment - After I killed the beta1 and resturted the Tomcat everything works fine. May be this should be mentioned somewhere that leftovers from beta1 may cause Out)fMemory error.
        Hide
        Constantine
        added a comment -

        However the same error crops up in different places. Right now most of Admin (link in the very top right conner) pages produce this error.

        Show
        Constantine
        added a comment - However the same error crops up in different places. Right now most of Admin (link in the very top right conner) pages produce this error.
        Hide
        Ryan Holliday
        added a comment -

        JAMWiki 1.2 switches to specifying caches as a percentage of heap space, which was done to resolve OOM errors some people had reported. I'm guessing that the new cache settings may be too small for a 24MB heap, so I'll need to investigate. That didn't actually change at all between beta 1 and beta 2 though - did you see any issues with beta 1?

        Thanks for the report - I'll take a look at this on my flight home tonight.

        Show
        Ryan Holliday
        added a comment - JAMWiki 1.2 switches to specifying caches as a percentage of heap space, which was done to resolve OOM errors some people had reported. I'm guessing that the new cache settings may be too small for a 24MB heap, so I'll need to investigate. That didn't actually change at all between beta 1 and beta 2 though - did you see any issues with beta 1? Thanks for the report - I'll take a look at this on my flight home tonight.
        Hide
        Ryan Holliday
        added a comment -

        Here's a second report from user "cab":

        Java on my server has only 24MB of heap, so when I tried to update from current v.1.1.5 to latest v.1.2 the Java ran out of memory.

        The workaround, which worked for me was to restart the Tomcat right before running update. Then update was successful, but after that JSP compilation caused the same OutOfMemory. It took me 3 restarting of the Tomcat to compile all JSP pages and now it works fine.

        Show
        Ryan Holliday
        added a comment - Here's a second report from user "cab": Java on my server has only 24MB of heap, so when I tried to update from current v.1.1.5 to latest v.1.2 the Java ran out of memory. The workaround, which worked for me was to restart the Tomcat right before running update. Then update was successful, but after that JSP compilation caused the same OutOfMemory. It took me 3 restarting of the Tomcat to compile all JSP pages and now it works fine.
        Hide
        Ryan Holliday
        added a comment -

        For JAMWiki 1.2.3 I've upgraded EhCache from 2.5 to 2.5.4, which may help, although I'm still having trouble reproducing the reported problem.

        Show
        Ryan Holliday
        added a comment - For JAMWiki 1.2.3 I've upgraded EhCache from 2.5 to 2.5.4, which may help, although I'm still having trouble reproducing the reported problem.
        Hide
        Ryan Holliday
        added a comment -

        I've reverted the EhCache upgrade as it caused jamwiki.org to hang. I'm tempted to investigate an alternative caching layer for JAMWiki 2.x as EhCache behavior has been very inconsistent from release to release.

        Show
        Ryan Holliday
        added a comment - I've reverted the EhCache upgrade as it caused jamwiki.org to hang. I'm tempted to investigate an alternative caching layer for JAMWiki 2.x as EhCache behavior has been very inconsistent from release to release.

          People

          • Assignee:
            Ryan Holliday
            Reporter:
            Constantine
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: