[JBoss Cache Users] - Re: Undeterministic error:
by vnmbatista
Hi,
Unfortunately with compile time weaving I endup without PermGen. Our application replaces objects on the cache from time to time. I have done some stress tests with high load of cache insertions (replacemente: insert on an exiting node) and I endup with OurOfMemory on the permanent generation (no matter the max limit of PermGen). I took a look at the tmp dir, and I have a class object for each instantiation of my aspectized objects:
-rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14571.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14572.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14573.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14563.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14564.class
| -rw-rw-r-- 1 cerberus cerberus 6680 Dez 6 17:13 AOPClassProxy$14565.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14566.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14567.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14568.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14569.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14570.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:13 AOPClassProxy$14562.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14557.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14558.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14559.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14560.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14561.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14551.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14552.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14553.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14554.class
| -rw-rw-r-- 1 cerberus cerberus 9952 Dez 6 17:12 AOPClassProxy$14555.class
|
I have done a memory dump (1 GB) and I'm going to analyze it. Although I think there is a bug somewhere, because objects replaced on the cache don't seem to be garbage collected. This makes my old generation increase, and the same for the permanent generation. Are Cache replaced objects correctly garbage collected?
Why do I have a new Class object created for each instantiation of my aspectized objects? Is this the expected behavior?
At the moment I have having serious problems, no matter I use compile time weaving or load time weaving. Although, load time weaving is the option I would go for, if I wouldn't have the strange startup error (object not aspectized).
I am really getting "crazy" with this problems.
Any hint to solve my problem?
Thanks in advance.
Best regards,
Victor Batista
PS: I upgraded JBossCache to 1.4.1.SP14
PS2: I will to replace the PojoCache by a TreeCache.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269187#4269187
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269187
16 years, 4 months
[jBPM Users] - Re: why i can't use identityService in jbpm4
by optixpro
"saraswati.santanu" wrote : It will be helpful if you can provide a little more information. NullPointerException is too common and generic to come to any conclusion. Please provide the jbpm.cfg.xml, a snippet of the jpdl and a snippet of your code to execute that.
|
| Typically processEngine.getIdentityService() should give you the indentity service.
jbpm.cfg.xml
<?xml version="1.0" encoding="UTF-8" ?>
| <jbpm-configuration>
| <import resource="jbpm.default.cfg.xml" />
| <import resource="jbpm.businesscalendar.cfg.xml" />
| <import resource="jbpm.tx.hibernate.cfg.xml" />
| <import resource="jbpm.jpdl.cfg.xml" />
| <import resource="jbpm.identity.cfg.xml" />
|
| </jbpm-configuration>
hibernate.cfg.xml
<hibernate-configuration>
| <session-factory>
| <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
| <property name="hibernate.connection.driver_class">com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</property>
| <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpmdb</property>
| <property name="hibernate.connection.username">root</property>
| <property name="hibernate.connection.password">root</property>
| <property name="hibernate.format_sql">true</property>
| <mapping resource="jbpm.repository.hbm.xml" />
| <mapping resource="jbpm.execution.hbm.xml" />
| <mapping resource="jbpm.history.hbm.xml" />
| <mapping resource="jbpm.task.hbm.xml" />
| <mapping resource="jbpm.identity.hbm.xml" />
| </session-factory>
| </hibernate-configuration>
i try to create task condidates like jbpm4 dec(6.1.1)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269180#4269180
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269180
16 years, 4 months