You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Marco Malavolta (Created) (JIRA)" <ji...@apache.org> on 2011/11/11 09:46:51 UTC

[jira] [Created] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

struts2-cdi-plugin - memory never garbage colleted
--------------------------------------------------

                 Key: WW-3702
                 URL: https://issues.apache.org/jira/browse/WW-3702
             Project: Struts 2
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.2.3.1, 2.2.3, 2.2.1.1, 2.2.1
         Environment: It happens regardless on Linux and Windows OS
Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
The JDK used is jdk1.6.0_24
            Reporter: Marco Malavolta
            Priority: Blocker


Every action execution tha thas injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148442#comment-13148442 ] 

Marco Malavolta commented on WW-3702:
-------------------------------------

Thank you a lot for the quick reply
I confirm the same beahviour with devmode=false setting. It takes a lot more time to reach the peak. 
I obtained the same results after about 320000 requests.


                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148377#comment-13148377 ] 

Philip Luppens commented on WW-3702:
------------------------------------

Just one thing: in the sample code you've sent, you have the devmode=true setting. Can you confirm that the same memory leak happens when devmode if off?
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149845#comment-13149845 ] 

Lukasz Lenart commented on WW-3702:
-----------------------------------

The idea behind is to remove the cache at all, probably it isn't needed as a CDI implementation should do it for us. It can even be worse as a cache duplication.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Malavolta updated WW-3702:
--------------------------------

    Description: 
Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
This forces me to restart the web server.

  was:
Every action execution tha thas injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
This forces me to restart the web server.

    
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>            Priority: Blocker
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148458#comment-13148458 ] 

Philip Luppens commented on WW-3702:
------------------------------------

Ok, thank you very much for the quick testing. I'll see if I can confirm the results here locally. Any chance you could have a look with MAT or YourKit to see what's leaking? I'll try to have a look here, but I'm currently at work and a bit low on spare time.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip Luppens updated WW-3702:
-------------------------------

    Priority: Major  (was: Blocker)

Lowered priority to major.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152908#comment-13152908 ] 

Marco Malavolta commented on WW-3702:
-------------------------------------

Hi to all.

@Maurizio, here my environment specifications
-------------------------------------------------------
Windows 7 Professional (Microsoft Windows version 6.1 Build 7601:Service Pack 1) 64 bit

Processor: Intel Core i5 CPU 650 @ 3.20GHz 3.33 Ghz
Ram: 6.00 GB

jdk1.6.0_24
GlassFish Server Open Source Edition 3.0.1 (build 22)
-------------------------------------------------------

Today i tried different version of GlassFish with the same application.

I tested these two versions.
GlassFish Server Open Source Edition 3.1 (build 43)
GlassFish Server Open Source Edition 3.1.1 (build 12).

None of them is affected by the issue in my environment, so Maurizio is propably right when he says "it could be also a glassfish issue".

Now I have to check the production environment where we have both GF 3.0.1 (build 22) and GF 3.1.1 (build 12).
In both cases we still experience the same issue...

I'm pretty confused.

Thank you all for the help
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149763#comment-13149763 ] 

Maurizio Cucchiara commented on WW-3702:
----------------------------------------

Hi guys,
@Lukasz
I totally agree with Philip, furthermore I don't believe it fixes the problem. 
I have taken a deeper look at this issue last weekend. I also thought that the internal cache could be a potential cause of memory leaks, but setting a breakpoint on the code I realized that there were always 40 objects (not more) inside the cache. 
I ran the code example on Glassfish 3.1.1 and unfortunately I didn't experience the problem that Marco mentioned before (I got the usual sawtooth wave). 
I also changed the code using the Spring Framework, but the outcome is more or less the same.
 
