[Beginners Corner] - JMX-Console - ManagedConnectionPool
by jackminder
Doing some monitoring of db connections using jmx console. I have read the FAQs on using this tool to determine if you have leaked database connections but I cannot find any good info on what certain attributes mean to determine there is a leaking issue.
For example I see these 2 attributes increase in numbers. I assume since this is a dev environment and my idleTimeout is 5mins so the connections get destroyed and re-created after exceeding the idle timeout value.
ConnectionCreatedCount
ConnectionDestroyedCount
Is MaxConnectionsInUseCount equal to the value I specified for <min-pool-size>? and InUseConnectionCount the actual amount of connections currently being used within the connection pool?
What attributes and values should I be concerned with regarding tuning the db connection pool?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109985#4109985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109985
18 years, 4 months
[JBoss jBPM] - Re: Can we save custom variables in a ProcessDefinition
by simonbaker
"kukeltje" wrote : userobject: care to elaboreate? I have no clue why this could be useful? Things that are to generic tend to blur usability and promote abuse.
There is a lot of practical real-world stuff that goes into delivering and maintaining a system for real customers. Typically monitoring, tracing, troubleshooting, maintaining are very important. There are all kinds of information that would be useful to store with a processdefinition, such as the file it was deployed from, comments about it's revision history, who deployed it, etc. that can be displayed for troubleshooting/maintenance reasons.
There is often a lot of information about a task that is of interest: permissible roles, special instructions to users, per cent completion, graph node color, a phone number to call if the work is stalled, etc. that is of interest well after the assignment has taken place.
Of course we can create our own database to store additional information, but why duplicate all that effort? And why expect the workflow engine designers to imagine all the possible uses of the technology? A user object, rather than leading to abuse, prevents "creeping featurism" where features are added to solve particular problems that many users don't need. I think a "user object" property would help jBPM stay lean and mean and discourage "bloating" of the core code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109981#4109981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109981
18 years, 4 months
[JBoss Portal] - myFacesConfig Error and com.sun.facelets errors with standar
by DanielGallot
Hello,
I have a problem using JBoss Portal 2.6.2 with JBoss AS 4.2.2 (so not the portal 2.6.2 bundle, but a separate installation), regarding JSF MyFaces and RI incompatibility, as stated by the following log :
| 10:31:03,911 ERROR [STDERR] Dec 3, 2007 10:31:03 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
| 10:31:04,009 ERROR [STDERR] Dec 3, 2007 10:31:04 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| 10:31:04,057 ERROR [STDERR] Dec 3, 2007 10:31:04 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
| 10:31:04,072 ERROR [STDERR] Dec 3, 2007 10:31:04 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
| 10:31:04,129 ERROR [STDERR] Dec 3, 2007 10:31:04 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
| 10:31:04,138 ERROR [STDERR] Dec 3, 2007 10:31:04 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
| 10:31:04,889 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
| 10:31:04,889 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
| 10:31:04,889 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
| 10:31:04,889 INFO [MyfacesConfig] Starting up Tomahawk on the MyFaces-JSF-Implementation
| 10:31:04,889 ERROR [MyfacesConfig] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
|
But I am just using the default installations of JBoss AS and JBoss portal.
and also later :
| 11:43:42,495 ERROR [STDERR] Dec 3, 2007 11:43:42 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr
| WARNING: /WEB-INF/jsf/common/confirm.xhtml @11,69 for="username" Property 'for' is not on type: javax.faces.component.html.HtmlOutputText
| 11:43:42,497 ERROR [STDERR] Dec 3, 2007 11:43:42 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr
| WARNING: /WEB-INF/jsf/common/confirm.xhtml @14,63 for="email" Property 'for' is not on type: javax.faces.component.html.HtmlOutputText
| 11:43:42,500 ERROR [STDERR] Dec 3, 2007 11:43:42 AM com.sun.facelets.tag.jsf.ComponentRule warnAttr
| WARNING: /WEB-INF/jsf/common/confirm.xhtml @17,69 for="password" Property 'for' is not on type: javax.faces.component.html.HtmlOutputText
|
Some lines before in the log (JBOss initialization) there are the following messages, several times :
| 10:28:22,756 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 10:28:22,791 INFO [FacesConfigurator] Reading config jar:file:/srv/www/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/faces-config.xml
| 10:28:22,796 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 10:28:22,825 INFO [FacesConfigurator] MyFaces-package : myfaces-api not found.
| 10:28:22,825 INFO [FacesConfigurator] MyFaces-package : myfaces-impl not found.
| 10:28:22,825 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
| 10:28:22,825 INFO [FacesConfigurator] MyFaces-package : tomahawk not found.
| 10:28:22,826 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
| 10:28:22,827 INFO [RenderKitFactoryImpl] RenderKit with renderKitId 'HTML_BASIC' was replaced.
| 10:28:22,828 WARN [FacesConfigurator] More than one managed bean w/ the name of 'portalobjectmgr' - only keeping the last
| 10:28:22,828 WARN [FacesConfigurator] More than one managed bean w/ the name of 'portalAction' - only keeping the last
| 10:28:22,828 WARN [FacesConfigurator] More than one managed bean w/ the name of 'addPageAction' - only keeping the last
| 10:28:22,828 WARN [FacesConfigurator] More than one managed bean w/ the name of 'assignContentToWindowAction' - only keeping the last
| 10:28:22,828 WARN [FacesConfigurator] More than one managed bean w/ the name of 'dashboardmgr' - only keeping the last
|
And after all, I have exceptions using JBoss Forum 1.0.1 DR :
| 16:04:07,779 ERROR [STDERR] Dec 3, 2007 4:04:07 PM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/views/admin/index.xhtml]
| java.lang.IllegalStateException: Client-id : jbpns_2fdefault_2fforums_2fJBossForumsWindowsnpbj_id85 is duplicated in the faces tree.
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:396)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
| at org.jboss.portlet.forums.ui.ForumsJSFPortlet.doView(ForumsJSFPortlet.java:375)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
| at org.jboss.portlet.forums.ui.ForumsJSFPortlet.render(ForumsJSFPortlet.java:409)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
| at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| ...........
|
But perhaps this last one is another pb....
Should I go back to JBoss AS 4.2.1 ?
That does not seem necessary according to this thread : JBoss Portal 2.6.2 + JBoss AS 4.2.2.GA = true?(http://www.jboss.com/index.html?module=bb&op=viewtopic&t=123653).
The search for these subjects was not great help, just the following wiki :
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces
http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyF...
But I did not understand that, in these wiki, there could be solutions to these problems.
The users forum of JBoss Portal did not help me neither : some topics are discussing about some problems with JSF, but all to specific portlets or other development. Here I am just using the default portal with just the JBoss Forum 1.0.1DR added.
I don't want to use the first one JSF implementation or the second one. Whatever the one that would be working with JBoss AS 4.2.2 and JBoss Portal 2.6.2, that would be OK for me.
Thank you very much for some help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109972#4109972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109972
18 years, 4 months