Hi. I deployed an SpringBoot app with ehcache as cache manager on Google CloudRun. Everything was working fine, but I noticed the app stopped working and I got this error
Container Sandbox Limitation: Unsupported syscall setsockopt
It's like I reach some kind of socket limit. After trying different approaches I deactivated the ehcache and applications was working again.
This is my ehcache.xml
<ehcache:config
xmlns:ehcache="http://www.ehcache.org/v3"
>
<!-- Default cache template -->
<ehcache:cache-template name="default">
<ehcache:expiry>
<ehcache:ttl unit="minutes">5</ehcache:ttl>
</ehcache:expiry>
<ehcache:listeners>
<ehcache:listener>
<ehcache:class>com.xxx.xxx.config.CacheLogger</ehcache:class>
<ehcache:event-firing-mode>ASYNCHRONOUS</ehcache:event-firing-mode>
<ehcache:event-ordering-mode>UNORDERED</ehcache:event-ordering-mode>
<ehcache:events-to-fire-on>CREATED</ehcache:events-to-fire-on>
<ehcache:events-to-fire-on>EXPIRED</ehcache:events-to-fire-on>
<ehcache:events-to-fire-on>EVICTED</ehcache:events-to-fire-on>
</ehcache:listener>
</ehcache:listeners>
<ehcache:resources>
<ehcache:heap unit="entries">10000</ehcache:heap>
</ehcache:resources>
</ehcache:cache-template>
<!-- Cache configurations -->
<ehcache:cache alias="Country.findByCountryUuid" uses-template="default"/>
<ehcache:cache alias="Country.findAll" uses-template="default"/>
<ehcache:cache alias="Province.findByProvinceUuid" uses-template="default"/>
<ehcache:cache alias="Province.findAll" uses-template="default"/>
<ehcache:cache alias="Province.findAllByCountryUuid" uses-template="default"/>
<ehcache:cache alias="City.findByCityUuid" uses-template="default"/>
<ehcache:cache alias="City.findAll" uses-template="default"/>
<ehcache:cache alias="City.findAllByProvinceUuid" uses-template="default"/>
</ehcache:config>
Nothing special no my configuration
I wonder if there is a way to disable socket communication on ehcache? I should be memory only by default, nut I don't understand why I keeps doing socket communication.
Anyone can help? Thanks