@Marco, I could be wrong but can you confirm the java vendor/version? 
Have you experienced this issue in other environments (it could be also a glassfish issue)?

                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Maurizio Cucchiara (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149763#comment-13149763 ] 

Maurizio Cucchiara edited comment on WW-3702 at 11/14/11 5:30 PM:
------------------------------------------------------------------

Hi guys,
@Lukasz
I totally agree with Philip, furthermore I don't believe it fixes the problem. 

I have taken a deeper look at this issue last weekend. I also thought that the internal cache could be a potential cause of memory leaks, but setting a breakpoint on the code I realized that there were always 40 objects (not more) inside the cache. 
I ran the code example on Glassfish 3.1.1 and unfortunately I didn't experience the problem that Marco mentioned before (I got the usual sawtooth wave). 
I also changed the code using the Spring Framework, but the outcome is more or less the same.
 
@Marco, I could be wrong but can you confirm the java vendor/version? 
Have you experienced this issue in other environments (it could be also a glassfish issue)?

Also, in order to expedite the memory leak process, I decreased the heap size to 128MB
                
      was (Author: maurizio.cucchiara):
    Hi guys,
@Lukasz
I totally agree with Philip, furthermore I don't believe it fixes the problem. 
I have taken a deeper look at this issue last weekend. I also thought that the internal cache could be a potential cause of memory leaks, but setting a breakpoint on the code I realized that there were always 40 objects (not more) inside the cache. 
I ran the code example on Glassfish 3.1.1 and unfortunately I didn't experience the problem that Marco mentioned before (I got the usual sawtooth wave). 
I also changed the code using the Spring Framework, but the outcome is more or less the same.
 
@Marco, I could be wrong but can you confirm the java vendor/version? 
Have you experienced this issue in other environments (it could be also a glassfish issue)?

                  
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Malavolta updated WW-3702:
--------------------------------

    Attachment: struts2-cdi-example.7z

the struts2-cdi-example modified to reproduce the issue.

Contains also a readme.txt and some screenshots demostrating the problem
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>            Priority: Blocker
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution tha thas injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152908#comment-13152908 ] 

Marco Malavolta edited comment on WW-3702 at 11/19/11 9:59 AM:
---------------------------------------------------------------

Hi to all.

@Maurizio, here my environment specifications
-------------------------------------------------------
Windows 7 Professional (Microsoft Windows version 6.1 Build 7601:Service Pack 1) 64 bit

Processor: Intel Core i5 CPU 650 @ 3.20GHz 3.33 Ghz
Ram: 6.00 GB

jdk1.6.0_24
GlassFish Server Open Source Edition 3.0.1 (build 22)
-------------------------------------------------------

Today i tried different version of GlassFish with the same application.

I tested these two versions.
GlassFish Server Open Source Edition 3.1 (build 43)
GlassFish Server Open Source Edition 3.1.1 (build 12).

None of them is affected by the issue in my environment, so Maurizio is propably right when he says "it could be also a glassfish issue".

Now I have to check the production environment where we have both GF 3.0.1 (build 22) and GF 3.1.1 (build 12).
In both cases the old-gen grows slowly and is never released by garbage collector.

I'm pretty confused.

Thank you all for the help
                
      was (Author: marco.malavolta):
    Hi to all.

@Maurizio, here my environment specifications
-------------------------------------------------------
Windows 7 Professional (Microsoft Windows version 6.1 Build 7601:Service Pack 1) 64 bit

Processor: Intel Core i5 CPU 650 @ 3.20GHz 3.33 Ghz
Ram: 6.00 GB

jdk1.6.0_24
GlassFish Server Open Source Edition 3.0.1 (build 22)
-------------------------------------------------------

Today i tried different version of GlassFish with the same application.

I tested these two versions.
GlassFish Server Open Source Edition 3.1 (build 43)
GlassFish Server Open Source Edition 3.1.1 (build 12).

None of them is affected by the issue in my environment, so Maurizio is propably right when he says "it could be also a glassfish issue".

Now I have to check the production environment where we have both GF 3.0.1 (build 22) and GF 3.1.1 (build 12).
In both cases we still experience the same issue...

I'm pretty confused.

Thank you all for the help
                  
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149849#comment-13149849 ] 

Philip Luppens commented on WW-3702:
------------------------------------

@Lukasz: Agreed. We should probably remove caching at that layer completely.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149712#comment-13149712 ] 

Lukasz Lenart commented on WW-3702:
-----------------------------------

I added a flag to disable internal cache in CDI plugin, be default now it's disable now. It can enabled again by specifying flag 

struts.cdi.useInternalCache = true

Could you check with both settings ?
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13150332#comment-13150332 ] 

Marco Malavolta commented on WW-3702:
-------------------------------------

Hi to all.

@Maurizio, I can confirm the java version. I also tried to lower the max memory to 256MB from 512MB for glassfish (with 128MB the old gen was nearly full after starting the server and deploying the application) and the application slows 'til unresponsiveness in about half the time (about 156000 requests in 46 minutes), so the beahviour seems predictable.

I've never tested the application in environments other than glasshfish, cause in my applications I use dependency injection and ejb support. 
I think I will take a look at TomEE in a few days. If the problem doesn't affect it, I'll try to promote the switch in production. 

Just to know, does any of you has experienced the same problem and can confirm it?

                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151375#comment-13151375 ] 

Maurizio Cucchiara commented on WW-3702:
----------------------------------------

Ciao Marco,
we need some more details, could you start to describe your environment in term of resources: architecture, cpu, memory and so on.
has anyone experienced the issue described by Marco?
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Lukasz Lenart (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-3702.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.1

I leave the cache for now, Weld doesn't provide any caching at this time. It can always be removed in the future.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>             Fix For: 2.3.1
>
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148473#comment-13148473 ] 

Maurizio Cucchiara commented on WW-3702:
----------------------------------------

hi guys,
unfortunately I have no glassfish environment to reproduce the issue.
I'll get ASAP and let you know.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149720#comment-13149720 ] 

Philip Luppens commented on WW-3702:
------------------------------------

Regardless of whether or not this works, it seems pretty bad that we need to set a cache flag to false to counter a memory leak.
                
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Philip Luppens (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148377#comment-13148377 ] 

Philip Luppens edited comment on WW-3702 at 11/11/11 9:31 AM:
--------------------------------------------------------------

Just one thing: in the sample code you've sent, you have the devmode=true setting. Can you confirm that the same memory leak happens when devmode is disabled?
                
      was (Author: pluppens):
    Just one thing: in the sample code you've sent, you have the devmode=true setting. Can you confirm that the same memory leak happens when devmode if off?
                  
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Lukasz Lenart (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149712#comment-13149712 ] 

Lukasz Lenart edited comment on WW-3702 at 11/14/11 4:13 PM:
-------------------------------------------------------------

I added a flag to disable internal cache in CDI plugin, by default it's disabled now. It can be enabled again by specifying flag 

struts.cdi.useInternalCache = true

Could you check with both settings ?
                
      was (Author: lukaszlenart):
    I added a flag to disable internal cache in CDI plugin, be default now it's disable now. It can enabled again by specifying flag 

struts.cdi.useInternalCache = true

Could you check with both settings ?
                  
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3702) struts2-cdi-plugin - memory never garbage colleted

Posted by "Marco Malavolta (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148351#comment-13148351 ] 

Marco Malavolta edited comment on WW-3702 at 11/11/11 8:52 AM:
---------------------------------------------------------------

Attached the struts2-cdi-example project, modified to reproduce the issue.

The archive contains also a readme.txt and some screenshots demostrating the problem
                
      was (Author: marco.malavolta):
    the struts2-cdi-example modified to reproduce the issue.

Contains also a readme.txt and some screenshots demostrating the problem
                  
> struts2-cdi-plugin - memory never garbage colleted
> --------------------------------------------------
>
>                 Key: WW-3702
>                 URL: https://issues.apache.org/jira/browse/WW-3702
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1, 2.2.1.1, 2.2.3, 2.2.3.1
>         Environment: It happens regardless on Linux and Windows OS
> Proble encountered on both Glassfish 3.0.1 and Glassfish 3.1.1
> The JDK used is jdk1.6.0_24
>            Reporter: Marco Malavolta
>            Priority: Blocker
>         Attachments: struts2-cdi-example.7z
>
>
> Every action execution that contains injected classes consume a small amout of memory that after a while is stored in old-gen. This memory is never released after garbage collection.
> After a few days / week, depending on usage, my applications based on struts2 + struts2-cdi-plugin are no more responsive.
> This forces me to restart the web server.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira