<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Quartz Terracotta Locking Up"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/17.page</link>
		<description><![CDATA[Latest messages posted in the topic "Quartz Terracotta Locking Up"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Quartz Terracotta Locking Up</title>
				<description><![CDATA[ Hi,

We're using distributed Quartz under quite high load e.g. 5 jobs per second. We initially used the JDBC JobStore but hit problems with locking. We have switched to using Terracotta which has improved things but still leads to problems.

Initially the system behaves well but gradually the schedulers lock up and stop working. The problem manifests with multiple threads (100) trying to delete jobs. By inspecting with YourKit I can see these threads waiting on the following call:


<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await&#40;&#41;
com.tc.object.locks.ClientLockManagerImpl.waitUntilRunning&#40;&#41;
com.tc.object.locks.ClientLockManagerImpl.lock&#40;LockID, LockLevel&#41;
com.tc.object.bytecode.ManagerImpl.lock&#40;LockID, LockLevel&#41;
org.terracotta.locking.TerracottaLock.lock&#40;&#41;
org.terracotta.quartz.ClusteredJobStore.lock&#40;&#41;
org.terracotta.quartz.ClusteredJobStore.getTriggersForJob&#40;SchedulingContext, String, String&#41;
org.terracotta.quartz.PlainTerracottaJobStore.getTriggersForJob&#40;SchedulingContext, String, String&#41;
org.terracotta.quartz.TerracottaJobStore.getTriggersForJob&#40;SchedulingContext, String, String&#41;
org.quartz.core.QuartzScheduler.getTriggersOfJob&#40;SchedulingContext, String, String&#41;
org.quartz.core.QuartzScheduler.deleteJob&#40;SchedulingContext, String, String&#41;
org.quartz.impl.StdScheduler.deleteJob&#40;String, String&#41;</pre>
		</div>

Attached is a copy of our terracotta config and a snippet of our Spring Quartz Scheduler config. 

We followed some online advice and tried distributing our jobs over multiple scheduler (5) but the problem still occurs. 

Does anyone have any ideas? 

Cheers,

Matthew]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25452</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25452</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 02:30:40]]> GMT</pubDate>
				<author><![CDATA[ kizoom]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ Can you please provide what version of Quartz & Terracotta you are using ?
Thanks! ]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25453</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25453</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 02:38:33]]> GMT</pubDate>
				<author><![CDATA[ alexsnaps]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ Teracotta 3.4.1
Quartz 1.8.4

Cheers,
Matthew]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25454</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25454</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 03:03:49]]> GMT</pubDate>
				<author><![CDATA[ kizoom]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ Oh and the quartz/terracotta integration stuff is 1.2.1 (which I think was what was bundled with the Teracotta 3.4.1 distribution).]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25455</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25455</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 03:05:34]]> GMT</pubDate>
				<author><![CDATA[ kizoom]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ Is the lockup permanent or does the system return to normal behavior after a while?

It would really help if you can post some thread dumps (application JVMs and Terracotta Server JVMs) from when the lockup occurs.

Thanks.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25467</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25467</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 14:49:33]]> GMT</pubDate>
				<author><![CDATA[ kbhasin]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ That call to waitUntilRunning() means that you have been disconnected from the terracotta server for some reason. 

Having a look in the terracotta client and server log files should provide a few more clues. 

A common cause of disconnects (other than real network errors) are excessive GC tripping a health check ping
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25473</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25473</link>
				<pubDate><![CDATA[Tue, 1 Mar 2011 16:34:16]]> GMT</pubDate>
				<author><![CDATA[ teck]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ kbhasim:

The lock up seems to be permanent.

I'll try to get some thread dumps for you.

Thanks.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25492</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25492</link>
				<pubDate><![CDATA[Wed, 2 Mar 2011 06:17:24]]> GMT</pubDate>
				<author><![CDATA[ kizoom]]></author>
			</item>
			<item>
				<title>Re:Quartz Terracotta Locking Up</title>
				<description><![CDATA[ teck:

Thanks. I'll check this out.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/5055.page#25493</guid>
				<link>http://forums.terracotta.org/forums/posts/list/5055.page#25493</link>
				<pubDate><![CDATA[Wed, 2 Mar 2011 06:18:28]]> GMT</pubDate>
				<author><![CDATA[ kizoom]]></author>
			</item>
	</channel>
</rss>