You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Volosyuk (JIRA)" <ji...@apache.org> on 2006/12/04 15:35:21 UTC

[jira] Created: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

[DRLVM] out of memory creating unused Threads
---------------------------------------------

                 Key: HARMONY-2437
                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: All
            Reporter: Ivan Volosyuk
            Priority: Minor


Simple test which fails with OOME:

public class Test extends Thread {
    public static void main(String args[]) {
        for(;;) {
            new Test();
        }
    }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2437?page=all ]

Alexey Varlamov reassigned HARMONY-2437:
----------------------------------------

    Assignee: Alexey Varlamov

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2437) [drlvm] out of memory creating unused Threads

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

Alexey Varlamov resolved HARMONY-2437.
--------------------------------------

    Resolution: Fixed

Fixed at r500175, slightly modified patch to iron copy-paste out and added  the ThreadOOM to smoke suite.

> [drlvm] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java, ThreadOOM.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

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


[jira] Commented: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2437?page=comments#action_12457402 ] 
            
Alexey Varlamov commented on HARMONY-2437:
------------------------------------------

Of course, on the clean svn. Tried SUSE9 ia32, Win2003 and WinXP

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Ivan Volosyuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2437?page=all ]

Ivan Volosyuk updated HARMONY-2437:
-----------------------------------

    Attachment: Test.java

Regression test attached.

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Ivan Volosyuk (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2437?page=comments#action_12457385 ] 
            
Ivan Volosyuk commented on HARMONY-2437:
----------------------------------------

That is really strange. I assume you didn't apply the patch yet, correct?


> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2437) [drlvm] out of memory creating unused Threads

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2437?page=all ]

Gregory Shimansky updated HARMONY-2437:
---------------------------------------

    Summary: [drlvm] out of memory creating unused Threads  (was: [DRLVM] out of memory creating unused Threads)

> [drlvm] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2437) [drlvm] out of memory creating unused Threads

Posted by "Ivan Volosyuk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467369 ] 

Ivan Volosyuk commented on HARMONY-2437:
----------------------------------------

Any progress applying the fix?

> [drlvm] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java, ThreadOOM.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

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


[jira] Commented: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2437?page=comments#action_12455602 ] 
            
Alexey Varlamov commented on HARMONY-2437:
------------------------------------------

Could you please provide a ready-to-integrate regression test for this? 

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2437?page=comments#action_12455600 ] 
            
Alexey Varlamov commented on HARMONY-2437:
------------------------------------------

Ivan, nice catch. 

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2437) [drlvm] out of memory creating unused Threads

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

Salikh Zakirov updated HARMONY-2437:
------------------------------------

    Attachment: ThreadOOM.java

ThreadOOM.java provides a stable reproducer of the leaked java.lang.Thread issue.

The original Test.java may have caused VM crash due to native memory leaks before java heap is full.
The trick in ThreadOOM is to create vast amount of garbage attached to j.l.Thread objects.

> [drlvm] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java, ThreadOOM.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

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


[jira] Updated: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Ivan Volosyuk (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2437?page=all ]

Ivan Volosyuk updated HARMONY-2437:
-----------------------------------

    Attachment: h-2437-fix.diff

Fixed thread manager not to hold unused Thread objects.

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>            Priority: Minor
>         Attachments: h-2437-fix.diff
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2437) [DRLVM] out of memory creating unused Threads

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2437?page=comments#action_12457332 ] 
            
Alexey Varlamov commented on HARMONY-2437:
------------------------------------------

Thanks for the test, will add it to smoke suite.
However, it always works for me, with any heap size and thread instance size. This is weird...

> [DRLVM] out of memory creating unused Threads
> ---------------------------------------------
>
>                 Key: HARMONY-2437
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2437
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: All
>            Reporter: Ivan Volosyuk
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: h-2437-fix.diff, Test.java
>
>
> Simple test which fails with OOME:
> public class Test extends Thread {
>     public static void main(String args[]) {
>         for(;;) {
>             new Test();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira