You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/09/21 20:04:00 UTC

[jira] [Commented] (GEODE-5765) AlterRuntimeCommandDUnitTest slows down due to large numbers of classes loaded

    [ https://issues.apache.org/jira/browse/GEODE-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624101#comment-16624101 ] 

ASF subversion and git services commented on GEODE-5765:
--------------------------------------------------------

Commit efb2e291ec1284731ea6d21fbc988d9060b7eed7 in geode's branch refs/heads/develop from Dan Smith
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=efb2e29 ]

GEODE-5765: Clean up soft references faster in dunit tests

We observed that several tests in AlterRuntimeCommandDUnitTest class
were taking minutes when they should be taking a few seconds at most.
After some debugging, we determined that the JVM itself is struggling to
deal with having 100K+ classes loaded. They are loaded because the test
is repeated starting and stopping the http service, which creates a
classloader and causes soft references to all of the loaded classes to
be cached.

By setting this flag to clear the soft references faster, the test times
go back to normal.


> AlterRuntimeCommandDUnitTest slows down due to large numbers of classes loaded
> ------------------------------------------------------------------------------
>
>                 Key: GEODE-5765
>                 URL: https://issues.apache.org/jira/browse/GEODE-5765
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Dan Smith
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> We observed that several tests in this class are taking minutes when they should be taking a few seconds at most. After some debugging, we determined that the JVM itself is struggling to deal with having 100K+ classes loaded. They are loaded because the test is repeated starting and stopping the http service, which creates a classloader and causes soft references to all of the loaded classes to be cached.
> By setting a flag to clear the soft references faster, the test times go back to normal.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)