[jBPM] - Persisted jbpm5: 'delay timer' behavior after JBoss restart
by Victor Zorin
Victor Zorin [http://community.jboss.org/people/zorin] created the discussion
"Persisted jbpm5: 'delay timer' behavior after JBoss restart"
To view the discussion, visit: http://community.jboss.org/message/602935#602935
--------------------------------------------------------------
We are testing implementation of JBPM5 plugin for Liferay portal, where JBoss is run independently from Liferay.
In our persisting setup (JBoss5.1.0GA + drools-5.2.0M1 + jbpm-bpmn2-5.0.0) we ran a simple test case when 'delay timer' is defined as:
<intermediateCatchEvent id="_7" name="Timer" >
<timerEventDefinition>
<timeCycle>120s</timeCycle>
</timerEventDefinition>
</intermediateCatchEvent>
Once process instance hits this event, JBoss is manually shut down and immediately restarted.
Session is reloaded using the following code:
java.util.Properties sessionProperties = new java.util.Properties();
sessionProperties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
sessionProperties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory");
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(sessionProperties);
StatefulKnowledgeSession resultSession = JPAKnowledgeService.loadStatefulKnowledgeSession(
storedSession.getId(), // we get it from own records
KnowledgeUtil.getInstance().getKnowledgeBase(),
config, getEnvironment());
The ISSUE is:
CASE #1: If StatefulKnowledgeSession is reloaded before the expiry of 'delay timer', process wakes up properly. PERFECT !
CASE #2: If StatefulKnowledgeSession is reloaded after the expiry of 'delay timer', timer is stuck, i.e. nothing happens. PROBLEM !
(Timer works properly when JBoss is not restarted)
That means those process instances, which have timers may get stuck forever (if shutdown time falls to timer expiry), i.e. JBoss can not be reliably restarted.
Any thoughts on this?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602935#602935]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[JBoss Cache] - Memory leak in JBossCache
by Nishi Kant
Nishi Kant [http://community.jboss.org/people/nishi.kant] created the discussion
"Memory leak in JBossCache"
To view the discussion, visit: http://community.jboss.org/message/602875#602875
--------------------------------------------------------------
Hi All,
I’m using JBoss cache in my project, recently I have enabled replication. While putting the system through the load of 9K users with each user modifying the state every 10 sec found that there is sharp increase in amount of memory being consumed by the process. After few hours process raised out of Memory from old generation. Memory histogram of the process shows following two classes taking lots of heap space.
1: 7023853 224763296 java.lang.ThreadLocal$ThreadLocalMap$Entry
2: 7022005 168528120 java.util.concurrent.locks.ReentrantReadWriteLock$Sync$HoldCounter
I’m have 3 nodes in cluster. I’m using async replication and my configuration file is as follows:-
Any help will be highly appreciated.
Thanks,
Nishi
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602875#602875]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months