Skip to content

Commit

Permalink
fixed eviction-percentage description
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Gurbuz committed Jul 27, 2016
1 parent 19004cf commit ff78720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Map-Eviction.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Let's describe each element:
`<max-size policy="FREE_NATIVE_MEMORY_PERCENTAGE">5</max-size>`


- `eviction-percentage`. When `max-size` is reached, the specified percentage of the map will be evicted. For example, if set to 25, 25% of the entries will be evicted. Setting this property to a smaller value will cause eviction of a smaller number of map entries. Therefore, if map entries are inserted frequently, smaller percentage values may lead to overheads. Valid values are integers between 0 and 100. The default value is 25.
- `eviction-percentage`. When `max-size` is reached, the specified percentage of the map's partition will be evicted. For example, if set to 25, 25% of the entries will be evicted. Setting this property to a smaller value will cause eviction of a smaller number of map entries. Therefore, if map entries are inserted frequently, smaller percentage values may lead to overheads. Valid values are integers between 0 and 100. The default value is 25.

This comment has been minimized.

Copy link
@jerrinot

jerrinot Jul 27, 2016

Contributor

is this still true? @ahmetmircik ?

This comment has been minimized.

Copy link
@ahmetmircik

ahmetmircik Jul 27, 2016

Member

Not true @jerrinot

eviction-percentage was deprecated: javaDoc

- `min-eviction-check-millis`. Minimum time in milliseconds that should elapse before checking whether a partition of the map is evictable or not. In other terms, this property specifies the frequency of the eviction process. The default value is 100. Setting it to 0 makes the eviction process run for every put operation.

![image](images/NoteSmall.jpg) ***NOTE:*** *When map entries are inserted frequently, the property `min-eviction-check-millis` should be set to a number lower than the insertion period so that no entry can escape from the eviction.*
Expand Down

1 comment on commit ff78720

@Serdaro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gurbuzali

Please sign in to comment.