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

[jira] Created: (HARMONY-2697) [drlvm][zip] Un-end()-ed deflaters leak native memory

[drlvm][zip] Un-end()-ed deflaters leak native memory
-----------------------------------------------------

                 Key: HARMONY-2697
                 URL: http://issues.apache.org/jira/browse/HARMONY-2697
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Windows XP i686
            Reporter: Salikh Zakirov
            Priority: Minor
         Attachments: DeflateInflate.java

The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
The test works okay on J9 and HotSpot.
Note, that JRockit also leaks memory and crashes.

Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
run finalizers, which in turn will free native memory.


-- 
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-2697) [drlvm] Un-end()-ed deflaters leak native memory

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

Vladimir Beliaev commented on HARMONY-2697:
-------------------------------------------

The issue is still reproducible May 22 on Windows/x86 like:

Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
java version "1.5.0" 
pre-alpha : not complete or compatible
svn = r539322, (May 18 2007), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
.....java.lang.IllegalArgumentException: 
        at java.util.zip.Deflater.createStream(Deflater.java)
        at java.util.zip.Deflater.<init>(Deflater.java:112)
        at DeflateInflate.main(DeflateInflate.java:8)
FAILED

Thanks
Vladimir Beliaev

> [drlvm] Un-end()-ed deflaters leak native memory
> ------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

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


[jira] Commented: (HARMONY-2697) [drlvm] Un-end()-ed deflaters leak native memory

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

Mikhail Markov commented on HARMONY-2697:
-----------------------------------------

I've linked this isssue with HARMONY-2530 which looks very similar.
The only problem is that 2530 is reproducible on J9 as well (while this JIRA report says that it reproducible on DRLVM only) - that's why i've linked them as "reated" not "duplicated".
Nevertheless i think that fixing 2530 will resolve this issue as well.

> [drlvm] Un-end()-ed deflaters leak native memory
> ------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

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


[jira] Closed: (HARMONY-2697) [drlvm] Un-end()-ed deflaters leak native memory

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

Mikhail Markov closed HARMONY-2697.
-----------------------------------

    Resolution: Duplicate
      Assignee: Mikhail Markov

Closing as duplicate of HARMONY-2530.

> [drlvm] Un-end()-ed deflaters leak native memory
> ------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Assignee: Mikhail Markov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

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


[jira] Commented: (HARMONY-2697) [drlvm] Un-end()-ed deflaters leak native memory

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

Vladimir Beliaev commented on HARMONY-2697:
-------------------------------------------

Mikhail is right - attached DeflateInflate test has passed both with J9 & DRLVM on M4 revisions:

$ ~/trunk/working_classlib/deploy/jdk/jre/bin/java -cp . DeflateInflate
....................................................................................................PASSED
$ ~/trunk/working_vm/build/deploy/jdk/jre/bin/java -cp . DeflateInflate 
....................................................................................................PASSED

This bug may be closed as a DUPLICATE of HARMONY-2530.

Thanks
Vladimir

> [drlvm] Un-end()-ed deflaters leak native memory
> ------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

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


[jira] Updated: (HARMONY-2697) [drlvm] Un-end()-ed deflaters leak native memory

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

Gregory Shimansky updated HARMONY-2697:
---------------------------------------

    Summary: [drlvm] Un-end()-ed deflaters leak native memory  (was: [drlvm][zip] Un-end()-ed deflaters leak native memory)

I removed [zip] category because it doesn't fully describe the problem of large native resources associated with java objects.

> [drlvm] Un-end()-ed deflaters leak native memory
> ------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

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


[jira] Updated: (HARMONY-2697) [drlvm][zip] Un-end()-ed deflaters leak native memory

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

Salikh Zakirov updated HARMONY-2697:
------------------------------------

    Attachment: DeflateInflate.java

> [drlvm][zip] Un-end()-ed deflaters leak native memory
> -----------------------------------------------------
>
>                 Key: HARMONY-2697
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2697
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP i686
>            Reporter: Salikh Zakirov
>            Priority: Minor
>         Attachments: DeflateInflate.java
>
>
> The attached test DeflateInflate.java quickly leaks memory and crashes on DRLVM.
> The test works okay on J9 and HotSpot.
> Note, that JRockit also leaks memory and crashes.
> Effectively, the test creates huge amounts of java objects, which keep pointers to blocks allocated
> in native heap. The native heap is exhausted before java heap is filled, so no garbage collection
> occurs. Should the java collection occur, it would be able to detect unreachable finalizable objects,
> run finalizers, which in turn will free native memory.

-- 
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