harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5844) [drlvm] class unloading wastes memory
Date Tue, 03 Jun 2008 16:04:44 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601988#action_12601988
] 

Chunrong Lai commented on HARMONY-5844:
---------------------------------------


   Thanks. I could also observe OOM like "Cannot allocate pool storage: 00040000 bytes of
virtual memory for code or data".
    My understanding is that the OOM probably comes from the test suite itself instead of
from the class unloading. I did read the source code and see org.apache.harmony.vm.test.lazyresolution.StressTest

is very memory consuming. At the same time one can turn off class unloading with option "-XX:gc.ignore_vtable_tracing=true"
and still observe the memory increasing. I also see the memory consumption drops back to a
normal number after the lazy.Stress.test passes (it can sometimes pass in batch-mode running
but never pass in the standalone running with enhanced input parameters).
    Please let me know if I misunderstand the issue.

> [drlvm] class unloading wastes memory
> -------------------------------------
>
>                 Key: HARMONY-5844
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5844
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>            Assignee: Chunrong Lai
>
> Simple class unloading scenario shows that DRLVM leaks memory (and finally crashes).
To reproduce, run StressTest of lazy.test suite and watch that process gradually consumes
more and more memory. If compared to RI, the last keeps memory flat during very long runs.
> Memory leaks roughly in the same rate for any execution mode, compiled or interpreted.
> For convenience, there is standalone launcher org.apache.harmony.vm.test.lazyresolution.StressTest
which can vary stress load, e.g.: 
> working_vm$ cd build\windows_x86_msvc_release\tests\lazy.tests\classes 
> classes$ java -cp .;junit.jar -Dlazy.test.iterations=100 -Dlazy.test.threads=10 org.apache.harmony.vm.test.lazyresolution.StressTest

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


Mime
View raw message