You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Teppo Kurki (JIRA)" <ji...@apache.org> on 2008/04/17 19:35:21 UTC

[jira] Created: (WICKET-1549) Memory leak with PropertyResolver (in running test suites)

Memory leak with PropertyResolver (in running test suites)
----------------------------------------------------------

                 Key: WICKET-1549
                 URL: https://issues.apache.org/jira/browse/WICKET-1549
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.2
            Reporter: Teppo Kurki
            Priority: Minor


Memory requirement  for running the test suite for a Wicket application increase as the number of constructed Applications (for example BaseWicketTester.DummyWebApplication) goes up.

The static applicationToClassesToGetAndSetters Map holds Applications as keys. There is no equals/hashCode so a reference for each newly constructed test Application will be stuffed in there and not reused for identical Applications.

I solved the problem for my project by implementing equals & hashCode in our DummyProjectXApplication.

There seems to be something related going on in WICKET-625 with Application.internalDestroy, which removes the Application reference when the webapp is unloaded. After a test is done with the Application it might use the same mechanism for "unloading" the application?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-1549) Memory leak with PropertyResolver (in running test suites)

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner closed WICKET-1549.
-----------------------------------

    Resolution: Fixed

> Memory leak with PropertyResolver (in running test suites)
> ----------------------------------------------------------
>
>                 Key: WICKET-1549
>                 URL: https://issues.apache.org/jira/browse/WICKET-1549
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Teppo Kurki
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.4, 1.4-M2
>
>
> Memory requirement  for running the test suite for a Wicket application increase as the number of constructed Applications (for example BaseWicketTester.DummyWebApplication) goes up.
> The static applicationToClassesToGetAndSetters Map holds Applications as keys. There is no equals/hashCode so a reference for each newly constructed test Application will be stuffed in there and not reused for identical Applications.
> I solved the problem for my project by implementing equals & hashCode in our DummyProjectXApplication.
> There seems to be something related going on in WICKET-625 with Application.internalDestroy, which removes the Application reference when the webapp is unloaded. After a test is done with the Application it might use the same mechanism for "unloading" the application?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1549) Memory leak with PropertyResolver (in running test suites)

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner updated WICKET-1549:
------------------------------------

    Fix Version/s: 1.4-M2
                   1.3.4
         Assignee: Johan Compagner

> Memory leak with PropertyResolver (in running test suites)
> ----------------------------------------------------------
>
>                 Key: WICKET-1549
>                 URL: https://issues.apache.org/jira/browse/WICKET-1549
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Teppo Kurki
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.4, 1.4-M2
>
>
> Memory requirement  for running the test suite for a Wicket application increase as the number of constructed Applications (for example BaseWicketTester.DummyWebApplication) goes up.
> The static applicationToClassesToGetAndSetters Map holds Applications as keys. There is no equals/hashCode so a reference for each newly constructed test Application will be stuffed in there and not reused for identical Applications.
> I solved the problem for my project by implementing equals & hashCode in our DummyProjectXApplication.
> There seems to be something related going on in WICKET-625 with Application.internalDestroy, which removes the Application reference when the webapp is unloaded. After a test is done with the Application it might use the same mechanism for "unloading" the application?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1549) Memory leak with PropertyResolver (in running test suites)

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595901#action_12595901 ] 

Johan Compagner commented on WICKET-1549:
-----------------------------------------

changed that MockWebApplication (the base class of wicket tester) will call destroy on the real application object.

> Memory leak with PropertyResolver (in running test suites)
> ----------------------------------------------------------
>
>                 Key: WICKET-1549
>                 URL: https://issues.apache.org/jira/browse/WICKET-1549
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Teppo Kurki
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.4, 1.4-M2
>
>
> Memory requirement  for running the test suite for a Wicket application increase as the number of constructed Applications (for example BaseWicketTester.DummyWebApplication) goes up.
> The static applicationToClassesToGetAndSetters Map holds Applications as keys. There is no equals/hashCode so a reference for each newly constructed test Application will be stuffed in there and not reused for identical Applications.
> I solved the problem for my project by implementing equals & hashCode in our DummyProjectXApplication.
> There seems to be something related going on in WICKET-625 with Application.internalDestroy, which removes the Application reference when the webapp is unloaded. After a test is done with the Application it might use the same mechanism for "unloading" the application?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.