Author |
Message |
|
Hi,
We have to set the persistent i.e. <restartable> to true; This will store the values into disk.
Sam.
|
|
|
Hi,
I'm using trail version "bigmemory-max-4.1.3".
When I used both config & progamatticBased 'Cache Manager' and 'Cache' getting created & I can see the values in LocalHeap using 'TMC'. Could you please tell me how can I store the values in DISK (Distributed memory)? What configuration should I use?
Below is the progammatic configuration I use:
Configuration managerConfiguration = new Configuration()
.name("bigmemory-config")
.terracotta(new TerracottaClientConfiguration().url("localhost:9510"))
.cache(new CacheConfiguration()
.name("bigMemory_putgetCache_PgmBase")
.maxBytesLocalHeap(128, MemoryUnit.MEGABYTES)
.copyOnRead(true)
.eternal(true)
.terracotta(new TerracottaConfiguration())
Below is the configuration base I use:
<cache name="bigMemory"
maxBytesLocalHeap="128M"
copyOnRead="true" eternal="true">
<terracotta/>
</cache>
<terracottaConfig url="localhost:9510" rejoin="false"/>
|
|
|
Hi,
Can you try with very basic cofig file like example below:
<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config">
<servers>
<server host="localhost" name="Server1">
<tsa-port>9510</tsa-port>
<jmx-port>9520</jmx-port>
<data>./terracotta/server-data1</data>
<logs>./terracotta/server-logs1</logs>
</server>
<server host="localhost" name="Server2">
<tsa-port>9511</tsa-port>
<jmx-port>9521</jmx-port>
<data>./terracotta/server-data2</data>
<logs>./terracotta/server-logs2</logs>
</server>
</servers>
<clients>
<logs>C:\softwares\BigM\BigM-max\bigmemory-max-4.1.3\client-logs</logs>
</clients>
</tc:tc-config>
|
|
|
Hi,
New to Terracotta, using Eclipse to execute the sample pgms. Got the below error:
Not sure how to map the license path using eclipse?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" net.sf.ehcache.CacheException: Cannot instantiate enterprise features manager
at net.sf.ehcache.CacheManager.retrieveFeaturesManager(CacheManager.java:2120)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:787)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:476)
at net.sf.ehcache.CacheManager.init(CacheManager.java:392)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:370)
at HelloWorld.main(HelloWorld.java:10)
Caused by: org.terracotta.license.LicenseException: Terracotta license key is required for Enterprise capabilities. Please place terracotta-license.key in Terracotta installed directory or in resource path. You could also specify it through system property -Dcom.tc.productkey.path=/path/to/key
at org.terracotta.license.ehcache.LicenseManager.assertLicenseValid(LicenseManager.java:286)
at net.sf.ehcache.EnterpriseFeaturesManager.<init>(EnterpriseFeaturesManager.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at net.sf.ehcache.CacheManager.retrieveFeaturesManager(CacheManager.java:2112)
... 5 more
Rgds,
Sam
|
|
|
Hi,
Can any one tell me what is maven repository.
And where we have Maven settings.xml file.
Regards,
Sam
|
|
|
Hi,
CacheManager manager = CacheManager.newInstance(
getClass().getResource("/xml/ehcache.xml"));
- Here we need to give the className.class which will solve the below issue. But were I should place the setting.xml file and not sure on Maven. What is this?
Regards,
Sam
|
|
|
Hi,
I'm new to Terracotta, don't know how to proceed in understanding and learning this new technology. Started with BigMemory-Max (now I'm into the sample code). Don't know how to use and see the code...
In the example1, I used the below import:
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Element;
Java Code: Got an error as this getClass method is not present in the above interface. Please help me on this...
CacheManager manager = CacheManager.newInstance(
getClass().getResource("/xml/ehcache.xml"));
try {
Cache bigMemory = manager.getCache("BigMemory");
// now do stuff with it...
} finally {
if (manager != null) manager.shutdown();
}
Regards,
Sam
|
|
|
Hi Rakesh,
I didn't start the server which caused the issue. It got resolved Once I set the JAVA_HOME path.
Regards,
Sam
|
|
|
Hi,
I'm new to Terracotta.
To know the usage of Terracotta, I started browsing with BigMemory Max.
Started doing one by one java sample code as per Bigmemory Max - Documentation.
In "Adding Terracotta server Array" Topic. As per code when we run,
got the below error:
2013-05-08 11:39:02,327 INFO - Terracotta Enterprise 4.0.0, as of 20130301-064135 (Revision 25020-22359 by cruise@rh5vmo135.terracotta.lan from 4.0.0)
2013-05-08 11:39:04,999 WARN - We couldn't load configuration data from the server at 'localhost:9510'; retrying. (Error: Connection refused: connect.)
Your comments please.
Regards,
Sam
|
|
|