diff --git a/openbis/build.gradle b/openbis/build.gradle
index d9edf42b42a8fcf38b84f76287d8ba2cf0b3c49d..49314a08d77d9eb1b5b6d8745031c6db635e66ba 100644
--- a/openbis/build.gradle
+++ b/openbis/build.gradle
@@ -77,6 +77,7 @@ task cleanDbSuiteProjectSamplesEnabled(type: Test) {
 task testProjectSamplesEnabled(type: Test) {
     useTestNG()
     systemProperty "project-samples-enabled", 'true'
+    systemProperty "ch.ethz.sis.openbis.v3.searchcache.size", '10m'
     options.suites('sourceTest/java/tests_project_samples.xml')
     reports.html.destination = file("${project.buildDir}/reports/tests-project-samples")
 }