I am running several Grails applications on one of my servers. I am using Grails 1.2.2. I am using the default cache configuration in DataSource.groovy. When I try to run two Grails applications, they both seem to use / write:
/tmp/org.hibernate.cache.UpdateTimestampsCache.data p>
When I look at how to configure Ehcache with the ehcache.xml file from this page:
http://ehcache.org/documentation/grails.html
I do not see any information about the location and / or names or temporary files.
How to avoid this problem when running multiple Grails applications on the same server (without disabling the cache)?
Clarification: regarding Deepak's answer
Since I am deploying it as a war, will this be an example of what I would add to the Config.groovy environment block?
environments {
production {
java.io.tmpdir = /tmp/myapp-prod.tmp
}
}
source
share