geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Krone (JIRA)" <>
Subject [jira] [Updated] (GEODE-2811) Thread leak when offheap memory is configured
Date Mon, 24 Apr 2017 17:15:04 GMT


Fred Krone updated GEODE-2811:
    Labels: storage_2  (was: )

> Thread leak when offheap memory is configured
> ---------------------------------------------
>                 Key: GEODE-2811
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: offheap
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>              Labels: storage_2
> If you are using offheap memory and keep creating and close the cache over and over then
you may run out of threads.
> Each time the cache is initialized it creates a thread pool to handle offheap LRU eviction.
The thread pool should be closed when the cache is closed but is not.
> The can lead to an exception like this:
> {quote}
> java.lang.OutOfMemoryError: unable to create new native thread
> {quote}
> The threads will be cleaned up if the garbage collector has a major enough collection
to force java object finalization but that may never happen since offheap is being used.

This message was sent by Atlassian JIRA

View raw message