[EJB] - Memory Leak in JBoss EJB
by venukb
Jboss Version: 4.2.3GA
JBoss WS version: 3.0.5 GA
We are running a portal application (using JBoss portal) in a production environment; The portal interacts with a service tier comprised of EJB's (there are few web services implemented using stateless EJB's)
We are observing that the old gen becomes full after few hours. Took a heap dump and analyzed using Eclipse MAT.
It reports the following as leak suspects:
Problem Suspect 1
anonymous wrote : One instance of "org.jboss.ejb3.stateless.StatelessContainer" loaded by "org.jboss.mx.loading.UnifiedClassLoader3 @ 0x8c437030" occupies 45,654,248 (11.77%) bytes. The memory is accumulated in one instance of "java.util.LinkedList$Entry" loaded by "<system class loader>".
Problem Suspect 2
anonymous wrote : 277 instances of "org.jboss.ejb3.stateless.StatelessBeanContext", loaded by "org.jboss.mx.loading.UnifiedClassLoader3 @ 0x8c437030" occupy 186,304,176 (48.05%) bytes. These instances are referenced from one instance of "java.util.HashMap$Entry[]", loaded by "<system class loader>"
Hint
anonymous wrote : The problem suspects 1 and 2 may be related, because the reference chains to them have a common beginning.
| org.jboss.remoting.transport.socket.SocketServerInvoker$ServerSocketRefresh @ 0x8c41b908 ServerSocketRefresh Thread
|
Can someone suggest how to proceed ahead with this?
Thanks
Venu
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252207#4252207
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252207
15 years, 3 months
[jBPM Users] - Action for reading the task variables and the task instance
by aroeder
I try to write a custom action class to read the variables of a task and also the task instance id. So basicly I did that:
| <task-node name="INDEX_DATA">
| <task name="enterIndexData">
| <controller>
| <variable access="read,write,required" name="title"></variable>
| <variable access="read,write" name="agentNumber"></variable>
| <variable access="read,write,required" name="type"></variable>
| <variable access="read,write,required"
| </controller>
|
| </task>
| <transition to="process_end" name="next">
| <action class="de.firstdata.jbpm.action.LogTimesAction">/action>
| </transition>
| </task-node>
|
In my action class I can read the variables with:
| executionCtx.getContextInstance().getVariable("title");
|
But I also need the task instance id, but when I call:
| TaskInstance taskInstance = executionCtx.getTaskInstance();
|
the TaskInstance is already null.
Is there a way to find out the task instance id?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252206#4252206
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252206
15 years, 3 months
[JBoss Microcontainer Users] - Issue while running DZone sample.
by vickyk
I have getting the following exception when I am running the simple application as pointed here
http://java.dzone.com/articles/a-look-inside-jboss-microconta-0
Here is the error
Using bootstrap: file:/home/vicky/workspace/DZone_1_0/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml
| org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/home/vicky/workspace/DZone_1_0/bootstrap/src/main/resources/META-INF/bootstrap-beans.xml@94,101
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
| at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
| at org.jboss.demos.bootstrap.Main.configure(Main.java:80)
| at org.jboss.demos.bootstrap.Main.main(Main.java:45)
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {urn:jboss:classloading:1.0}classloading not found as a child of {urn:jboss:bean-deployer:2.0}property in sequence: {urn:jboss:bean-deployer:2.0}annotation* {choice}* {wildcard}?
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:383)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
| at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
| at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.emptyElement(XIncludeHandler.java:981)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2723)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:624)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:486)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110)
| at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1135)
| at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:536)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
| ... 4 more
|
Looks like that there is mismatch of jaxb jars.
Can someone point the jar version which I need to use during runtime to run this application?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252193#4252193
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252193
15 years, 3 months