一种不错的做法是,从512MB开始,然后逐步向上或向下,以确定最优值、测定吞吐量或响应时间,并分析gc日志,以了解进行清除操作的频率及时间。
A good starting point would be 512mb, then move up or down to determine optimal value, measure throughput or response times, and analyze GC logs to understand frequency and length of scavenges.
设置特定配置从缓存中清除的不活动时间(以秒为单位),默认值为3600(1小时)。
Specifies time of inactivity (in seconds) when particular configuration will be purged from cache. The default value is 3600 (1 hour).
第四个参数是可选的,用来指定超过某一时间(以秒为单位)的缓存才会被清除。
As an optional fourth parameter, you can supply a minimum age in seconds the cache file must be before it will get cleared.
第四个参数是可选的,用来指定超过某一时间(以秒为单位)的缓存才会被清除。
As an optional fourth parameter, you can supply a minimum age in seconds the cache file must be before it will get cleared.
应用推荐