[Performance Tuning] - Re: Improving speed app with concurrent transactions/hits
by sunkishorej2ee
Hi Peter,
Thanks very much for your reply.....really sorry from me to reply this much late and to you for late response due to unavoidable reasons....
Frankly speaking regarding your reply about garbage collection statistics using -verbose:gc or -XX:PrintHeapAtGC with a web application.
So I tried out the following JVM options and its working little faster without any stoppage in the application/sys(provided no consecutive hits)
set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m
set JAVA_OPTS=-XX:MaxPermSize=1024m %JAVA_OPTS%
set JAVA_OPTS= -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled %JAVA_OPTS%
problem arises when after sometime of concurrent hits system strucks up for a while without knowing for the customer...hope i am clear about my req.....request you if u could provide some suggestions regarding the same.....
Our system is a client side installable web app with JBOSS 4.2.0GA and MYSql 5.0.45-community-nt....Although client allocates one dedicated server for the entire app, his RAM is gonna be 1GB max.....regarding this i have goine through this following post where u mentioned abt the combination of Jboss and mysql
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133322
Thanks and Regards
Kishore
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186983#4186983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186983
17 years, 5 months
[JBoss jBPM] - Listeners for BPEL <receive> activities
by dhanushgopinath
Hi,
For a receive activity that is a start activity(createInstance="yes") I figured out that the Listener is
anonymous wrote : org.jbpm.bpel.integration.jms.StartListener and its onMessage method is called when I start the bpel process, and hence I can get hold of the input data.
My bpel process also have other receive activities and I want to tap these calls too. But I do not find any listeners for them.
There is a class org.jbpm.bpel.integration.jms.RequestListener , but its onMessage method is never called. I tried debugging a bit, and found out that the SOAPHandler is directly sending a JMS request to the queue in its sendRequest() method. Once this is send I am not able to see how the information flows.
Any inputs in this regard will be helpful for me.
Thanks in Advance
Best Regards
Dhanush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186961#4186961
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186961
17 years, 5 months
[Beginners Corner] - Re: Reloading the application context
by nitha
Hi ,
We ae facing the same problem. Our production server crashed 4 times with in a week. when we checked the logs..... its trying to reload the context and throws some exception and hangs.......
ERROR [org.apache.commons.modeler.BaseModelMBean] Exception invoking method reload
| java.lang.NullPointerException
| at org.jboss.web.tomcat.tc5.WebCtxLoader.start(WebCtxLoader.java:109)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
| at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3043)
| 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:324)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
| at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:236)
| at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:202)
| at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:241)
| at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:79)
| at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:61)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
| at java.lang.Thread.run(Thread.java:534)
| 2008-10-29 05:22:13,914 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[HtmlAdaptor]: Servlet.service() for servlet HtmlAdaptor threw exception
| RuntimeOperationsException: Exception invoking method reload Cause: java.lang.NullPointerException
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:511)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
| at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:236)
|
|
Any thoughts regarding this...........
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186955#4186955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186955
17 years, 5 months
[EJB 3.0] - EJB2 Client calling EJB3 Bean
by tom.iten@gmx.net
Hello everybody
I'm trying to run an EJB2 Client against an EJB3 SLSB, delivering the client
an EJB2 Home interface with the usage of the @RemoteHome annotation.
With JBoss 4.2.2.GA the sample is working fine, with JBoss 5.0.0.CR2 i'm
getting the following Message during the deploy:
java.lang.IllegalStateException: EJB 3.0 Core Specification Violation (4.6.7):
The session bean remote interface interface ... must extend the javax.ejb.EJBObject interface.
Remote Interface:
| @Remote
| public interface EJB3Remote {
|
| public String echo(String message);
|
| }
|
Home Interface:
| public interface EJB3Home extends EJBHome {
|
| public EJB3Remote create() throws CreateException, RemoteException;
|
| }
|
Bean:
| @Stateless
| @RemoteHome(EJB3Home.class)
| public class EJB3Bean implements EJB3Remote {
|
| public String echo(String message) {
|
| return "echo from EJB3 Bean <" + message + ">";
| }
| }
|
Thanks for any help.
Tom
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186953#4186953
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186953
17 years, 5 months
[JBoss Tools (users)] - error while opening a xhtml file in Jboss Tools
by spratiha
I get the following error while opening a xhtml file in Jboss Tools.java.lang.NullPointerException
| at org.jboss.tools.vpe.editor.util.DocTypeUtil.getDoctype(DocTypeUtil.java:142)
| at org.jboss.tools.vpe.editor.util.DocTypeUtil.getDoctype(DocTypeUtil.java:60)
| at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:281)
| at org.jboss.tools.vpe.editor.VpeEditorPart.createVisualEditor(VpeEditorPart.java:754)
| at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.pageChange(JSPMultiPageEditor.java:213)
| at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor.createPages(JSPMultiPageEditor.java:408)
| at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditorPart.createPartControl(JSPMultiPageEditorPart.java:125)
| at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
| at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
| at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
| at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
| at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
| at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
| at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
| at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
| at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
| at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
| at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
| at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643)
| at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
| at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
| at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
| at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
| at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
| at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
| at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
| at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
| at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363)
| at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603)
| at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
| at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
| at org.eclipse.core.runtime.Platform.run(Platform.java:880)
| at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
| at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
| at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
| at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
| at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
| at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
| at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
| at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
| at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
| at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
| at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
| at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
| at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
| 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:585)
| at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
| at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
| at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
| |
| | Any help would be appriciated.
| |
| | spratiha
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186947#4186947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186947
17 years, 5 months