Disable response metadata cache.
This cache is only used for diagnostic purposes, but can force objects from every response to the old generation. Fixes #193
This commit is contained in:
parent
3aab63cfa2
commit
a36de1b4e3
2
pom.xml
2
pom.xml
|
@ -32,7 +32,7 @@
|
|||
</parent>
|
||||
|
||||
<properties>
|
||||
<amazonaws.version>1.9.23</amazonaws.version>
|
||||
<amazonaws.version>1.9.34</amazonaws.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -62,6 +62,9 @@ public class AwsEc2Service extends AbstractLifecycleComponent<AwsEc2Service> {
|
|||
}
|
||||
|
||||
ClientConfiguration clientConfiguration = new ClientConfiguration();
|
||||
// the response metadata cache is only there for diagnostics purposes,
|
||||
// but can force objects from every response to the old generation.
|
||||
clientConfiguration.setResponseMetadataCacheSize(0);
|
||||
String protocol = settings.get("cloud.aws.protocol", "https").toLowerCase();
|
||||
protocol = settings.get("cloud.aws.ec2.protocol", protocol).toLowerCase();
|
||||
if ("http".equals(protocol)) {
|
||||
|
|
|
@ -257,6 +257,26 @@ public class AmazonS3Wrapper implements AmazonS3 {
|
|||
delegate.deleteBucket(bucketName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBucketReplicationConfiguration(String bucketName, BucketReplicationConfiguration configuration) throws AmazonServiceException, AmazonClientException {
|
||||
delegate.setBucketReplicationConfiguration(bucketName, configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBucketReplicationConfiguration(SetBucketReplicationConfigurationRequest setBucketReplicationConfigurationRequest) throws AmazonServiceException, AmazonClientException {
|
||||
delegate.setBucketReplicationConfiguration(setBucketReplicationConfigurationRequest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BucketReplicationConfiguration getBucketReplicationConfiguration(String bucketName) throws AmazonServiceException, AmazonClientException {
|
||||
return delegate.getBucketReplicationConfiguration(bucketName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteBucketReplicationConfiguration(String bucketName) throws AmazonServiceException, AmazonClientException {
|
||||
delegate.deleteBucketReplicationConfiguration(bucketName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PutObjectResult putObject(PutObjectRequest putObjectRequest) throws AmazonClientException, AmazonServiceException {
|
||||
return delegate.putObject(putObjectRequest);
|
||||
|
|
Loading…
Reference in New Issue