[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-12 Thread estaub
How are you observing that the old jbpmConfig is staying in memory?  


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083405#4083405

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083405
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-11 Thread fady.matar
You can use exetrnal classes that load / unload the jbpm configuration. Make 
those classes static and initialize the jBPM configuration only when it's null. 
I hope this helps

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082904#4082904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-10 Thread tinico
I don't know... But I've a bad news !!

In fact, the problem isn't solved... I think he problem come from 
JbpmConfiguration... In my portlet, I've this :


  | 
  | public class Portlet extends GenericPortlet {
  | 
  | static public JbpmConfiguration jbpmconf = null;
  | 
  | public Portlet() {
  | }
  | 
  | public void init(PortletConfig config) throws PortletException {
  | super.init(config);
  | jbpmconf = JbpmConfiguration.getInstance();
  | }
  | 
  | public void processAction(ActionRequest request, ActionResponse 
response) throws PortletException, IOException
  | {
  | PortletMode mode = request.getPortletMode();
  | if(mode.equals(PortletMode.VIEW))
  | doViewAction(request,response);
  | }
  | 
  | public void doViewAction (ActionRequest request, ActionResponse 
response) throws PortletException, IOException 
  | {  
  | JbpmContext jbpmContext = jbpmconf.createJbpmContext();
  | 
  | try { 
  | ... my code ...
  | 
  | finally {
  | jbpmContext.close();
  | }
  | }
  | 
  | public void doView(RenderRequest request, RenderResponse response) 
throws PortletException, IOException {   
  | 
  | JbpmContext jbpmContext = jbpmconf.createJbpmContext();
  | 
  | try {   
  | ... my code ...
  | }
  | finally {
  | jbpmContext.close();
  | }
  | }
  | 
  | public void destroy() {
  | jbpmconf.close();
  | }
  | }
  | 

When I change code of my portlet, the portlet container rebuild the portlet and 
reload jbmpConfiguration... But I don't undersatnd, the old jbpmconfig is 
staying in mémory...

So, if I put the jbpm lib in the server classpath, all is ok, beacause it 
always keep the jbpmConfiguration in mémory.

SomeOne has any idea to keep the jbpm lib in my WEB-INF lib without outOfMemory 
error ?? thanks !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082521#4082521

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082521

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-07 Thread estaub
I'm not sure, but I don't think the servlet is required for JobExecutor - it 
only provides a way to monitor, I think.
The only thing I'm missing is that I don't see where JobExecutor.start() is 
called if the servlet isn't included.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082195#4082195

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082195
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-07 Thread kukeltje
file a jira issue that the jobExecutor is stopped when an undeploy takes place. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082142#4082142

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082142
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-07 Thread tinico
Ok, 

When I remove the jobExecutor Servlet declaration from the web.xml file :

  
JobExecutorServlet
org.jbpm.job.executor.JobExecutorServlet
1
  

  
  JobExecutorServlet
  /jobs
  

It work fine, thanks... But now, does the jobExecutor work ?? How can I make to 
run jobExecutor without servlet ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082132#4082132

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-06 Thread estaub
A wild guess might somehow calling JbpmConfiguration.close() help?  That 
would free up the JobExecutor threads, servicefactories, etc.  

I don't know enough about WebLogic redeployment to know whether it would make a 
difference.

-Ed Staub

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081811#4081811

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-06 Thread kukeltje
did you use jsf before? Some appservers keep a lock on some jsf jar afaik and 
keep it in memory, or if some threads are still running... 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081806#4081806

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-06 Thread tinico
2MB, it not a problem, the problem is that each time weblogic redeploy my app, 
2MB add to the java memory allocation... 

So, after 50 redeployment, I've 100 MB... And I think the problem come from 
jbpm because with the others app that I'd develloped, I've never had this 
problem !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081764#4081764

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081764
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: java.lang.OutOfMemoryError

2007-09-06 Thread kukeltje
2MB? Does not sound as a problem to me. Besides that, why do you think this is 
a jBPM issue

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081761#4081761

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081761
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user