Author |
Message |
|
Hello,
you're right, I had trouble getting a good link to download the archive.
Try this link, it worked for me this morning :
http://d2zwv9pap9ylyd.cloudfront.net/ehcache-2.7.1-distribution.tar.gz
Here's what I did to obtain this link : on the ehcache.org website, I clicked on download and then "no thanks take me to the download" and I clicked on the archive name.
I'm pretty sure this is what you did too, I'm going to check with the infrastructure team.
Regardsm
|
|
|
Hello,
if you downloaded bigmemory4.0 , why don't you open the javadoc from :
bigmemory-max-4.0.0/apis/ehcache/javadoc ?
In particular, bigmemory-max-4.0.0/apis/ehcache/javadoc/net/sf/ehcache/statistics/StatisticsGateway.html
Anthony
|
|
|
Hello,
org.quartz.JobPersistenceException: Couldn't retrieve job because a required class was not found: jobs.Counter [See nested exception: java.lang.ClassNotFoundException: jobs.Counter]
seems to be the main problem; are you sure you packaged the class named jobs.Counter in your app ?
|
|
|
why don't you use 2 schedulers ? one configured to use RAM, the other configured to use the DB
|
|
|
Hello Ariel,
Topology & Health Metrics use the same Rest service; so I suspect the TMC does not render correctly the result of this service in your case.
Could you please dump the json returned (when on the topology/health metrics page) and send it to me (adahanne@terracottatech.com)
If you are using Firefox, install the Firebug extension, open it when looking at Health Metrics, choose the "Network" tab, and then the "XHR" tab.
You will see 3 requests/responses are sent every 5 sec (by default) ( you could also use Chrome->tools->Developer tools->network)
For each of them could you please send me the request headers and the responses (just click on each of in firebug, tab headers/request/"show sources" and tab "response")
For example, I have the following request headers
Code:
GET /tmc/api/agents;ids=Local%20Environment_Local%20Connection/cacheManagers?show=Status&show=CacheHitRate&show=MaxBytesLocalOffHeap&show=CacheNames HTTP/1.1
Host: localhost:9889
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://localhost:9889/tmc/
Cookie: JSESSIONID=1k6fgyas4ekksi4r5s7wd30g3; JSESSIONID.5cd9defc=qzlpgfd318xc; JSESSIONID.d94acc03=1keypr6h1asox; JSESSIONID.75e9999f=1o7fn5m3uvcv8; JSESSIONID.1c2f665e=15rh2zq3cwo1x; JSESSIONID=44435yk3d3iv1nsb808yowsh9; JSESSIONID.c4fa63bb=1lui6pcldtn1r; screenResolution=1920x1080
that gives me this response :
Code:
[{"version":"2.6.1-SNAPSHOT","name":"CM1","agentId":"Local Environment_Local Connection","attributes":{"Status":"STATUS_ALIVE","MaxBytesLocalOffHeap":209715200,"CacheHitRate":888,"CacheNames":["Cache1","Cache2"]}}]
and those request headers :
Code:
GET /tmc/api/agents;ids=Local%20Environment_Local%20Connection/cacheManagers;names=CM1/caches?show=Status&show=Size&show=CacheHitRate&show=TerracottaClustered&show=MaxBytesLocalOffHeap&show=LocalOffHeapSizeInBytes HTTP/1.1
Host: localhost:9889
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Referer: http://localhost:9889/tmc/
Cookie: JSESSIONID=1k6fgyas4ekksi4r5s7wd30g3; JSESSIONID.5cd9defc=qzlpgfd318xc; JSESSIONID.d94acc03=1keypr6h1asox; JSESSIONID.75e9999f=1o7fn5m3uvcv8; JSESSIONID.1c2f665e=15rh2zq3cwo1x; JSESSIONID=44435yk3d3iv1nsb808yowsh9; JSESSIONID.c4fa63bb=1lui6pcldtn1r; screenResolution=1920x1080
that gives me this response :
Code:
[{"version":"2.6.1-SNAPSHOT","agentId":"Local Environment_Local Connection","name":"Cache1","cacheManagerName":"CM1","attributes":{"TerracottaClustered":false,"Status":"STATUS_ALIVE","MaxBytesLocalOffHeap":0,"LocalOffHeapSizeInBytes":0,"CacheHitRate":478,"Size":82779}},{"version":"2.6.1-SNAPSHOT","agentId":"Local Environment_Local Connection","name":"Cache2","cacheManagerName":"CM1","attributes":{"TerracottaClustered":false,"Status":"STATUS_ALIVE","MaxBytesLocalOffHeap":0,"LocalOffHeapSizeInBytes":0,"CacheHitRate":410,"Size":80471}}]
With this info, I should be able to pinpoint why your health metrics tab does not display your caches.
Thanks in advance !
Anthony
|
|
|
Hello Ariel,
My issue is that from the TMC I can see my CacheManager, if I go to "topology" I get the list of caches but on "health metrics" I get the message "This CacheManager has no Caches".
I can not reproduce your issue; could you please provide us with your configuration ?
Here is what I used :
For my app using ehcache :
Code:
<ehcache name="CacheManagerRunningNonSecured" >
<managementRESTService enabled="true" bind="0.0.0.0:9888" />
<cache name="CacheRunningNonSecured"
maxElementsInMemory="500"
eternal="true"
overflowToDisk="false" >
</cache>
</ehcache>
Code:
<dependency>
<groupId>org.terracotta.bigmemory</groupId>
<artifactId>bigmemory</artifactId>
<version>3.7.1</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-ee</artifactId>
<version>2.6.1</version>
</dependency>
<!--substitute this with your prefered logging service -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
Regarding the TMC, is just untarred bigmemory-go-3.7.1.tar.gz and cd'ed to tmc and typed bin/start.sh
And I could see my cache fine in each of the panels of the TMC.
Hope that helps !
Anthony
|
|
|
Jason, you meant http://svn.terracotta.org/svn/forge/projects/bigmemory/go/trunk/ without an s to http
|
|
|
yes, I'd rather say for triggers though : https://svn.terracotta.org/repo/quartz/branches/quartz-2.2.x/quartz/src/main/java/org/quartz/Trigger.java :
Code:
public enum TriggerState { NONE, NORMAL, PAUSED, COMPLETE, ERROR, BLOCKED };
RAMJobStore.getTriggerState is making use of it, for example.
|
|
|
So is this functions as designed for SimpleTriggers?
as far as I know, yes. I always did that.
internally, quartz needs to know how many times you want the trigger to be fired : once, twice, none, infinite; by default SimpleScheduleBuilder asserts you do not want to repeat.
|
|
|
ok, what appending repeatForever() to SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(recurEvery * 24) ?
|
|
|
did you check endDate is after the removal time of the job ?
|
|
|
hello,
please have a look at this blog post :
http://unserializableone.blogspot.ca/2012/04/interrupt-quartz-job-that-doing-io.html
Regards,
Anthony
|
|
|
yes, you have to create the db and the tables, look at :
https://svn.terracotta.org/repo/quartz/branches/quartz-2.2.x/docs/dbTables/
and import the https://svn.terracotta.org/repo/quartz/branches/quartz-2.2.x/docs/dbTables/tables_oracle.sql script into your oracle db
Edit : the above answer is to configure quartz to use the jdbc jobstore : http://quartz-scheduler.org/documentation/quartz-2.x/configuration/ConfigJobStoreTX ; if you simply want quartz to interact with an existing db, then you need your job to load a db driver/create the datasource/ execute statements on the db ... (standard jdbc)
|
|
|
you should not get keys from the db.
if your UI display jobdetails, then you should have access to jobkeys as well.
Use the scheduler, triggers, and jobdetails API (everything is in there); you don't need to access the quartz tables to do such common tasks
|
|
|
xFahadx wrote:
In my application I got screen where user can select any job to disable it. I am storing all job data in database. If user wants to disable any job ho would I get the trigger related to job and the trigger key to unscheduled the job. can you give me some idea how to do it in java.
Thanks
Code:
JobKey jobKey = jobKeySelectedBytheUser;
List<? extends Trigger> triggersOfJob = sched.getTriggersOfJob(jobKey);
for (Trigger trigger : triggersOfJob) {
_scheduler.unScheduleJob(trigger.getKey());
}
|
|
|
|
|