[Performance Tuning] - out of memory - JBoss 4.01 AS with JDK 1.5.
by ram k
ram k [https://community.jboss.org/people/rammy1984] created the discussion
"out of memory - JBoss 4.01 AS with JDK 1.5."
To view the discussion, visit: https://community.jboss.org/message/786866#786866
--------------------------------------------------------------
Hi All
In the project which i work on we receive the out of memory error . I acquired the heap dump by adding the JVM params. I analyzed the heap dump with memory analyzer and i see huge amount of heap is retained by class *org.apache.tomcat.util.threads.ThreadWithAttributes*. I can see all my entity objects are added to the ArrayList within that class and its never getting released. We are basically exposing our buisness as web services. Its using XFire and Can someone explain how to proceed on these issues. What will be the next step in the analysis? Any ideas will be really appreciated.
JVM params specified in run.bat
set JAVA_OPTS=%JAVA_OPTS% -Xms9728m -Xmx9728m -server -Xss192k -XX:MaxPermSize=128m -XX:+HeapDumpOnCtrlBreak -XX:+HeapDumpOnOutOfMemoryError
Please let me know if any details are to be provided.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/786866#786866]
Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - jbpm-console started threads and can not be stopped correctly on tomcat shutdown
by srikant vege
srikant vege [https://community.jboss.org/people/srikanthvege1] created the discussion
"jbpm-console started threads and can not be stopped correctly on tomcat shutdown"
To view the discussion, visit: https://community.jboss.org/message/788733#788733
--------------------------------------------------------------
Hi,
I am using jbpm 5.2, tomcat 6, MySql database with BTM transaction manager in Linux (Ubuntu) machine.
I am getting the below issue on tomcat shutdown. it seems like Jbpm-Console is starting some threads and those threads can not be stopped correctly on tomcat shutdow. It results to taking all my CPU memory.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [com.google.inject.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Dispatch Worker Thread] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Dispatch Worker Thread] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Dispatch Worker Thread] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Dispatch Worker Thread] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Dispatch Worker Thread] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] appears to have started a thread named [ExecutorPoolWorker] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@1f957352]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@cc61cb1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@2285af04]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@76a54150]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@5b63280a]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4ad9d765]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@23cc4e47]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3a2729ad]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@61213aae]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4c93a753]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@71ce616b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@245df22c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/gwt-console] created a ThreadLocal with key of type [com.google.inject.InjectorImpl$1] (value [com.google.inject.InjectorImpl$1@13c6395b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3adf8f81]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console-server] appears to have started a thread named [pool-4-thread-1] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gwt-console-server] appears to have started a thread named [NioProcessor-2] but has failed to stop it. This is very likely to create a memory leak.
04-Jan-2013 12:37:32 org.apache.coyote.http11.Http11Protocol destroy
Please help me on resoving this issue.
Thanks,
Srikant.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788733#788733]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - Question about how to add user to assign and execute human task
by Jimmy dong
Jimmy dong [https://community.jboss.org/people/jimmy.dongjia] created the discussion
"Question about how to add user to assign and execute human task"
To view the discussion, visit: https://community.jboss.org/message/717004#717004
--------------------------------------------------------------
Dear all:
I created a jbpm project only include .bpmn file and .ftl file, I start and execute process by jbpm console. At first, a user task node 's +ActorId+ I fill in "john",
and I can use john login console and see personal task. But when I fill in the user task node 's +ActorId as "jimmy" or other name which I set in+
+/jbpm-installer/jboss-5.1.0.GA/server/default/conf/users.properties, I only can login the console ,and start a process,but can't be assigned a personal task.+
+My question is : why only set+ user task node 's +ActorId as "krisv","john",or "mary" can be assigned task, if set+ user task node 's +ActorId as other names in "users.properties",+
+only can login console,but can't assign personal task?+
the content of file users.properties:
admin=admin
krisv=krisv
john=john
mary=mary
jimmy=jimmy
hawis=hawis
marvin=marvin
william=william
daniel=daniel
kim=kim
jason=jason
yuri=yuri
devin=devin
sales-rep=sales-rep
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717004#717004]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[JBoss Tools] - Making the DirectoryScanner fail
by Jesper Skov
Jesper Skov [https://community.jboss.org/people/jskovjyskebankdk] created the discussion
"Making the DirectoryScanner fail"
To view the discussion, visit: https://community.jboss.org/message/787526#787526
--------------------------------------------------------------
Most of our projects use a custom builder which fetches IVY dependencies and place them in various folders named build/gen-lib*.
This builder has first priority and runs before anything else, intending to make it appear to Eclipse as if the projects had their dependencies checked out with the source (if that makes sense).
It works pretty well and has served us for years.
Part of this design requires some of the build/gen-lib folder to be mentioned in the Deployment Assembly of the project.
Unfortunately, this makes a JBoss Tools 4.0.0.Final plugin unhappy when it scans these folders which may not be created.
(I *think* the Deployment Assembly reference is where your plugin pick the reference, but I'm not sure)
The stack trace looks like this:
java.lang.IllegalStateException: basedir C:\udvikler\ws\plugins\jb.it.reuters\build\gen-lib-deployable is not a directory
at org.jboss.ide.eclipse.archives.core.asf.DirectoryScanner.scanPrepare(DirectoryScanner.java:552)
at org.jboss.ide.eclipse.archives.core.asf.DirectoryScanner.scan(DirectoryScanner.java:588)
at org.jboss.ide.eclipse.archives.core.model.DirectoryScannerFactory.createDirectoryScanner(DirectoryScannerFactory.java:66)
at org.jboss.ide.eclipse.archives.webtools.filesets.vcf.WorkspaceFilesetVirtualComponent$WorkspaceFilter.<init>(WorkspaceFilesetVirtualComponent.java:100)
at org.jboss.ide.eclipse.archives.webtools.filesets.vcf.WorkspaceFilesetVirtualComponent.getRootFolder(WorkspaceFilesetVirtualComponent.java:53)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.consumeComponent(FlatVirtualComponent.java:203)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.addConsumedReferences(FlatVirtualComponent.java:196)
at org.eclipse.jst.j2ee.internal.common.ClasspathLibraryExpander.optimize(ClasspathLibraryExpander.java:47)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.cacheResources(FlatVirtualComponent.java:119)
at org.eclipse.wst.common.componentcore.internal.flat.FlatVirtualComponent.fetchResources(FlatVirtualComponent.java:101)
at org.eclipse.jst.j2ee.internal.common.ClasspathLibraryExpander.fetchResource(ClasspathLibraryExpander.java:74)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.getBaseEARLibRefs(J2EEComponentClasspathContainer.java:463)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.requiresUpdate(J2EEComponentClasspathContainer.java:208)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer.refresh(J2EEComponentClasspathContainer.java:540)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.processModules(J2EEComponentClasspathUpdater.java:311)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.access$4(J2EEComponentClasspathUpdater.java:295)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob$1.run(J2EEComponentClasspathUpdater.java:336)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.run(J2EEComponentClasspathUpdater.java:321)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
I guess I'm really the one making your plugin fail, so I will probably make our plugin create those folders earlier.
But you may want to handle non-existent folders in your scanner differently (either silently, or maybe create a Marker describing the apparently bad configuration for the developer).
Cheers,
Jesper
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787526#787526]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - How to get content of task with Reserved and Completed state in JBPM5.4
by neeraj sharma
neeraj sharma [https://community.jboss.org/people/nsharm28] created the discussion
"How to get content of task with Reserved and Completed state in JBPM5.4"
To view the discussion, visit: https://community.jboss.org/message/788725#788725
--------------------------------------------------------------
Hi,
Currently I am reteriving the task content using following methods
-Following method reterives content of task which are in 'Completed' status
public Object getContent(long taskId)
{
Task task = taskService.getTask(taskId);
TaskData taskData = task.getTaskData();
Content content =taskService.getContent(taskData.getDocumentContentId());
ByteArrayInputStream bais = new ByteArrayInputStream(content.getContent());
ObjectInputStream ois;
Object taskinfo = null;
try {
ois = new ObjectInputStream(bais);
taskinfo = ois.readObject();
} catch (Exception e) {
e.printStackTrace();
}
return taskinfo;
}
-Following method reterives content of task which are in 'Reserved' status
public Object getContentNew(long taskId) {
Task task= taskService.getTask(taskId);
Object input=null;
long contentId = task.getTaskData().getDocumentContentId();
if (contentId != -1) {
Content content = taskService.getContent(contentId);
input = ContentMarshallerHelper.unmarshall(content.getContent(), null);
}
System.out.println(input);
return input;
}
Is there any single method or way to reterive the content of task for both Completed and Reserved status??
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788725#788725]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - Couldn't retrieve the node name for the process instance
by neeraj sharma
neeraj sharma [https://community.jboss.org/people/nsharm28] created the document:
"Couldn't retrieve the node name for the process instance"
To view the document, visit: https://community.jboss.org/docs/DOC-48188
--------------------------------------------------------------
Hi,
When i am trying to retreive the node name for particular process instance. I am getting following Error.
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:68)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getWorkflowProcess(WorkflowProcessInstanceImpl.java:181)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeContainer(WorkflowProcessInstanceImpl.java:69)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:103)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNodeName(NodeInstanceImpl.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:139)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:38)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:186)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
below is the LOC, to get nodename
*System.out.println(("Node name "+((org.jbpm.workflow.instance.WorkflowProcessInstance)instance).getNodeInstances().iterator().next().getNodeName()));*
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-48188]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 3 months